From 30eb283aa687d259a6131c261fc5674d2eb41c8a Mon Sep 17 00:00:00 2001 From: tyler-ball Date: Tue, 23 Apr 2019 10:29:33 -0600 Subject: Read license-acceptance from chef config (knife.rb, client.rb) Signed-off-by: tyler-ball --- spec/integration/client/client_spec.rb | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'spec') diff --git a/spec/integration/client/client_spec.rb b/spec/integration/client/client_spec.rb index 23f262ad02..cde25662c1 100644 --- a/spec/integration/client/client_spec.rb +++ b/spec/integration/client/client_spec.rb @@ -60,24 +60,6 @@ describe "chef-client" do shell_out!("#{chef_client} -c \"#{path_to('config/client.rb')}\" -o 'x::default'", cwd: chef_dir) end - it "should complete successfully with no other environment variables", skip: (Chef::Platform.windows?) do - file "config/client.rb", <<~EOM - local_mode true - cookbook_path "#{path_to('cookbooks')}" - # One environment variable we DO need to prevent hanging - ENV["CHEF_LICENSE"] = "accept-no-persist" - EOM - - begin - result = shell_out("env -i #{critical_env_vars} #{chef_client} -c \"#{path_to('config/client.rb')}\" -o 'x::default'", cwd: chef_dir) - result.error! - rescue - Chef::Log.info "Bare invocation will have the following load-path." - Chef::Log.info shell_out!("env -i #{critical_env_vars} ruby -e 'puts $:'").stdout - raise - end - end - it "should complete successfully with --no-listen" do file "config/client.rb", <<~EOM local_mode true -- cgit v1.2.1