diff options
author | Kapil chouhan <kapil.chouhan@msystechnologies.com> | 2020-02-12 16:57:14 +0530 |
---|---|---|
committer | Kapil chouhan <kapil.chouhan@msystechnologies.com> | 2020-02-12 16:57:14 +0530 |
commit | 1984ff59e182877b6358dc34ed4927fdd26db00b (patch) | |
tree | b85d3a7f9c8f0ac562c9475c0205ca6a7645a3a7 /spec/unit/knife | |
parent | fc8b3f0b89f6d4cd705f5f757d4d173d1aac6be8 (diff) | |
download | chef-1984ff59e182877b6358dc34ed4927fdd26db00b.tar.gz |
Reflecting file_cache_path and file_backup_path value in_client.rb
Signed-off-by: Kapil chouhan <kapil.chouhan@msystechnologies.com>
Diffstat (limited to 'spec/unit/knife')
-rw-r--r-- | spec/unit/knife/core/bootstrap_context_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/unit/knife/core/bootstrap_context_spec.rb b/spec/unit/knife/core/bootstrap_context_spec.rb index 029dd90875..4c2ee015eb 100644 --- a/spec/unit/knife/core/bootstrap_context_spec.rb +++ b/spec/unit/knife/core/bootstrap_context_spec.rb @@ -86,6 +86,20 @@ describe Chef::Knife::Core::BootstrapContext do end end + describe "when file_cache_path is set" do + let(:chef_config) { { file_cache_path: "/home/opscode/cache" } } + it "sets file_cache_path in the generated config file" do + expect(bootstrap_context.config_content).to include("file_cache_path \"/home/opscode/cache\"") + end + end + + describe "when file_backup_path is set" do + let(:chef_config) { { file_backup_path: "/home/opscode/backup" } } + it "sets file_backup_path in the generated config file" do + expect(bootstrap_context.config_content).to include("file_backup_path \"/home/opscode/backup\"") + end + end + describe "alternate chef-client path" do let(:chef_config) { { chef_client_path: "/usr/local/bin/chef-client" } } it "runs chef-client from another path when specified" do |