voxpupuli-acceptance 4.4.0 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/voxpupuli/acceptance/spec_helper_acceptance.rb +25 -0
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 78117c5e267d1a734193a449190fba13205c9073f2410fd2005c8a4132ca550f
|
|
4
|
+
data.tar.gz: 89e0d888f8defe3a076ca228369fa3613c014353ccabcc7015d4598b35365f80
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bcddd8048948cb683693ea87b562974b87262e9a69a61ebacb5132555aed00c2d6e6f79c2f521c11e01ba927ace9d0d116af551fce08e3472204edc085d8c5ad
|
|
7
|
+
data.tar.gz: d69c7ccf693420099181b00d5d786a062f18437ec4df9072f15df05cdb1d81b8fa21f5ca117e004a6921885373df33ee3a039e0c2b595c12dc954ea26b0e9cd5
|
|
@@ -20,6 +20,11 @@ def configure_beaker(modules: :metadata, &block)
|
|
|
20
20
|
|
|
21
21
|
unless ENV['BEAKER_PROVISION'] == 'no'
|
|
22
22
|
block_on hosts, run_in_parallel: true do |host|
|
|
23
|
+
# Only hosts that run systemd-resolved can be affected. Windows, BSD and
|
|
24
|
+
# macOS hosts do not have the file, and the command itself re-checks the
|
|
25
|
+
# remaining conditions.
|
|
26
|
+
disable_dnssec_validation_on(host) if host.file_exist?('/etc/systemd/resolved.conf')
|
|
27
|
+
|
|
23
28
|
if collection == 'staging'
|
|
24
29
|
raise StandardError, "staging server '#{staging_url}' configured, but no BEAKER_STAGING_VERSION environment variable set" unless staging_version
|
|
25
30
|
|
|
@@ -83,6 +88,26 @@ def configure_beaker(modules: :metadata, &block)
|
|
|
83
88
|
end
|
|
84
89
|
end
|
|
85
90
|
|
|
91
|
+
# Debian and Ubuntu cloud images ship systemd-resolved with DNSSEC=yes but
|
|
92
|
+
# without dns-root-data. When the built-in trust anchor is older than the
|
|
93
|
+
# current root KSK, every lookup fails with
|
|
94
|
+
# "DNSSEC validation failed: missing-key", which breaks the package
|
|
95
|
+
# installation done by configure_beaker. The command is a no-op unless the
|
|
96
|
+
# host runs systemd as init, has no local trust anchor, and resolution really
|
|
97
|
+
# fails with that error, so hosts with a current trust anchor are unaffected.
|
|
98
|
+
DNSSEC_VALIDATION_FIX = <<~SHELL
|
|
99
|
+
if [ ! -f /usr/share/dns/root.key ] &&
|
|
100
|
+
[ "$(ps -p 1 -o comm= 2>/dev/null)" = "systemd" ] &&
|
|
101
|
+
resolvectl query --cache=no example.com 2>&1 | grep -q 'DNSSEC validation failed: missing-key'; then
|
|
102
|
+
sed -i 's/^#*DNSSEC=.*/DNSSEC=no/' /etc/systemd/resolved.conf
|
|
103
|
+
systemctl restart systemd-resolved
|
|
104
|
+
fi
|
|
105
|
+
SHELL
|
|
106
|
+
|
|
107
|
+
def disable_dnssec_validation_on(host)
|
|
108
|
+
on(host, DNSSEC_VALIDATION_FIX)
|
|
109
|
+
end
|
|
110
|
+
|
|
86
111
|
RSpec.configure do |c|
|
|
87
112
|
c.formatter = 'RSpec::Github::Formatter' if ENV['GITHUB_ACTIONS'] == 'true'
|
|
88
113
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: voxpupuli-acceptance
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.4.
|
|
4
|
+
version: 4.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vox Pupuli
|
|
@@ -289,14 +289,14 @@ dependencies:
|
|
|
289
289
|
requirements:
|
|
290
290
|
- - "~>"
|
|
291
291
|
- !ruby/object:Gem::Version
|
|
292
|
-
version: 5.
|
|
292
|
+
version: 5.3.0
|
|
293
293
|
type: :development
|
|
294
294
|
prerelease: false
|
|
295
295
|
version_requirements: !ruby/object:Gem::Requirement
|
|
296
296
|
requirements:
|
|
297
297
|
- - "~>"
|
|
298
298
|
- !ruby/object:Gem::Version
|
|
299
|
-
version: 5.
|
|
299
|
+
version: 5.3.0
|
|
300
300
|
description: A package that depends on all the gems Vox Pupuli modules need and methods
|
|
301
301
|
to simplify acceptance spec helpers
|
|
302
302
|
email:
|
|
@@ -338,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
338
338
|
- !ruby/object:Gem::Version
|
|
339
339
|
version: '0'
|
|
340
340
|
requirements: []
|
|
341
|
-
rubygems_version: 4.0.
|
|
341
|
+
rubygems_version: 4.0.20
|
|
342
342
|
specification_version: 4
|
|
343
343
|
summary: Helpers for acceptance testing Vox Pupuli modules
|
|
344
344
|
test_files: []
|