simp-beaker-helpers 1.18.8 → 1.19.4
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/.fips_fixtures +8 -0
- data/.fixtures.yml +3 -4
- data/.gitignore +1 -0
- data/.gitlab-ci.yml +338 -125
- data/.travis.yml +39 -33
- data/CHANGELOG.md +40 -0
- data/Gemfile +1 -1
- data/Rakefile +1 -1
- data/files/pki/template_ca.cnf +1 -1
- data/files/pki/template_host.cnf +1 -1
- data/lib/simp/beaker_helpers.rb +124 -64
- data/lib/simp/beaker_helpers/constants.rb +1 -1
- data/lib/simp/beaker_helpers/version.rb +1 -1
- data/spec/acceptance/nodesets/default.yml +5 -5
- data/spec/acceptance/suites/default/check_puppet_version_spec.rb +2 -2
- data/spec/acceptance/suites/default/fixture_modules_spec.rb +22 -4
- data/spec/acceptance/suites/default/install_simp_deps_repo_spec.rb +14 -20
- 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
- data/spec/lib/simp/beaker_helpers_spec.rb +17 -34
- metadata +36 -9
- 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: 0a44635bd8cc4cc1a091769b42837b03e7711e280ce4e81a261614ff95ca0241
|
4
|
+
data.tar.gz: afbf39be4623d4abb203efcf4215d931cba9366ee1252658918d382d5e6191fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2e6e7bf750cb1b75240583efa6ae766981fe82be3fcfa59e498198285c97901569fd4a17857328497b54c55fbc098504883b1be9b5239db2809ba8a3c80ed90
|
7
|
+
data.tar.gz: 20ad194cabcf61d8489efb238ff5d9590c76c3d6e2ea850431d2a51b7295720bf75a8deb48b752c942e0fe0ca8322e5591cf5b2718d69c6a88d923165661c65c
|
data/.fips_fixtures
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
---
|
2
|
+
fixtures:
|
3
|
+
repositories:
|
4
|
+
fips: https://github.com/simp/pupmod-simp-fips
|
5
|
+
augeasproviders_core: https://github.com/simp/augeasproviders_core
|
6
|
+
augeasproviders_grub: https://github.com/simp/augeasproviders_grub
|
7
|
+
simplib: https://github.com/simp/pupmod-simp-simplib
|
8
|
+
stdlib: https://github.com/simp/puppetlabs-stdlib
|
data/.fixtures.yml
CHANGED
@@ -1,8 +1,7 @@
|
|
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
|
+
simplib: https://github.com/simp/pupmod-simp-simplib
|
6
|
+
compliance_markup: https://github.com/simp/pupmod-simp-compliance_markup
|
8
7
|
|
data/.gitignore
CHANGED
data/.gitlab-ci.yml
CHANGED
@@ -1,163 +1,376 @@
|
|
1
|
+
# ------------------------------------------------------------------------------
|
2
|
+
# NOTICE: **This file is maintained with puppetsync**
|
3
|
+
#
|
4
|
+
# This file is updated automatically as part of a puppet module baseline.
|
5
|
+
#
|
6
|
+
# The next baseline sync will overwrite any local changes to everything above
|
7
|
+
# the line "# Repo-specific content"
|
8
|
+
# ------------------------------------------------------------------------------
|
9
|
+
# The testing matrix considers ruby/puppet versions supported by SIMP and PE:
|
10
|
+
#
|
11
|
+
# https://puppet.com/docs/pe/2019.8/component_versions_in_recent_pe_releases.html
|
12
|
+
# https://puppet.com/misc/puppet-enterprise-lifecycle
|
13
|
+
# https://puppet.com/docs/pe/2018.1/overview/getting_support_for_pe.html
|
14
|
+
# ------------------------------------------------------------------------------
|
15
|
+
# Release Puppet Ruby EOL
|
16
|
+
# SIMP 6.4 5.5 2.4.10 TBD
|
17
|
+
# PE 2018.1 5.5 2.4.10 2021-01 (LTS overlap)
|
18
|
+
# PE 2019.8 6.18 2.5.7 2022-12 (LTS)
|
1
19
|
---
|
2
|
-
|
20
|
+
|
21
|
+
stages:
|
22
|
+
- 'validation'
|
23
|
+
- 'acceptance'
|
24
|
+
- 'compliance'
|
25
|
+
- 'deployment'
|
26
|
+
|
27
|
+
variables:
|
28
|
+
# PUPPET_VERSION is a canary variable!
|
29
|
+
#
|
30
|
+
# The value `UNDEFINED` will (intentionally) cause `bundler install|update` to
|
31
|
+
# fail. The intended value for PUPPET_VERSION is provided by the `pup_#` YAML
|
32
|
+
# anchors. If it is still `UNDEFINED`, all the other setting from the job's
|
33
|
+
# anchor are also missing.
|
34
|
+
PUPPET_VERSION: 'UNDEFINED' # <- Matrixed jobs MUST override this (or fail)
|
35
|
+
BUNDLER_VERSION: '1.17.1'
|
36
|
+
SIMP_MATRIX_LEVEL: '1'
|
37
|
+
SIMP_FORCE_RUN_MATRIX: 'no'
|
38
|
+
|
39
|
+
# Force dependencies into a path the gitlab-runner user can write to.
|
40
|
+
# (This avoids some failures on Runners with misconfigured ruby environments.)
|
41
|
+
GEM_HOME: .vendor/gem_install
|
42
|
+
BUNDLE_CACHE_PATH: .vendor/bundle
|
43
|
+
BUNDLE_PATH: .vendor/bundle
|
44
|
+
BUNDLE_BIN: .vendor/gem_install/bin
|
45
|
+
BUNDLE_NO_PRUNE: 'true'
|
46
|
+
|
47
|
+
|
48
|
+
# bundler dependencies + caching, optional RVM setup, with diagnostic output
|
49
|
+
# --------------------------------------------------------------------------
|
50
|
+
.setup_bundler_env: &setup_bundler_env
|
3
51
|
cache:
|
4
|
-
|
5
|
-
|
6
|
-
key: "${CI_PROJECT_NAMESPACE}__bundler"
|
52
|
+
# Cache bundler gems between pipelines for each Ruby version
|
53
|
+
key: "${CI_PROJECT_NAMESPACE}_ruby-${MATRIX_RUBY_VERSION}_bundler"
|
7
54
|
paths:
|
8
55
|
- '.vendor'
|
9
|
-
- 'vendor'
|
10
|
-
|
11
|
-
.setup_bundler_env: &setup_bundler_env
|
12
56
|
before_script:
|
13
|
-
- '
|
14
|
-
|
15
|
-
- '
|
16
|
-
- '
|
17
|
-
-
|
18
|
-
-
|
19
|
-
|
57
|
+
- 'ruby -e "puts %(\n\n), %q(=)*80, %(\nSIMP-relevant Environment Variables:\n\n#{e=ENV.keys.grep(/^PUPPET|^SIMP|^BEAKER|MATRIX/); pad=e.map{|x| x.size}.max+1; e.map{|v| %( * #{%(#{v}:).ljust(pad)} #{39.chr + ENV[v] + 39.chr}\n)}.join}\n), %q(=)*80, %(\n\n)"'
|
58
|
+
# Diagnostic ruby & gem information
|
59
|
+
- 'which ruby && ruby --version || :'
|
60
|
+
- "[[ $- == *i* ]] && echo 'Interactive shell session' || echo 'Non-interactive shell session'"
|
61
|
+
- "shopt -q login_shell && echo 'Login shell' || echo 'Not a login shell'"
|
62
|
+
- 'rvm ls || :'
|
63
|
+
|
64
|
+
# If RVM is available, make SURE it's using the right Ruby:
|
65
|
+
# * Source rvm (to run in non-login shells)
|
66
|
+
# * If any $MATRIX_RUBY_VERSION rubies are available, use the latest
|
67
|
+
# * Otherwise: install & use ${MATRIX_RUBY_VERSION}-head (e.g., latest)
|
68
|
+
# * ^^ This could be wonky and introduce variations across runners
|
69
|
+
# * ^^ maybe it should just fail if there is no $MATRIX_RUBY_VERSION installed?
|
70
|
+
- "command -v rvm && { if declare -p rvm_path &> /dev/null; then source \"${rvm_path}/scripts/rvm\"; else source \"$HOME/.rvm/scripts/rvm\" || source /etc/profile.d/rvm.sh; fi; }"
|
71
|
+
- "command -v rvm && { LATEST_RVM_RUBY_XY=\"$(rvm ls | grep \"$MATRIX_RUBY_VERSION\" | tail -1 | sed -e 's/^.*\\([0-9]\\+\\.[0-9]\\+\\.[0-9]\\+\\).*$/\\1/g')\"; if [ -z \"$LATEST_RVM_RUBY_XY\" ]; then LATEST_RVM_RUBY_XY=\"${MATRIX_RUBY_VERSION}-head\"; rvm install \"$LATEST_RVM_RUBY\" --no-docs; else echo \"Found RVM Ruby: '${LATEST_RVM_RUBY_XY}'\"; fi; rvm use \"$LATEST_RVM_RUBY_XY\" ; }"
|
72
|
+
- 'ruby --version || :'
|
73
|
+
- 'gem list sync || :'
|
74
|
+
|
75
|
+
# Bundle gems (preferring cached > local > downloaded resources)
|
76
|
+
# * Try to use cached and local resources before downloading dependencies
|
77
|
+
- 'declare GEM_BUNDLER_VER=(-v "~> ${BUNDLER_VERSION:-1.17.1}")'
|
78
|
+
- 'declare GEM_INSTALL_CMD=(gem install --no-document)'
|
79
|
+
- 'declare BUNDLER_INSTALL_CMD=(bundle install --no-binstubs --jobs $(nproc) "${FLAGS[@]}")'
|
80
|
+
- 'mkdir -p ${GEM_HOME} ${BUNDLER_BIN}'
|
81
|
+
- 'gem list -ie "${GEM_BUNDLER_VER[@]}" --silent bundler || "${GEM_INSTALL_CMD[@]}" --local "${GEM_BUNDLER_VER[@]}" bundler || "${GEM_INSTALL_CMD[@]}" "${GEM_BUNDLER_VER[@]}" bundler'
|
20
82
|
- 'rm -rf pkg/ || :'
|
21
|
-
- bundle check || rm -f Gemfile.lock && ("${
|
83
|
+
- 'bundle check || rm -f Gemfile.lock && ("${BUNDLER_INSTALL_CMD[@]}" --local || "${BUNDLER_INSTALL_CMD[@]}" || bundle pristine || "${BUNDLER_INSTALL_CMD[@]}") || { echo "PIPELINE: Bundler could not install everything (see log output above)" && exit 99 ; }'
|
22
84
|
|
85
|
+
# Diagnostic bundler, ruby, and gem checks:
|
86
|
+
- 'bundle exec rvm ls || :'
|
87
|
+
- 'bundle exec which ruby || :'
|
88
|
+
- 'bundle show sync || :'
|
89
|
+
- 'bundle exec gem list sync || :'
|
23
90
|
|
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
|
-
.spec_tests: &spec_tests
|
34
|
-
script:
|
35
|
-
- bundle exec rake spec
|
36
91
|
|
37
|
-
#
|
38
|
-
#
|
39
|
-
|
40
|
-
only:
|
41
|
-
variables:
|
42
|
-
- $SIMP_FULL_MATRIX
|
92
|
+
# Assign a matrix level when your test will run. Heavier jobs get higher numbers
|
93
|
+
# NOTE: To skip all jobs with a SIMP_MATRIX_LEVEL, set SIMP_MATRIX_LEVEL=0
|
94
|
+
# ------------------------------------------------------------------------------
|
43
95
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
-
|
57
|
-
|
58
|
-
|
96
|
+
.relevant_file_conditions_trigger_spec_tests: &relevant_file_conditions_trigger_spec_tests
|
97
|
+
changes:
|
98
|
+
- .gitlab-ci.yml
|
99
|
+
- .fixtures.yml
|
100
|
+
- .rspec
|
101
|
+
- metadata.json
|
102
|
+
- "spec/spec_helper.rb"
|
103
|
+
- "spec/{classes,unit,defines,type_aliases,types,hosts,lib}/**/*.rb"
|
104
|
+
- "{SIMP,data,manifests,files,types,lib}/**/*"
|
105
|
+
- "templates/**/*.{erb,epp}"
|
106
|
+
- "Gemfile"
|
107
|
+
exists:
|
108
|
+
- "spec/{classes,unit,defines,type_aliases,types,hosts,lib}/**/*_spec.rb"
|
109
|
+
|
110
|
+
.relevant_file_conditions_trigger_acceptance_tests: &relevant_file_conditions_trigger_acceptance_tests
|
111
|
+
changes:
|
112
|
+
- .gitlab-ci.yml
|
113
|
+
- .fixtures.yml
|
114
|
+
- "spec/spec_helper_acceptance.rb"
|
115
|
+
- "spec/acceptance/**/*"
|
116
|
+
- "{SIMP,data,manifests,files,types,lib}/**/*"
|
117
|
+
- "templates/**/*.{erb,epp}"
|
118
|
+
- "Gemfile"
|
119
|
+
exists:
|
120
|
+
- "spec/acceptance/**/*_spec.rb"
|
121
|
+
|
122
|
+
# For some reason, the rule regexes stopped matching line starts inside
|
123
|
+
# $CI_COMMIT_MESSAGE with carets /^/, so we're using /\n?/ as a workaround.
|
124
|
+
.skip_job_when_commit_message_says_to: &skip_job_when_commit_message_says_to
|
125
|
+
if: '$CI_COMMIT_MESSAGE =~ /\n?CI: (SKIP MATRIX|MATRIX LEVEL 0)/'
|
126
|
+
when: never
|
127
|
+
|
128
|
+
.force_run_job_when_commit_message_lvl_1_or_above: &force_run_job_when_commit_mssage_lvl_1_or_above
|
129
|
+
if: '$CI_COMMIT_MESSAGE =~ /\n?CI: MATRIX LEVEL [123]/'
|
130
|
+
when: on_success
|
131
|
+
|
132
|
+
.force_run_job_when_commit_message_lvl_2_or_above: &force_run_job_when_commit_mssage_lvl_2_or_above
|
133
|
+
if: '$CI_COMMIT_MESSAGE =~ /\n?CI: MATRIX LEVEL [23]/'
|
134
|
+
when: on_success
|
135
|
+
|
136
|
+
.force_run_job_when_commit_message_lvl_3_or_above: &force_run_job_when_commit_mssage_lvl_3_or_above
|
137
|
+
if: '$CI_COMMIT_MESSAGE =~ /\n?CI: MATRIX LEVEL [3]/'
|
138
|
+
when: on_success
|
139
|
+
|
140
|
+
# check for $CI_PIPELINE_SOURCE needed because this is combined w/when:changes
|
141
|
+
.run_job_when_level_1_or_above_w_changes: &run_job_when_level_1_or_above_w_changes
|
142
|
+
if: '$SIMP_MATRIX_LEVEL =~ /^[123]$/ && $CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
|
143
|
+
when: on_success
|
144
|
+
|
145
|
+
.run_job_when_level_2_or_above_w_changes: &run_job_when_level_2_or_above_w_changes
|
146
|
+
if: '$SIMP_MATRIX_LEVEL =~ /^[23]$/ && $CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
|
147
|
+
when: on_success
|
148
|
+
|
149
|
+
.run_job_when_level_3_or_above_w_changes: &run_job_when_level_3_or_above_w_changes
|
150
|
+
if: '$SIMP_MATRIX_LEVEL =~ /^[3]$/ && $CI_COMMIT_BRANCH && $CI_PIPELINE_SOURCE == "push"'
|
151
|
+
when: on_success
|
152
|
+
|
153
|
+
.force_run_job_when_var_and_lvl_1_or_above: &force_run_job_when_var_and_lvl_1_or_above
|
154
|
+
if: '$SIMP_FORCE_RUN_MATRIX == "yes" && $SIMP_MATRIX_LEVEL =~ /^[123]$/'
|
155
|
+
when: on_success
|
156
|
+
|
157
|
+
.force_run_job_when_var_and_lvl_2_or_above: &force_run_job_when_var_and_lvl_2_or_above
|
158
|
+
if: '$SIMP_FORCE_RUN_MATRIX == "yes" && $SIMP_MATRIX_LEVEL =~ /^[23]$/'
|
159
|
+
when: on_success
|
160
|
+
|
161
|
+
.force_run_job_when_var_and_lvl_3_or_above: &force_run_job_when_var_and_lvl_3_or_above
|
162
|
+
if: '$SIMP_FORCE_RUN_MATRIX == "yes" && $SIMP_MATRIX_LEVEL =~ /^[3]$/'
|
163
|
+
when: on_success
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
# SIMP_MATRIX_LEVEL=1: Intended to run every commit
|
168
|
+
.with_SIMP_ACCEPTANCE_MATRIX_LEVEL_1: &with_SIMP_ACCEPTANCE_MATRIX_LEVEL_1
|
169
|
+
rules:
|
170
|
+
- <<: *skip_job_when_commit_message_says_to
|
171
|
+
- <<: *force_run_job_when_var_and_lvl_1_or_above
|
172
|
+
- <<: *force_run_job_when_commit_mssage_lvl_1_or_above
|
173
|
+
- <<: *run_job_when_level_1_or_above_w_changes
|
174
|
+
<<: *relevant_file_conditions_trigger_acceptance_tests
|
175
|
+
- when: never
|
176
|
+
|
177
|
+
.with_SIMP_SPEC_MATRIX_LEVEL_1: &with_SIMP_SPEC_MATRIX_LEVEL_1
|
178
|
+
rules:
|
179
|
+
- <<: *skip_job_when_commit_message_says_to
|
180
|
+
- <<: *force_run_job_when_commit_mssage_lvl_1_or_above
|
181
|
+
- <<: *force_run_job_when_var_and_lvl_1_or_above
|
182
|
+
- <<: *run_job_when_level_1_or_above_w_changes
|
183
|
+
<<: *relevant_file_conditions_trigger_spec_tests
|
184
|
+
- when: never
|
185
|
+
|
186
|
+
# SIMP_MATRIX_LEVEL=2: Resource-heavy or redundant jobs
|
187
|
+
.with_SIMP_ACCEPTANCE_MATRIX_LEVEL_2: &with_SIMP_ACCEPTANCE_MATRIX_LEVEL_2
|
188
|
+
rules:
|
189
|
+
- <<: *skip_job_when_commit_message_says_to
|
190
|
+
- <<: *force_run_job_when_var_and_lvl_2_or_above
|
191
|
+
- <<: *force_run_job_when_commit_mssage_lvl_2_or_above
|
192
|
+
- <<: *run_job_when_level_2_or_above_w_changes
|
193
|
+
<<: *relevant_file_conditions_trigger_acceptance_tests
|
194
|
+
- when: never
|
195
|
+
|
196
|
+
.with_SIMP_SPEC_MATRIX_LEVEL_2: &with_SIMP_SPEC_MATRIX_LEVEL_2
|
197
|
+
rules:
|
198
|
+
- <<: *skip_job_when_commit_message_says_to
|
199
|
+
- <<: *force_run_job_when_commit_mssage_lvl_2_or_above
|
200
|
+
- <<: *force_run_job_when_var_and_lvl_2_or_above
|
201
|
+
- <<: *run_job_when_level_2_or_above_w_changes
|
202
|
+
<<: *relevant_file_conditions_trigger_spec_tests
|
203
|
+
- when: never
|
204
|
+
|
205
|
+
# SIMP_MATRIX_LEVEL=3: Reserved for FULL matrix testing
|
206
|
+
.with_SIMP_ACCEPTANCE_MATRIX_LEVEL_3: &with_SIMP_ACCEPTANCE_MATRIX_LEVEL_3
|
207
|
+
rules:
|
208
|
+
- <<: *skip_job_when_commit_message_says_to
|
209
|
+
- <<: *force_run_job_when_var_and_lvl_3_or_above
|
210
|
+
- <<: *force_run_job_when_commit_mssage_lvl_3_or_above
|
211
|
+
- <<: *run_job_when_level_3_or_above_w_changes
|
212
|
+
<<: *relevant_file_conditions_trigger_acceptance_tests
|
213
|
+
- when: never
|
214
|
+
|
215
|
+
|
216
|
+
# Puppet Versions
|
217
|
+
#-----------------------------------------------------------------------
|
218
|
+
|
219
|
+
.pup_5: &pup_5
|
220
|
+
image: 'ruby:2.4'
|
221
|
+
variables:
|
222
|
+
PUPPET_VERSION: '~> 5.0'
|
223
|
+
BEAKER_PUPPET_COLLECTION: 'puppet5'
|
224
|
+
MATRIX_RUBY_VERSION: '2.4'
|
225
|
+
|
226
|
+
.pup_6: &pup_6
|
227
|
+
image: 'ruby:2.5'
|
228
|
+
variables:
|
229
|
+
PUPPET_VERSION: '~> 6.0'
|
230
|
+
BEAKER_PUPPET_COLLECTION: 'puppet6'
|
231
|
+
MATRIX_RUBY_VERSION: '2.5'
|
232
|
+
|
233
|
+
.pup_6_18_0: &pup_6_18_0
|
234
|
+
image: 'ruby:2.5'
|
235
|
+
variables:
|
236
|
+
PUPPET_VERSION: '6.18.0'
|
237
|
+
BEAKER_PUPPET_COLLECTION: 'puppet6'
|
238
|
+
MATRIX_RUBY_VERSION: '2.5'
|
239
|
+
|
240
|
+
.pup_7: &pup_7
|
241
|
+
image: 'ruby:2.7'
|
242
|
+
variables:
|
243
|
+
PUPPET_VERSION: '~> 7.0'
|
244
|
+
BEAKER_PUPPET_COLLECTION: 'puppet7'
|
245
|
+
MATRIX_RUBY_VERSION: '2.7'
|
246
|
+
|
247
|
+
# Testing Environments
|
248
|
+
#-----------------------------------------------------------------------
|
249
|
+
|
250
|
+
.lint_tests: &lint_tests
|
251
|
+
stage: 'validation'
|
252
|
+
tags: ['docker']
|
59
253
|
<<: *setup_bundler_env
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
254
|
+
script:
|
255
|
+
- 'bundle exec rake syntax'
|
256
|
+
- 'bundle exec rake lint'
|
257
|
+
- 'bundle exec rake metadata_lint'
|
258
|
+
|
259
|
+
.unit_tests: &unit_tests
|
260
|
+
stage: 'validation'
|
261
|
+
tags: ['docker']
|
68
262
|
<<: *setup_bundler_env
|
69
|
-
<<: *
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
tags:
|
77
|
-
- docker
|
78
|
-
image: ruby:2.4
|
79
|
-
<<: *cache_bundler
|
263
|
+
<<: *with_SIMP_SPEC_MATRIX_LEVEL_1
|
264
|
+
script:
|
265
|
+
- 'bundle exec rake spec'
|
266
|
+
|
267
|
+
.acceptance_base: &acceptance_base
|
268
|
+
stage: 'acceptance'
|
269
|
+
tags: ['beaker']
|
80
270
|
<<: *setup_bundler_env
|
81
|
-
<<: *
|
82
|
-
|
83
|
-
|
84
|
-
stage:
|
85
|
-
tags:
|
86
|
-
- docker
|
87
|
-
image: ruby:2.4
|
88
|
-
<<: *cache_bundler
|
271
|
+
<<: *with_SIMP_ACCEPTANCE_MATRIX_LEVEL_1
|
272
|
+
|
273
|
+
.compliance_base: &compliance_base
|
274
|
+
stage: 'compliance'
|
275
|
+
tags: ['beaker']
|
89
276
|
<<: *setup_bundler_env
|
90
|
-
<<: *
|
277
|
+
<<: *with_SIMP_ACCEPTANCE_MATRIX_LEVEL_1
|
278
|
+
|
279
|
+
|
280
|
+
# Unit Tests
|
281
|
+
#-----------------------------------------------------------------------
|
282
|
+
|
283
|
+
pup5-unit:
|
284
|
+
<<: *pup_5
|
285
|
+
<<: *unit_tests
|
91
286
|
|
287
|
+
pup6-unit:
|
288
|
+
<<: *pup_6
|
289
|
+
<<: *unit_tests
|
290
|
+
|
291
|
+
pup7-unit:
|
292
|
+
<<: *pup_7
|
293
|
+
<<: *unit_tests
|
294
|
+
|
295
|
+
# ------------------------------------------------------------------------------
|
296
|
+
# NOTICE: **This file is maintained with puppetsync**
|
297
|
+
#
|
298
|
+
# Everything above the "Repo-specific content" comment will be overwritten by
|
299
|
+
# the next puppetsync.
|
300
|
+
# ------------------------------------------------------------------------------
|
301
|
+
|
302
|
+
# Repo-specific content
|
303
|
+
# ==============================================================================
|
304
|
+
|
305
|
+
#=======================================================================
|
306
|
+
# Packaging test
|
307
|
+
|
308
|
+
pup5-pkg:
|
309
|
+
<<: *pup_5
|
310
|
+
<<: *unit_tests
|
311
|
+
script:
|
312
|
+
'bundle exec rake pkg:gem'
|
313
|
+
|
314
|
+
pup6-pkg:
|
315
|
+
<<: *pup_6
|
316
|
+
<<: *unit_tests
|
317
|
+
script:
|
318
|
+
'bundle exec rake pkg:gem'
|
319
|
+
|
320
|
+
pup7-pkg:
|
321
|
+
<<: *pup_7
|
322
|
+
<<: *unit_tests
|
323
|
+
script:
|
324
|
+
'bundle exec rake pkg:gem'
|
92
325
|
|
93
326
|
#=======================================================================
|
94
327
|
# Acceptance tests
|
95
328
|
default:
|
96
|
-
|
97
|
-
|
98
|
-
- beaker
|
99
|
-
<<: *cache_bundler
|
100
|
-
<<: *setup_bundler_env
|
329
|
+
<<: *pup_6
|
330
|
+
<<: *acceptance_base
|
101
331
|
script:
|
102
|
-
- bundle exec rake spec_clean
|
103
332
|
- bundle exec rake beaker:suites[default]
|
104
333
|
|
105
334
|
default-fips:
|
106
|
-
|
107
|
-
|
108
|
-
- beaker
|
109
|
-
<<: *cache_bundler
|
110
|
-
<<: *setup_bundler_env
|
111
|
-
variables:
|
112
|
-
BEAKER_fips: 'yes'
|
335
|
+
<<: *pup_6
|
336
|
+
<<: *acceptance_base
|
113
337
|
script:
|
114
|
-
- bundle exec rake
|
115
|
-
- bundle exec rake beaker:suites[default]
|
338
|
+
- BEAKER_fips=yes bundle exec rake beaker:suites[default]
|
116
339
|
|
117
340
|
fips_from_fixtures:
|
118
|
-
|
119
|
-
|
120
|
-
- beaker
|
121
|
-
<<: *cache_bundler
|
122
|
-
<<: *setup_bundler_env
|
123
|
-
variables:
|
124
|
-
PUPPET_VERSION: '~> 5.3'
|
125
|
-
BEAKER_PUPPET_COLLECTION: 'puppet5'
|
341
|
+
<<: *pup_6
|
342
|
+
<<: *acceptance_base
|
126
343
|
script:
|
127
|
-
- bundle exec rake spec_clean
|
128
344
|
- bundle exec rake beaker:suites[fips_from_fixtures]
|
129
345
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
346
|
+
puppet5_collections:
|
347
|
+
<<: *pup_5
|
348
|
+
<<: *acceptance_base
|
349
|
+
script:
|
350
|
+
- bundle exec rake beaker:suites[puppet_collections]
|
351
|
+
|
352
|
+
puppet6_collections:
|
353
|
+
<<: *pup_6
|
354
|
+
<<: *acceptance_base
|
355
|
+
script:
|
356
|
+
- bundle exec rake beaker:suites[puppet_collections]
|
357
|
+
|
358
|
+
puppet7_collections:
|
359
|
+
<<: *pup_7
|
360
|
+
<<: *acceptance_base
|
139
361
|
script:
|
140
|
-
- bundle exec rake spec_clean
|
141
362
|
- bundle exec rake beaker:suites[puppet_collections]
|
142
363
|
|
143
364
|
windows:
|
144
|
-
|
145
|
-
|
146
|
-
- beaker
|
147
|
-
<<: *cache_bundler
|
148
|
-
<<: *setup_bundler_env
|
365
|
+
<<: *pup_6
|
366
|
+
<<: *acceptance_base
|
149
367
|
script:
|
150
|
-
- bundle exec rake spec_clean
|
151
368
|
- bundle exec rake beaker:suites[windows]
|
152
369
|
|
153
370
|
snapshot:
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
<<: *setup_bundler_env
|
159
|
-
variables:
|
160
|
-
BEAKER_simp_snapshot: 'yes'
|
371
|
+
<<: *pup_6
|
372
|
+
<<: *acceptance_base
|
373
|
+
# This is prone to breakage in the underlying system
|
374
|
+
allow_failure: true
|
161
375
|
script:
|
162
|
-
- bundle exec rake
|
163
|
-
- bundle exec rake beaker:suites[snapshot]
|
376
|
+
- BEAKER_simp_snapshot=yes bundle exec rake beaker:suites[snapshot]
|