Skip to content

Commit 0326833

Browse files
authored
Merge pull request #1136 from puppetlabs/CAT-1442-review-and-fix-the-pipeline-for-apt-module
(CAT-1442)-Fix pipeline for apt module
2 parents 0a23900 + dfdcd5c commit 0326833

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

spec/acceptance/apt_backports_spec.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
end
1212

1313
it 'applies idempotently' do
14-
idempotent_apply(pp)
14+
retry_on_error_matching do
15+
idempotent_apply(pp)
16+
end
1517
end
1618

1719
it 'provides backports apt sources' do

spec/acceptance/apt_key_provider_spec.rb

+5-3
Original file line numberDiff line numberDiff line change
@@ -902,9 +902,11 @@ def apply_manifest_twice(manifest_pp)
902902

903903
context 'when refresh => true' do
904904
it 'updates an expired key' do
905-
apply_manifest(refresh_true_pp)
906-
# Check key has been updated to new version
907-
run_shell(PUPPETLABS_EXP_CHECK_COMMAND.to_s)
905+
retry_on_error_matching do
906+
apply_manifest(refresh_true_pp)
907+
# Check key has been updated to new version
908+
run_shell(PUPPETLABS_EXP_CHECK_COMMAND.to_s)
909+
end
908910
end
909911
end
910912

spec/spec_helper_acceptance_local.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
UNSUPPORTED_PLATFORMS = ['RedHat', 'Suse', 'windows', 'AIX', 'Solaris'].freeze
44
RETRY_WAIT = 3
5-
ERROR_MATCHER = %r{(no valid OpenPGP data found|keyserver timed out|keyserver receive failed)}.freeze
5+
ERROR_MATCHER = %r{(no valid OpenPGP data found|keyserver timed out|keyserver receive failed|shell failed|apply manifest failed)}.freeze
66
MAX_RETRY_COUNT = 10
77

88
RSpec.configure do |c|

0 commit comments

Comments
 (0)