diff options
author | Vivek Singh <vivek.singh@msystechnologies.com> | 2019-11-02 13:56:27 +0530 |
---|---|---|
committer | Vivek Singh <vivek.singh@msystechnologies.com> | 2019-11-03 09:44:25 +0530 |
commit | 3b1c6279fb944249b03986525636c8edd5e3c73a (patch) | |
tree | 6998c39391e23576a08ac99d05acc9fefafc84ba /spec/integration | |
parent | 52734604df488abd25db7264573bae1ccbcde377 (diff) | |
download | chef-3b1c6279fb944249b03986525636c8edd5e3c73a.tar.gz |
Fix TypeError: no implicit conversion of nil into String
- Now showing relevant logs for config.d configuration files.
Signed-off-by: Vivek Singh <vivek.singh@msystechnologies.com>
Diffstat (limited to 'spec/integration')
-rw-r--r-- | spec/integration/knife/config_get_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/integration/knife/config_get_spec.rb b/spec/integration/knife/config_get_spec.rb index 98fefd729f..83150a39b8 100644 --- a/spec/integration/knife/config_get_spec.rb +++ b/spec/integration/knife/config_get_spec.rb @@ -110,6 +110,13 @@ describe "knife config get", :workstation do it { is_expected.to match(/^node_name:\s+one$/) } end + context "with a config dot d files" do + before { file(".chef/config.d/abc.rb", "node_name 'one'\n") } + + it { is_expected.to match(%r{^Loading from .d/ configuration file .*/#{File.basename(path_to("."))}/.chef/config.d/abc.rb$}) } + it { is_expected.to match(/^node_name:\s+one$/) } + end + context "with a credentials file and CHEF_HOME" do before do file(".chef/credentials", "[default]\nclient_name = \"three\"\n") |