summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMarc A. Paradise <marc.paradise@gmail.com>2019-04-08 09:00:57 -0400
committerMarc A. Paradise <marc.paradise@gmail.com>2019-04-24 13:25:58 -0400
commit8fe62e8f42e5eb30ca4b5c8ba54fe4b15424b480 (patch)
tree351149c7ae8854c7b133a5e0e9407092e0aca286 /spec
parent4f70574dc592ff29a36e836ddfe5010632d06d11 (diff)
downloadchef-8fe62e8f42e5eb30ca4b5c8ba54fe4b15424b480.tar.gz
Remove prerelease support. Minimum version w/ fips now 12.20.
Signed-off-by: Marc A. Paradise <marc.paradise@gmail.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/knife/core/bootstrap_context_spec.rb28
1 files changed, 1 insertions, 27 deletions
diff --git a/spec/unit/knife/core/bootstrap_context_spec.rb b/spec/unit/knife/core/bootstrap_context_spec.rb
index 5aa176557f..4b8c78eb9e 100644
--- a/spec/unit/knife/core/bootstrap_context_spec.rb
+++ b/spec/unit/knife/core/bootstrap_context_spec.rb
@@ -168,18 +168,6 @@ describe Chef::Knife::Core::BootstrapContext do
end
end
- describe "when a pre-release bootstrap_version is specified" do
- let(:chef_config) do
- {
- knife: { bootstrap_version: "11.12.4.rc.0" },
- }
- end
-
- it "should send the full version to the installer and set the pre-release flag" do
- expect(bootstrap_context.latest_current_chef_version_string).to eq("-v 11.12.4.rc.0 -p")
- end
- end
-
describe "when a bootstrap_version is not specified" do
it "should send the latest current to the installer" do
# Intentionally hard coded in order not to replicate the logic.
@@ -223,7 +211,7 @@ describe Chef::Knife::Core::BootstrapContext do
fips true
require "chef/version"
chef_version = ::Chef::VERSION.split(".")
- unless chef_version[0].to_i > 12 || (chef_version[0].to_i == 12 && chef_version[1].to_i >= 8)
+ unless chef_version[0].to_i > 12 || (chef_version[0].to_i == 12 && chef_version[1].to_i >= 20)
raise "FIPS Mode requested but not supported by this client"
end
CONFIG
@@ -256,20 +244,6 @@ describe Chef::Knife::Core::BootstrapContext do
end
end
- describe "prerelease" do
- it "isn't set in the config_content by default" do
- expect(bootstrap_context.config_content).not_to include("prerelease")
- end
-
- describe "when configured via cli" do
- let(:config) { { prerelease: true } }
-
- it "uses CLI value" do
- expect(bootstrap_context.latest_current_chef_version_string).to eq("-p")
- end
- end
- end
-
describe "#config_log_location" do
context "when config_log_location is nil" do
let(:chef_config) { { config_log_location: nil } }