# Apply the manifest (Retry if timeout error is received from key pool)
retry_on_error_matching do
apply_manifest(gpg_key_pp, catch_failures: true)
# Apply the manifest (Retry if timeout error is received from key pool)
retry_on_error_matching do
apply_manifest(gpg_key_pp, catch_failures: true)
retry_on_error_matching do
apply_manifest(hkp_pool_pp, catch_failures: true)
end
retry_on_error_matching do
apply_manifest(hkp_pool_pp, catch_failures: true)
end
retry_on_error_matching do
apply_manifest(hkps_ubuntu_pp, catch_failures: true)
end
retry_on_error_matching do
apply_manifest(hkps_ubuntu_pp, catch_failures: true)
end
describe 'fingerprint validation against source/content' do
context 'with fingerprint in id matches fingerprint from remote key' do
describe 'fingerprint validation against source/content' do
context 'with fingerprint in id matches fingerprint from remote key' do
apply_manifest_twice(fingerprint_match_pp)
end
end
context 'with fingerprint in id does NOT match fingerprint from remote key' do
apply_manifest_twice(fingerprint_match_pp)
end
end
context 'with fingerprint in id does NOT match fingerprint from remote key' do
apply_manifest(fingerprint_does_not_match_pp, expect_failures: true) do |r|
expect(r.stderr).to match(%r{don't match})
end
apply_manifest(fingerprint_does_not_match_pp, expect_failures: true) do |r|
expect(r.stderr).to match(%r{don't match})
end