simp-beaker-helpers 1.21.4 → 1.23.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.fips_fixtures +1 -0
- data/.fixtures.yml +6 -1
- data/.github/workflows.local.json +6 -0
- data/.github/workflows/pr_acceptance.yml +55 -0
- data/.github/workflows/pr_glci.yml +190 -0
- data/.github/workflows/pr_glci_cleanup.yml +105 -0
- data/.github/workflows/pr_glci_manual.yml +143 -0
- data/.github/workflows/pr_tests.yml +90 -0
- data/.github/workflows/tag_deploy_rubygem.yml +192 -0
- data/.gitlab-ci.yml +37 -37
- data/CHANGELOG.md +55 -0
- data/Gemfile +1 -1
- data/README.md +63 -5
- data/lib/simp/beaker_helpers.rb +165 -68
- data/lib/simp/beaker_helpers/inspec.rb +16 -12
- data/lib/simp/beaker_helpers/ssg.rb +48 -13
- data/lib/simp/beaker_helpers/version.rb +1 -1
- data/lib/simp/rake/beaker.rb +14 -2
- data/simp-beaker-helpers.gemspec +2 -1
- data/spec/acceptance/nodesets/default.yml +1 -1
- data/spec/acceptance/nodesets/docker.yml +12 -10
- data/spec/acceptance/suites/default/enable_fips_spec.rb +6 -4
- data/spec/acceptance/suites/default/install_simp_deps_repo_spec.rb +17 -5
- data/spec/acceptance/suites/fips_from_fixtures/00_default_spec.rb +11 -3
- data/spec/acceptance/suites/inspec/00_default_spec.rb +54 -0
- data/spec/acceptance/suites/inspec/metadata.yml +2 -0
- data/spec/acceptance/suites/inspec/nodesets +1 -0
- data/spec/acceptance/suites/puppet_collections/00_default_spec.rb +1 -1
- data/spec/acceptance/suites/ssg/00_default_spec.rb +40 -0
- data/spec/acceptance/suites/ssg/metadata.yml +2 -0
- data/spec/acceptance/suites/ssg/nodesets +1 -0
- data/spec/lib/simp/beaker_helpers_spec.rb +1 -3
- metadata +53 -39
- data/.travis.yml +0 -42
@@ -0,0 +1 @@
|
|
1
|
+
spec/acceptance/suites/ssg/../../nodesets
|
@@ -113,10 +113,8 @@ describe 'Simp::BeakerHelpers' do
|
|
113
113
|
end
|
114
114
|
pipe_in.close
|
115
115
|
|
116
|
-
|
117
|
-
expected_major_version = expected_version.split('.').first
|
116
|
+
expected_major_version = pipe_out.gets.split('.').first
|
118
117
|
|
119
|
-
expect( @helper.get_puppet_install_info[:puppet_install_version] ).to match(expected_version)
|
120
118
|
expect( @helper.get_puppet_install_info[:puppet_collection] ).to eq("puppet#{expected_major_version}")
|
121
119
|
expect( @helper.get_puppet_install_info[:puppet_install_type] ).to eq('agent')
|
122
120
|
end
|
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.
|
4
|
+
version: 1.23.3
|
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: 2021-
|
12
|
+
date: 2021-06-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: beaker
|
@@ -69,16 +69,42 @@ dependencies:
|
|
69
69
|
name: beaker-docker
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- - "
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 0.8.3
|
75
|
+
- - "<"
|
73
76
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
77
|
+
version: 2.0.0
|
75
78
|
type: :runtime
|
76
79
|
prerelease: false
|
77
80
|
version_requirements: !ruby/object:Gem::Requirement
|
78
81
|
requirements:
|
79
|
-
- - "
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 0.8.3
|
85
|
+
- - "<"
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 2.0.0
|
88
|
+
- !ruby/object:Gem::Dependency
|
89
|
+
name: docker-api
|
90
|
+
requirement: !ruby/object:Gem::Requirement
|
91
|
+
requirements:
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 2.1.0
|
95
|
+
- - "<"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 3.0.0
|
98
|
+
type: :runtime
|
99
|
+
prerelease: false
|
100
|
+
version_requirements: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 2.1.0
|
105
|
+
- - "<"
|
80
106
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
107
|
+
version: 3.0.0
|
82
108
|
- !ruby/object:Gem::Dependency
|
83
109
|
name: beaker-vagrant
|
84
110
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,11 +189,17 @@ extra_rdoc_files: []
|
|
163
189
|
files:
|
164
190
|
- ".fips_fixtures"
|
165
191
|
- ".fixtures.yml"
|
192
|
+
- ".github/workflows.local.json"
|
193
|
+
- ".github/workflows/pr_acceptance.yml"
|
194
|
+
- ".github/workflows/pr_glci.yml"
|
195
|
+
- ".github/workflows/pr_glci_cleanup.yml"
|
196
|
+
- ".github/workflows/pr_glci_manual.yml"
|
197
|
+
- ".github/workflows/pr_tests.yml"
|
198
|
+
- ".github/workflows/tag_deploy_rubygem.yml"
|
166
199
|
- ".gitignore"
|
167
200
|
- ".gitlab-ci.yml"
|
168
201
|
- ".rspec"
|
169
202
|
- ".rubocop.yml"
|
170
|
-
- ".travis.yml"
|
171
203
|
- CHANGELOG.md
|
172
204
|
- Gemfile
|
173
205
|
- LICENSE
|
@@ -201,6 +233,9 @@ files:
|
|
201
233
|
- spec/acceptance/suites/fips_from_fixtures/00_default_spec.rb
|
202
234
|
- spec/acceptance/suites/fips_from_fixtures/metadata.yml
|
203
235
|
- spec/acceptance/suites/fips_from_fixtures/nodesets
|
236
|
+
- spec/acceptance/suites/inspec/00_default_spec.rb
|
237
|
+
- spec/acceptance/suites/inspec/metadata.yml
|
238
|
+
- spec/acceptance/suites/inspec/nodesets
|
204
239
|
- spec/acceptance/suites/offline/00_default_spec.rb
|
205
240
|
- spec/acceptance/suites/offline/README
|
206
241
|
- spec/acceptance/suites/offline/nodesets/default.yml
|
@@ -209,11 +244,20 @@ files:
|
|
209
244
|
- spec/acceptance/suites/snapshot/00_snapshot_test_spec.rb
|
210
245
|
- spec/acceptance/suites/snapshot/10_general_usage_spec.rb
|
211
246
|
- spec/acceptance/suites/snapshot/nodesets
|
247
|
+
- spec/acceptance/suites/ssg/00_default_spec.rb
|
248
|
+
- spec/acceptance/suites/ssg/metadata.yml
|
249
|
+
- spec/acceptance/suites/ssg/nodesets
|
212
250
|
- spec/acceptance/suites/windows/00_default_spec.rb
|
213
251
|
- spec/acceptance/suites/windows/metadata.yml
|
214
252
|
- spec/acceptance/suites/windows/nodesets/default.yml
|
215
253
|
- spec/acceptance/suites/windows/nodesets/win2016.yml
|
216
254
|
- spec/acceptance/suites/windows/nodesets/win2019.yml
|
255
|
+
- spec/fixtures/inspec_profiles/CentOS-7-disa_stig
|
256
|
+
- spec/fixtures/inspec_profiles/CentOS-8-disa_stig
|
257
|
+
- spec/fixtures/inspec_profiles/RedHat-7-disa_stig/controls/00_Control_Selector.rb
|
258
|
+
- spec/fixtures/inspec_profiles/RedHat-7-disa_stig/inspec.yml
|
259
|
+
- spec/fixtures/inspec_profiles/RedHat-8-disa_stig/controls/00_Control_Selector.rb
|
260
|
+
- spec/fixtures/inspec_profiles/RedHat-8-disa_stig/inspec.yml
|
217
261
|
- spec/lib/simp/beaker_helpers_spec.rb
|
218
262
|
- spec/spec_helper.rb
|
219
263
|
- spec/spec_helper_acceptance.rb
|
@@ -238,38 +282,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
238
282
|
version: '0'
|
239
283
|
requirements: []
|
240
284
|
rubyforge_project:
|
241
|
-
rubygems_version: 2.7.
|
285
|
+
rubygems_version: 2.7.6.3
|
242
286
|
signing_key:
|
243
287
|
specification_version: 4
|
244
288
|
summary: beaker helper methods for SIMP
|
245
|
-
test_files:
|
246
|
-
- spec/acceptance/nodesets/default.yml
|
247
|
-
- spec/acceptance/nodesets/docker.yml
|
248
|
-
- spec/acceptance/nodesets/ubuntu.yml
|
249
|
-
- spec/acceptance/suites/default/check_puppet_version_spec.rb
|
250
|
-
- spec/acceptance/suites/default/enable_fips_spec.rb
|
251
|
-
- spec/acceptance/suites/default/fixture_modules_spec.rb
|
252
|
-
- spec/acceptance/suites/default/install_simp_deps_repo_spec.rb
|
253
|
-
- spec/acceptance/suites/default/nodesets
|
254
|
-
- spec/acceptance/suites/default/pki_tests_spec.rb
|
255
|
-
- spec/acceptance/suites/default/set_hieradata_on_spec.rb
|
256
|
-
- spec/acceptance/suites/default/write_hieradata_to_spec.rb
|
257
|
-
- spec/acceptance/suites/fips_from_fixtures/00_default_spec.rb
|
258
|
-
- spec/acceptance/suites/fips_from_fixtures/metadata.yml
|
259
|
-
- spec/acceptance/suites/fips_from_fixtures/nodesets
|
260
|
-
- spec/acceptance/suites/offline/00_default_spec.rb
|
261
|
-
- spec/acceptance/suites/offline/README
|
262
|
-
- spec/acceptance/suites/offline/nodesets/default.yml
|
263
|
-
- spec/acceptance/suites/puppet_collections/00_default_spec.rb
|
264
|
-
- spec/acceptance/suites/puppet_collections/metadata.yml
|
265
|
-
- spec/acceptance/suites/snapshot/00_snapshot_test_spec.rb
|
266
|
-
- spec/acceptance/suites/snapshot/10_general_usage_spec.rb
|
267
|
-
- spec/acceptance/suites/snapshot/nodesets
|
268
|
-
- spec/acceptance/suites/windows/00_default_spec.rb
|
269
|
-
- spec/acceptance/suites/windows/metadata.yml
|
270
|
-
- spec/acceptance/suites/windows/nodesets/default.yml
|
271
|
-
- spec/acceptance/suites/windows/nodesets/win2016.yml
|
272
|
-
- spec/acceptance/suites/windows/nodesets/win2019.yml
|
273
|
-
- spec/lib/simp/beaker_helpers_spec.rb
|
274
|
-
- spec/spec_helper.rb
|
275
|
-
- spec/spec_helper_acceptance.rb
|
289
|
+
test_files: []
|
data/.travis.yml
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
---
|
2
|
-
language: shell
|
3
|
-
notifications:
|
4
|
-
email: false
|
5
|
-
stages:
|
6
|
-
- name: deploy
|
7
|
-
if: 'tag IS present'
|
8
|
-
|
9
|
-
### Testing on Travis CI is indefinitely disabled
|
10
|
-
###
|
11
|
-
### See:
|
12
|
-
### * https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
|
13
|
-
### * https://simp-project.atlassian.net/browse/SIMP-8703
|
14
|
-
jobs:
|
15
|
-
include:
|
16
|
-
- stage: deploy
|
17
|
-
script: skip
|
18
|
-
cache: bundler
|
19
|
-
before_install:
|
20
|
-
- rm Gemfile.lock || true
|
21
|
-
bundler_args: "--without development --path .vendor"
|
22
|
-
language: ruby
|
23
|
-
rvm: 2.4.5
|
24
|
-
before_deploy:
|
25
|
-
- bundle exec rake clobber
|
26
|
-
- "export GEM_VERSION=`ruby -r ./lib/simp/beaker_helpers/version.rb -e 'puts Simp::BeakerHelpers::VERSION'`"
|
27
|
-
- '[[ $TRAVIS_TAG =~ ^${GEM_VERSION}$ ]]'
|
28
|
-
deploy:
|
29
|
-
- provider: rubygems
|
30
|
-
gemspec: simp-beaker-helpers.gemspec
|
31
|
-
gem: simp-beaker-helpers
|
32
|
-
token:
|
33
|
-
secure: "AlnBx0dBSxn+S97n0h14ltKUOA+6v0bc7QZPIcwGJV9nnf1hKH3pf9La1TVknEx7XgpAcM9jusQJ7hBlqvSq8z8SFF0bZk1EgSRIKc1cuYPLiGyUM2O7+AFHyCy3iCnPvKeoQmE/BJb5O1dGnbmSbf4A0fqLxA7jiHG1j7z+cnmJB1i67wovDfl13TsOXyBfbespWBMMc0BKAw56FPs9XggAk2cNusS3hd5tqW1AZPT2/xwt+d8ngkmO96u8QcichYRFQ+w+XW4H0w935wNg/dWiskJlt7TIYVAh4Ko5s2DZKf52Tne8TugALSn0LhRatpp7sw1FTTpteCW8UqK8uwGC2hM4pZViAOv4P1YObz2IPOZPriBl+cCayJdMKnotkUJliAMnw5TLiSWKLou+S0Pdj2h3fJZWdOEwRPMzIVoJtsOHG3GdNcPL6f7iU0vP/wr6FeR3uWa+fA7NHRi2Du955O8JpogjdrW08ahcAEwhtI3A4mrA08wN09axsrwr093uDRm/5h4FHyAhExJ0YiA/6kcPpUvILcLStyHe0RQDICQMdsQo2DSbnL65w3QjFa2fML2Shf9cRwX06+ia2BxozWzFD/6p3RiRtPxphnbFiUdjYSGWcwCcUgbJx9SW04lSSxOhpyItuXgxZqiybkzstXd6riu5zwg1R8TWk34="
|
34
|
-
on:
|
35
|
-
tags: true
|
36
|
-
condition: "($SKIP_PUBLISH != true)"
|
37
|
-
- provider: releases
|
38
|
-
token:
|
39
|
-
secure: "I41p4aqjkrNDHJhZ5gWC4gzn7BVwEYRm5Q3PAxQRSIUDB/QTVgNqZx8YptkuIvSGpw8kIywyZg3NKdzGUO8aJJ0NlXapL7e9qQIigkYhdaCZjZFG5zIxdOFs4sVoz/6vnQT9JIcGWy7uS5xiNOulGvfEWU78+e+I9yPdT74RApve5VAVT/km5lV5ldRnwwehLnTx+volUlnOD8rwfizoVLqFTrfRfr4cVMF605UYyaiVxHF50hywFRZoAdVcMEhlLQnQXfz/ZsLMJLJm9eCpjQ989N0oX6theSLCcv7QtHcWMXydjWMcpuTfBZSFrwUVbC23uMOKTJVEWq5LMG3m2L6hP3//2gvUzGhOVLvoGuC+erboB7QoXdcoOgXY+dTZPMcPBxpArdDLWVQSLTvPs05QzpaUdRLVMC/kD1d1EudlEicgkNgNDBhBn3089nVmvKndbKLvj+23a5AQVVbs+8C0x+SJvTc9N2N+bmuH7jIJPrEvWK4xwcQa+g2M/EBv05jaEdSErlVa6B6UKCH0Lea9rpy1se9vn5OzpaaMCCJIpcpQqHDjo0PMAQXBSbqjKcBei6lR5fIFl5UO9gWP1v8PGPuCzGTBivQ92XlgV1TWXmdbJHwIuSbJx3Ali7Wp19RR4E4uHC+TPFssvgkh9ZLkORnWWS35wzzU1LkwWx0="
|
40
|
-
on:
|
41
|
-
tags: true
|
42
|
-
condition: "($SKIP_PUBLISH != true)"
|