We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a1616ca + fa721be commit 7739378Copy full SHA for 7739378
spec/unit/file_serving/http_metadata_spec.rb
@@ -29,6 +29,14 @@
29
expect( metadata.mode ).to be_nil
30
end
31
32
+ it "skips md5 checksum type in collect on FIPS enabled platforms" do
33
+ allow(Puppet::Util::Platform).to receive(:fips_enabled?).and_return(true)
34
+ http_response['X-Checksum-Md5'] = 'c58989e9740a748de4f5054286faf99b'
35
+ metadata = described_class.new(http_response)
36
+ metadata.collect
37
+ expect( metadata.checksum_type ).to eq :mtime
38
+ end
39
+
40
context "with no Last-Modified or Content-MD5 header from the server" do
41
it "should use :mtime as the checksum type, based on current time" do
42
# Stringifying Time.now does some rounding; do so here so we don't end up with a time
0 commit comments