Skip to content

Commit 4ca7e0d

Browse files
committed
Fix Specs
1 parent 18a1f2a commit 4ca7e0d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spec/unit/indirector/catalog/compiler_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def set_facts(fact_hash)
226226
allow(node.environment).to receive(:static_catalogs?).and_return(true)
227227

228228
expect { compiler.find(@request) }.to raise_error Puppet::Error,
229-
"Unable to find a common checksum type between agent 'atime.md2' and master '[:sha256, :sha256lite, :md5, :md5lite, :sha1, :sha1lite, :sha512, :sha384, :sha224, :mtime, :ctime, :none]'."
229+
"Unable to find a common checksum type between agent 'atime.md2' and master '[:sha256, :sha256lite, :md5, :md5lite, :sha1, :sha1lite, :sha512, :sha384, :sha224, :mtime, :ctime, :none, :etag]'."
230230
end
231231

232232
it "errors if checksum_type contains no shared checksum types" do
@@ -237,7 +237,7 @@ def set_facts(fact_hash)
237237
allow(node.environment).to receive(:static_catalogs?).and_return(true)
238238

239239
expect { compiler.find(@request) }.to raise_error Puppet::Error,
240-
"Unable to find a common checksum type between agent '' and master '[:sha256, :sha256lite, :md5, :md5lite, :sha1, :sha1lite, :sha512, :sha384, :sha224, :mtime, :ctime, :none]'."
240+
"Unable to find a common checksum type between agent '' and master '[:sha256, :sha256lite, :md5, :md5lite, :sha1, :sha1lite, :sha512, :sha384, :sha224, :mtime, :ctime, :none, :etag]'."
241241
end
242242

243243
it "prevents the environment from being evicted during compilation" do

spec/unit/type/file_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@
14651465
file[:source] = source
14661466
end
14671467

1468-
Puppet::Type::File::ParameterChecksum.value_collection.values.reject {|v| v == :none}.each do |checksum_type|
1468+
Puppet::Type::File::ParameterChecksum.value_collection.values.reject {|v| v == :none || v == :etag}.each do |checksum_type|
14691469
describe "with checksum '#{checksum_type}'" do
14701470
before do
14711471
file[:checksum] = checksum_type
@@ -1591,7 +1591,7 @@
15911591
file[:content] = FILE_CONTENT
15921592
end
15931593

1594-
(Puppet::Type::File::ParameterChecksum.value_collection.values - SOURCE_ONLY_CHECKSUMS).each do |checksum_type|
1594+
(Puppet::Type::File::ParameterChecksum.value_collection.values - SOURCE_ONLY_CHECKSUMS - [:etag]).each do |checksum_type|
15951595
describe "with checksum '#{checksum_type}'" do
15961596
before do
15971597
file[:checksum] = checksum_type

0 commit comments

Comments
 (0)