simp-beaker-helpers 1.18.8 → 1.18.9
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/.fixtures.yml +2 -4
- data/.gitlab-ci.yml +15 -47
- data/CHANGELOG.md +5 -0
- data/files/pki/template_ca.cnf +1 -1
- data/files/pki/template_host.cnf +1 -1
- data/lib/simp/beaker_helpers/version.rb +1 -1
- data/spec/acceptance/nodesets/default.yml +8 -1
- data/spec/acceptance/suites/default/nodesets +1 -1
- data/spec/acceptance/suites/fips_from_fixtures/00_default_spec.rb +3 -0
- data/spec/acceptance/suites/fips_from_fixtures/nodesets +1 -1
- data/spec/acceptance/suites/puppet_collections/00_default_spec.rb +11 -13
- data/spec/acceptance/suites/snapshot/nodesets +1 -1
- data/spec/acceptance/suites/windows/nodesets/default.yml +3 -1
- metadata +3 -5
- data/spec/acceptance/suites/puppet_collections/nodesets/default.yml +0 -30
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6af360e25b0c27681121e57724c9440c886489aab74d9bff7a96f32a2fb1805d
|
|
4
|
+
data.tar.gz: b9e0ea633c7e5a274e868abd4203fc3c02861a396f043cdc6c682ca550beacfd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0430e3ab6942bc368478f64dfb8243d76975e25e48d78965d52c7c22b916c80c7ad509af4b63a646dad92d87587e6e5dcdf0a4650b6495e4c3e6138daa05c387
|
|
7
|
+
data.tar.gz: e357315e04adadc555cb3ba8819e1a082c460a6c93c5842e3aa235c1d88faded4c2dea547b29c05689e5eb84de3ce76742d248c2645905f5756b9ddafd58592b
|
data/.fixtures.yml
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
fixtures:
|
|
3
|
-
# Needed for Hiera v5 to work
|
|
4
|
-
forge_modules:
|
|
5
|
-
compliance_markup: "simp/compliance_markup"
|
|
6
3
|
repositories:
|
|
7
|
-
stdlib:
|
|
4
|
+
stdlib: https://github.com/simp/puppetlabs-stdlib
|
|
5
|
+
compliance_markup: https://github.com/simp/pupmod-simp-compliance_markup
|
|
8
6
|
|
data/.gitlab-ci.yml
CHANGED
|
@@ -20,16 +20,6 @@
|
|
|
20
20
|
- 'rm -rf pkg/ || :'
|
|
21
21
|
- bundle check || rm -f Gemfile.lock && ("${BUNDLER_INSTALL[@]}" --local || "${BUNDLER_INSTALL[@]}")
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
.validation_checks: &validation_checks
|
|
25
|
-
script:
|
|
26
|
-
- bundle exec rake syntax
|
|
27
|
-
- bundle exec rake check:dot_underscore
|
|
28
|
-
- bundle exec rake check:test_file
|
|
29
|
-
- bundle exec rake lint
|
|
30
|
-
# - bundle exec rake pkg:check_version
|
|
31
|
-
# - bundle exec rake pkg:compare_latest_tag
|
|
32
|
-
|
|
33
23
|
.spec_tests: &spec_tests
|
|
34
24
|
script:
|
|
35
25
|
- bundle exec rake spec
|
|
@@ -42,43 +32,8 @@
|
|
|
42
32
|
- $SIMP_FULL_MATRIX
|
|
43
33
|
|
|
44
34
|
stages:
|
|
45
|
-
- validation
|
|
46
35
|
- unit
|
|
47
36
|
- acceptance
|
|
48
|
-
- deploy
|
|
49
|
-
|
|
50
|
-
# Puppet 4.10 for PE 2017.2 support (EOL:2018-02-21)
|
|
51
|
-
# See: https://puppet.com/misc/puppet-enterprise-lifecycle
|
|
52
|
-
# --------------------------------------
|
|
53
|
-
2_1-validation:
|
|
54
|
-
stage: validation
|
|
55
|
-
tags:
|
|
56
|
-
- docker
|
|
57
|
-
image: ruby:2.1
|
|
58
|
-
<<: *cache_bundler
|
|
59
|
-
<<: *setup_bundler_env
|
|
60
|
-
<<: *validation_checks
|
|
61
|
-
|
|
62
|
-
2_1-unit:
|
|
63
|
-
stage: unit
|
|
64
|
-
tags:
|
|
65
|
-
- docker
|
|
66
|
-
image: ruby:2.1
|
|
67
|
-
<<: *cache_bundler
|
|
68
|
-
<<: *setup_bundler_env
|
|
69
|
-
<<: *spec_tests
|
|
70
|
-
|
|
71
|
-
# Puppet 4.10 for PE 2017.2 support (EOL:2018-02-21)
|
|
72
|
-
# See: https://puppet.com/misc/puppet-enterprise-lifecycle
|
|
73
|
-
# --------------------------------------
|
|
74
|
-
2_4-validation:
|
|
75
|
-
stage: validation
|
|
76
|
-
tags:
|
|
77
|
-
- docker
|
|
78
|
-
image: ruby:2.4
|
|
79
|
-
<<: *cache_bundler
|
|
80
|
-
<<: *setup_bundler_env
|
|
81
|
-
<<: *validation_checks
|
|
82
37
|
|
|
83
38
|
2_4-unit:
|
|
84
39
|
stage: unit
|
|
@@ -127,7 +82,7 @@ fips_from_fixtures:
|
|
|
127
82
|
- bundle exec rake spec_clean
|
|
128
83
|
- bundle exec rake beaker:suites[fips_from_fixtures]
|
|
129
84
|
|
|
130
|
-
|
|
85
|
+
puppet5_collections:
|
|
131
86
|
stage: acceptance
|
|
132
87
|
tags:
|
|
133
88
|
- beaker
|
|
@@ -135,7 +90,18 @@ puppet_collections:
|
|
|
135
90
|
<<: *setup_bundler_env
|
|
136
91
|
variables:
|
|
137
92
|
PUPPET_VERSION: '~> 5.3'
|
|
138
|
-
|
|
93
|
+
script:
|
|
94
|
+
- bundle exec rake spec_clean
|
|
95
|
+
- bundle exec rake beaker:suites[puppet_collections]
|
|
96
|
+
|
|
97
|
+
puppet6_collections:
|
|
98
|
+
stage: acceptance
|
|
99
|
+
tags:
|
|
100
|
+
- beaker
|
|
101
|
+
<<: *cache_bundler
|
|
102
|
+
<<: *setup_bundler_env
|
|
103
|
+
variables:
|
|
104
|
+
BEAKER_PUPPET_COLLECTION: 'puppet6'
|
|
139
105
|
script:
|
|
140
106
|
- bundle exec rake spec_clean
|
|
141
107
|
- bundle exec rake beaker:suites[puppet_collections]
|
|
@@ -152,6 +118,8 @@ windows:
|
|
|
152
118
|
|
|
153
119
|
snapshot:
|
|
154
120
|
stage: acceptance
|
|
121
|
+
# This is prone to breakage in the underlying system
|
|
122
|
+
allow_failure: true
|
|
155
123
|
tags:
|
|
156
124
|
- beaker
|
|
157
125
|
<<: *cache_bundler
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
### 1.18.9 / 2020-08-04
|
|
2
|
+
* Change windows 2012r2 VM to work around issues where the old image had
|
|
3
|
+
duplicate ports trying to be opened
|
|
4
|
+
* Increase test CA bits to 4096
|
|
5
|
+
|
|
1
6
|
### 1.18.8 / 2020-07-14
|
|
2
7
|
* Allow the beaker version to be pinned by environment variable
|
|
3
8
|
|
data/files/pki/template_ca.cnf
CHANGED
|
@@ -93,7 +93,7 @@ emailAddress = optional
|
|
|
93
93
|
|
|
94
94
|
####################################################################
|
|
95
95
|
[ req ]
|
|
96
|
-
default_bits =
|
|
96
|
+
default_bits = 4096
|
|
97
97
|
default_keyfile = privkey.pem
|
|
98
98
|
distinguished_name = req_distinguished_name
|
|
99
99
|
attributes = req_attributes
|
data/files/pki/template_host.cnf
CHANGED
|
@@ -96,7 +96,7 @@ emailAddress = optional
|
|
|
96
96
|
|
|
97
97
|
####################################################################
|
|
98
98
|
[ req ]
|
|
99
|
-
default_bits =
|
|
99
|
+
default_bits = 4096
|
|
100
100
|
default_keyfile = privkey.pem
|
|
101
101
|
distinguished_name = req_distinguished_name
|
|
102
102
|
attributes = req_attributes
|
|
@@ -9,8 +9,8 @@ HOSTS:
|
|
|
9
9
|
server-el7:
|
|
10
10
|
roles:
|
|
11
11
|
- server
|
|
12
|
-
- default
|
|
13
12
|
- master
|
|
13
|
+
- default
|
|
14
14
|
- el7
|
|
15
15
|
platform: el-7-x86_64
|
|
16
16
|
box: centos/7
|
|
@@ -23,6 +23,13 @@ HOSTS:
|
|
|
23
23
|
box: centos/6
|
|
24
24
|
hypervisor: <%= hypervisor %>
|
|
25
25
|
|
|
26
|
+
server-el8:
|
|
27
|
+
roles:
|
|
28
|
+
- el8
|
|
29
|
+
platform: el-8-x86_64
|
|
30
|
+
box: centos/8
|
|
31
|
+
hypervisor: <%= hypervisor %>
|
|
32
|
+
|
|
26
33
|
CONFIG:
|
|
27
34
|
log_level: verbose
|
|
28
35
|
type: aio
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
../../nodesets
|
|
@@ -31,7 +31,10 @@ ScrubFixtures.new
|
|
|
31
31
|
ENV['BEAKER_fips'] = 'yes'
|
|
32
32
|
ENV['FIXTURES_YML'] = alt_fixtures
|
|
33
33
|
|
|
34
|
+
beaker_gem_options = ENV['BEAKER_GEM_OPTIONS']
|
|
35
|
+
|
|
34
36
|
Bundler.with_clean_env{
|
|
37
|
+
ENV['BEAKER_GEM_OPTIONS'] = beaker_gem_options
|
|
35
38
|
ENV['FIXTURES_YML'] = alt_fixtures
|
|
36
39
|
|
|
37
40
|
%x{bundle exec rake spec_prep}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
../../nodesets
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
# This needs to be done so that we actually bring in a collection at the start
|
|
2
|
-
# of the run
|
|
3
|
-
#
|
|
4
|
-
# Choosing an arbitrary number in the middle of 5 so that we're not fooled by
|
|
5
|
-
# edge cases
|
|
6
|
-
#
|
|
7
|
-
ENV['PUPPET_VERSION'] = '5.1'
|
|
8
|
-
|
|
9
1
|
require 'spec_helper_acceptance'
|
|
10
2
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
unless ENV['PUPPET_VERSION'] || ENV['BEAKER_PUPPET_COLLECTION']
|
|
4
|
+
fail('You must set either PUPPET_VERSION or BEAKER_PUPPET_COLLECTION as an environment variable')
|
|
5
|
+
end
|
|
6
|
+
|
|
7
|
+
if ENV['BEAKER_PUPPET_COLLECTION']
|
|
8
|
+
target_version = ENV['BEAKER_PUPPET_COLLECTION'][/(\d+)$/,1]
|
|
9
|
+
elsif ENV['PUPPET_VERSION']
|
|
10
|
+
target_version = ENV['PUPPET_VERSION'].split('.').first
|
|
11
|
+
end
|
|
14
12
|
|
|
15
13
|
hosts.each do |host|
|
|
16
14
|
describe 'make sure puppet version is valid' do
|
|
17
15
|
context "on #{host}" do
|
|
18
16
|
client_puppet_version = on(host, 'puppet --version').output.strip
|
|
19
17
|
|
|
20
|
-
it "should be running puppet version #{
|
|
21
|
-
expect(Gem::Version.new(client_puppet_version)).to be >= Gem::Version.new(
|
|
18
|
+
it "should be running puppet version #{target_version}" do
|
|
19
|
+
expect(Gem::Version.new(client_puppet_version)).to be >= Gem::Version.new(target_version)
|
|
22
20
|
end
|
|
23
21
|
end
|
|
24
22
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
../../nodesets
|
|
@@ -10,12 +10,14 @@ HOSTS:
|
|
|
10
10
|
roles:
|
|
11
11
|
- windows
|
|
12
12
|
platform: windows-server-amd64
|
|
13
|
-
box:
|
|
13
|
+
box: devopsgroup-io/windows_server-2012r2-standard-amd64-nocm
|
|
14
14
|
hypervisor: <%= hypervisor %>
|
|
15
15
|
vagrant_memsize: 2048
|
|
16
16
|
vagrant_cpus: 2
|
|
17
17
|
user: vagrant
|
|
18
18
|
is_cygwin: false
|
|
19
|
+
ssh:
|
|
20
|
+
host_key: ssh-dss
|
|
19
21
|
|
|
20
22
|
el7:
|
|
21
23
|
roles:
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simp-beaker-helpers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.18.
|
|
4
|
+
version: 1.18.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Tessmer
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2020-
|
|
12
|
+
date: 2020-08-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: beaker
|
|
@@ -203,7 +203,6 @@ files:
|
|
|
203
203
|
- spec/acceptance/suites/offline/nodesets/default.yml
|
|
204
204
|
- spec/acceptance/suites/puppet_collections/00_default_spec.rb
|
|
205
205
|
- spec/acceptance/suites/puppet_collections/metadata.yml
|
|
206
|
-
- spec/acceptance/suites/puppet_collections/nodesets/default.yml
|
|
207
206
|
- spec/acceptance/suites/snapshot/00_snapshot_test_spec.rb
|
|
208
207
|
- spec/acceptance/suites/snapshot/10_general_usage_spec.rb
|
|
209
208
|
- spec/acceptance/suites/snapshot/nodesets
|
|
@@ -235,8 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
235
234
|
- !ruby/object:Gem::Version
|
|
236
235
|
version: '0'
|
|
237
236
|
requirements: []
|
|
238
|
-
|
|
239
|
-
rubygems_version: 2.7.7
|
|
237
|
+
rubygems_version: 3.0.8
|
|
240
238
|
signing_key:
|
|
241
239
|
specification_version: 4
|
|
242
240
|
summary: beaker helper methods for SIMP
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<%
|
|
2
|
-
if ENV['BEAKER_HYPERVISOR']
|
|
3
|
-
hypervisor = ENV['BEAKER_HYPERVISOR']
|
|
4
|
-
else
|
|
5
|
-
hypervisor = 'vagrant'
|
|
6
|
-
end
|
|
7
|
-
-%>
|
|
8
|
-
HOSTS:
|
|
9
|
-
server-el7:
|
|
10
|
-
roles:
|
|
11
|
-
- server
|
|
12
|
-
- default
|
|
13
|
-
- master
|
|
14
|
-
- el7
|
|
15
|
-
platform: el-7-x86_64
|
|
16
|
-
box: centos/7
|
|
17
|
-
hypervisor: <%= hypervisor %>
|
|
18
|
-
|
|
19
|
-
server-el6:
|
|
20
|
-
roles:
|
|
21
|
-
- el6
|
|
22
|
-
platform: el-6-x86_64
|
|
23
|
-
box: centos/6
|
|
24
|
-
hypervisor: <%= hypervisor %>
|
|
25
|
-
|
|
26
|
-
CONFIG:
|
|
27
|
-
log_level: verbose
|
|
28
|
-
type: aio
|
|
29
|
-
puppet_collection: puppet5
|
|
30
|
-
vagrant_memsize: 256
|