summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortyler-ball <tball@chef.io>2019-05-02 14:10:39 -0600
committerMark Anderson <mark@chef.io>2019-05-03 21:40:19 -0700
commit0c6e3b9f0b45501d3835537bf8ed95ddd779375f (patch)
tree86df887a08d1a9e7e9011d0a832d3e845bc8bd51
parent629d5d05820f4f9feda468c558675fd4432b9809 (diff)
downloadchef-0c6e3b9f0b45501d3835537bf8ed95ddd779375f.tar.gz
Purposefully adding a failing test to prevent Chef Infra from promoting unstable -> currentlicense_acceptance
Signed-off-by: tyler-ball <tball@chef.io>
-rw-r--r--spec/unit/knife/bootstrap_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/knife/bootstrap_spec.rb b/spec/unit/knife/bootstrap_spec.rb
index 90b3efe8cc..67c3a3ee4e 100644
--- a/spec/unit/knife/bootstrap_spec.rb
+++ b/spec/unit/knife/bootstrap_spec.rb
@@ -50,6 +50,10 @@ describe Chef::Knife::Bootstrap do
k
end
+ it "purposefully fails to prevent Chef Infra from promoting unstable -> current" do
+ expect(0).to eq(1)
+ end
+
it "fails when LicenseAcceptance fails" do
expect(LicenseAcceptance::Acceptor).to receive(:check_and_persist!).and_raise("foo")
expect { k = Chef::Knife::Bootstrap.new(bootstrap_cli_options) }.to raise_error("foo")