blob: 9d480ed981d7f82d9a1b3665011199da893654d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
diff --git a/spec/unit/forge/module_release_spec.rb b/spec/unit/forge/module_release_spec.rb
index ca6b722..f7f81f2 100644
--- a/spec/unit/forge/module_release_spec.rb
+++ b/spec/unit/forge/module_release_spec.rb
@@ -72,16 +72,6 @@ describe R10K::Forge::ModuleRelease do
subject.verify
end
- it "verifies using the forge file_sha256, if no sha256 file exists" do
- allow(sha256_digest_class).to receive(:file).and_return(sha256_digest)
- allow(sha256_digest).to receive(:hexdigest).and_return(sha256_of_tarball)
- allow(sha256_file_path).to receive(:exist?).and_return(false)
- allow(subject.forge_release).to receive(:respond_to?).and_return(true)
- allow(subject.forge_release).to receive(:sha256_file).and_return(sha256_of_tarball)
- expect(subject).to receive(:verify_from_forge)
- subject.verify
- end
-
it "falls back to md5 verification when not in FIPS mode and no sha256 available" do
expect(R10K::Util::Platform).to receive(:fips?).and_return(false)
# failed sha256 verification
|