diff options
author | Tim Smith <tsmith@chef.io> | 2019-05-07 09:28:01 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2019-05-07 09:28:01 -0700 |
commit | 2e0cfe5384cd647a2813ea3cab0fc6dfbf67aaf8 (patch) | |
tree | 8be1a72a025e888e3f1e12ec6d70ed91ddc0e897 /spec | |
parent | 5db7159bf4c1b0e04391cc9f4f6c96de050bdd1e (diff) | |
download | chef-2e0cfe5384cd647a2813ea3cab0fc6dfbf67aaf8.tar.gz |
Fix the client create specsadmin
While I'm in here fix the validator default check
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/knife/client_create_spec.rb | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/spec/unit/knife/client_create_spec.rb b/spec/unit/knife/client_create_spec.rb index 17d18d084e..fe25dccfbf 100644 --- a/spec/unit/knife/client_create_spec.rb +++ b/spec/unit/knife/client_create_spec.rb @@ -28,7 +28,6 @@ describe Chef::Knife::ClientCreate do { "name" => "adam", "validator" => false, - "admin" => false, } end @@ -102,14 +101,9 @@ describe Chef::Knife::ClientCreate do expect(client.name).to eq("adam") end - it "by default it is not an admin" do - knife.run - expect(client.admin).to be_falsey - end - it "by default it is not a validator" do knife.run - expect(client.admin).to be_falsey + expect(client.validator).to be_falsey end it "by default it should set create_key to true" do @@ -136,17 +130,6 @@ describe Chef::Knife::ClientCreate do end end - describe "with -a or --admin" do - before do - knife.config[:admin] = true - end - - it "should create an admin client" do - knife.run - expect(client.admin).to be_truthy - end - end - describe "with -p or --public-key" do before do knife.config[:public_key] = "some_key" |