diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2018-06-20 13:52:07 -0700 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2018-06-20 13:52:07 -0700 |
commit | 581e153966a0a89b7eafd0ccbf7770dd0a0e909a (patch) | |
tree | 1ba427e5eecf9a98ce15c6bf85ce1e9fbc73f462 /chef-config/spec | |
parent | aa4f3285f3e49919e29f40337183fd0510baaee5 (diff) | |
download | chef-581e153966a0a89b7eafd0ccbf7770dd0a0e909a.tar.gz |
Rework the credentials file system to support any config keys.
This won't work with 100% of Chef config options, but it should cover the majority and avoids situations where we forget to add important options in here in the future.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
Diffstat (limited to 'chef-config/spec')
-rw-r--r-- | chef-config/spec/unit/workstation_config_loader_spec.rb | 2 |
1 files changed, 2 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 8f1cde17e6..f02b1c5016 100644 --- a/chef-config/spec/unit/workstation_config_loader_spec.rb +++ b/chef-config/spec/unit/workstation_config_loader_spec.rb @@ -394,6 +394,7 @@ RSpec.describe ChefConfig::WorkstationConfigLoader do node_name = 'barney' client_key = "barney_rubble.pem" chef_server_url = "https://api.chef.io/organizations/bedrock" +invalid_config_option1234 = "foobar" EOH content end @@ -403,6 +404,7 @@ EOH 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.profile.to_s).to eq("default") + expect(ChefConfig::Config[:invalid_config_option1234]).to eq("foobar") end end |