diff options
| author | tyler-ball <tball@chef.io> | 2018-12-19 16:17:14 -0700 |
|---|---|---|
| committer | Mark Anderson <mark@chef.io> | 2019-05-03 19:19:10 -0700 |
| commit | b134493e65d73636d25aa569f9b77f9c0b4c3f88 (patch) | |
| tree | b7969e6aea16fdedda9de9b3a344900438c00dd4 /spec/unit/application_spec.rb | |
| parent | c83bdc4c6adefe29f15ae5bad9eb8f5a6ba30b7e (diff) | |
| download | chef-b134493e65d73636d25aa569f9b77f9c0b4c3f88.tar.gz | |
Adding in the license-acceptance flow
This adds a new feature to chef-client where users must accept the
EULA before using the product. Users can accept the license by
passing '--chef-license accept', setting ENV[CHEF_LICENSE]=accept or by
running 'chef-client' and following the interactive prompt.
Signed-off-by: tyler-ball <tball@chef.io>
Diffstat (limited to 'spec/unit/application_spec.rb')
| -rw-r--r-- | spec/unit/application_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/application_spec.rb b/spec/unit/application_spec.rb index e76e21bddc..ca8397f5d7 100644 --- a/spec/unit/application_spec.rb +++ b/spec/unit/application_spec.rb @@ -72,6 +72,7 @@ describe Chef::Application do describe "run" do before do allow(@app).to receive(:setup_application).and_return(true) + allow(@app).to receive(:check_license_acceptance) allow(@app).to receive(:run_application).and_return(true) allow(@app).to receive(:configure_chef).and_return(true) allow(@app).to receive(:configure_logging).and_return(true) @@ -87,6 +88,11 @@ describe Chef::Application do @app.run end + it "should check the license acceptance" do + expect(@app).to receive(:check_license_acceptance) + @app.run + end + it "should run the actual application" do expect(@app).to receive(:run_application).and_return(true) @app.run |
