diff options
author | S.Cavallo <smcavallo@hotmail.com> | 2018-05-09 13:18:00 -0400 |
---|---|---|
committer | S.Cavallo <smcavallo@hotmail.com> | 2018-05-09 13:18:00 -0400 |
commit | 3d8ed4ea8ca808e42c689225ef1780ef01d028a4 (patch) | |
tree | 4f16acbfcb885553f3cc5b02b0d5ad95dbf98857 /chef-config/spec | |
parent | dbee7f652952beb8e1056f6e6731223672788838 (diff) | |
download | chef-3d8ed4ea8ca808e42c689225ef1780ef01d028a4.tar.gz |
Signed-off-by: S.Cavallo <smcavallo@hotmail.com>
Support for toml knife config settings
Diffstat (limited to 'chef-config/spec')
-rw-r--r-- | chef-config/spec/unit/workstation_config_loader_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chef-config/spec/unit/workstation_config_loader_spec.rb b/chef-config/spec/unit/workstation_config_loader_spec.rb index 509d95fe36..677d411e3b 100644 --- a/chef-config/spec/unit/workstation_config_loader_spec.rb +++ b/chef-config/spec/unit/workstation_config_loader_spec.rb @@ -394,6 +394,8 @@ RSpec.describe ChefConfig::WorkstationConfigLoader do node_name = 'barney' client_key = "barney_rubble.pem" chef_server_url = "https://api.chef.io/organizations/bedrock" +"knife[:ssh_user]" = 'knife_ssh_user' +"knife[:secret_file]" = "/home/barney/.chef/encrypted_data_bag_secret.pem" EOH content end @@ -402,6 +404,8 @@ EOH expect { config_loader.load_credentials }.not_to raise_error expect(ChefConfig::Config.chef_server_url).to eq("https://api.chef.io/organizations/bedrock") expect(ChefConfig::Config.client_key.to_s).to eq("#{home}/.chef/barney_rubble.pem") + expect(ChefConfig::Config.knife[:ssh_user].to_s).to eq('knife_ssh_user') + expect(ChefConfig::Config.knife[:secret_file].to_s).to eq('/home/barney/.chef/encrypted_data_bag_secret.pem') expect(ChefConfig::Config.profile.to_s).to eq("default") end end |