beaker-puppet 1.19.2 → 1.22.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +8 -0
- data/.github/workflows/release.yml +32 -0
- data/.github/workflows/test.yml +36 -0
- data/CHANGELOG.md +642 -0
- data/CODEOWNERS +0 -3
- data/Gemfile +7 -5
- data/README.md +34 -38
- data/Rakefile +13 -0
- data/beaker-puppet.gemspec +4 -7
- data/lib/beaker-puppet.rb +0 -1
- data/lib/beaker-puppet/helpers/puppet_helpers.rb +1 -1
- data/lib/beaker-puppet/install_utils/foss_utils.rb +17 -7
- data/lib/beaker-puppet/install_utils/puppet_utils.rb +1 -3
- data/lib/beaker-puppet/install_utils/windows_utils.rb +2 -2
- data/lib/beaker-puppet/version.rb +1 -1
- data/setup/git/000_EnvSetup.rb +1 -1
- data/spec/beaker-puppet/helpers/puppet_helpers_spec.rb +15 -20
- data/spec/beaker-puppet/install_utils/foss_utils_spec.rb +7 -22
- data/spec/beaker-puppet/install_utils/puppet_utils_spec.rb +14 -0
- data/spec/beaker-puppet/install_utils/windows_utils_spec.rb +1 -1
- data/spec/spec_helper.rb +25 -2
- metadata +14 -53
- data/HISTORY.md +0 -42
@@ -137,6 +137,20 @@ describe ClassMixedWithDSLInstallUtils do
|
|
137
137
|
|
138
138
|
end
|
139
139
|
|
140
|
+
describe '#puppetserver_version_on' do
|
141
|
+
it 'returns the tag on a released version' do
|
142
|
+
result = object_double(Beaker::Result.new({}, 'puppetserver --version'), :stdout => "puppetserver version: 6.13.0", :exit_code => 0)
|
143
|
+
expect(subject).to receive(:on).with(hosts.first, 'puppetserver --version', accept_all_exit_codes: true).and_return(result)
|
144
|
+
expect(subject.puppetserver_version_on(hosts.first)).to eq('6.13.0')
|
145
|
+
end
|
146
|
+
|
147
|
+
it 'returns the tag on a nightly version' do
|
148
|
+
result = object_double(Beaker::Result.new({}, 'puppetserver --version'), :stdout => "puppetserver version: 7.0.0.SNAPSHOT.2020.10.14T0512", :exit_code => 0)
|
149
|
+
expect(subject).to receive(:on).with(hosts.first, 'puppetserver --version', accept_all_exit_codes: true).and_return(result)
|
150
|
+
expect(subject.puppetserver_version_on(hosts.first)).to eq('7.0.0')
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
140
154
|
describe '#puppet_collection_for' do
|
141
155
|
it 'raises an error when given an invalid package' do
|
142
156
|
expect { subject.puppet_collection_for(:foo, '5.5.4') }.to raise_error
|
@@ -41,7 +41,7 @@ describe ClassMixedWithDSLInstallUtils do
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def expect_version_log_called(times = hosts.length)
|
44
|
-
path = %{
|
44
|
+
path = %{"${env:ProgramFiles}/Puppet Labs/puppet/misc/versions.txt"}
|
45
45
|
|
46
46
|
expect( subject ).to receive( :file_exists_on )
|
47
47
|
.with(anything, path)
|
data/spec/spec_helper.rb
CHANGED
@@ -1,4 +1,27 @@
|
|
1
|
-
|
1
|
+
begin
|
2
|
+
require 'simplecov'
|
3
|
+
require 'simplecov-console'
|
4
|
+
require 'codecov'
|
5
|
+
rescue LoadError
|
6
|
+
else
|
7
|
+
SimpleCov.start do
|
8
|
+
track_files 'lib/**/*.rb'
|
9
|
+
|
10
|
+
add_filter '/spec'
|
11
|
+
|
12
|
+
enable_coverage :branch
|
13
|
+
|
14
|
+
# do not track vendored files
|
15
|
+
add_filter '/vendor'
|
16
|
+
add_filter '/.vendor'
|
17
|
+
end
|
18
|
+
|
19
|
+
SimpleCov.formatters = [
|
20
|
+
SimpleCov::Formatter::Console,
|
21
|
+
SimpleCov::Formatter::Codecov,
|
22
|
+
]
|
23
|
+
end
|
24
|
+
|
2
25
|
# require 'pp' statement needed before fakefs, otherwise they can collide. Ref:
|
3
26
|
# https://github.com/fakefs/fakefs#fakefs-----typeerror-superclass-mismatch-for-class-file
|
4
27
|
require 'pp'
|
@@ -20,4 +43,4 @@ RSpec.configure do |config|
|
|
20
43
|
config.include FakeFS::SpecHelpers
|
21
44
|
config.include TestFileHelpers
|
22
45
|
config.include HostHelpers
|
23
|
-
end
|
46
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker-puppet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.22.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Vox Pupuli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -42,22 +42,22 @@ dependencies:
|
|
42
42
|
name: fakefs
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0.6'
|
48
48
|
- - "<"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
50
|
+
version: '2.0'
|
51
51
|
type: :development
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
|
-
- - "
|
55
|
+
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: '0.6'
|
58
58
|
- - "<"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
60
|
+
version: '2.0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: rake
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,34 +72,6 @@ dependencies:
|
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '13.0'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: simplecov
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - ">="
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '0'
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - ">="
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '0'
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: pry
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - "~>"
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: '0.10'
|
96
|
-
type: :development
|
97
|
-
prerelease: false
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - "~>"
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '0.10'
|
103
75
|
- !ruby/object:Gem::Dependency
|
104
76
|
name: beaker-vmpooler
|
105
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,20 +128,6 @@ dependencies:
|
|
156
128
|
- - "~>"
|
157
129
|
- !ruby/object:Gem::Version
|
158
130
|
version: '4.1'
|
159
|
-
- !ruby/object:Gem::Dependency
|
160
|
-
name: stringify-hash
|
161
|
-
requirement: !ruby/object:Gem::Requirement
|
162
|
-
requirements:
|
163
|
-
- - "~>"
|
164
|
-
- !ruby/object:Gem::Version
|
165
|
-
version: 0.0.0
|
166
|
-
type: :runtime
|
167
|
-
prerelease: false
|
168
|
-
version_requirements: !ruby/object:Gem::Requirement
|
169
|
-
requirements:
|
170
|
-
- - "~>"
|
171
|
-
- !ruby/object:Gem::Version
|
172
|
-
version: 0.0.0
|
173
131
|
- !ruby/object:Gem::Dependency
|
174
132
|
name: in-parallel
|
175
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -200,17 +158,20 @@ dependencies:
|
|
200
158
|
version: '0'
|
201
159
|
description: For use for the Beaker acceptance testing tool
|
202
160
|
email:
|
203
|
-
-
|
161
|
+
- voxpupuli@groups.io
|
204
162
|
executables:
|
205
163
|
- beaker-puppet
|
206
164
|
extensions: []
|
207
165
|
extra_rdoc_files: []
|
208
166
|
files:
|
167
|
+
- ".github/dependabot.yml"
|
168
|
+
- ".github/workflows/release.yml"
|
169
|
+
- ".github/workflows/test.yml"
|
209
170
|
- ".gitignore"
|
210
171
|
- ".simplecov"
|
172
|
+
- CHANGELOG.md
|
211
173
|
- CODEOWNERS
|
212
174
|
- Gemfile
|
213
|
-
- HISTORY.md
|
214
175
|
- LICENSE
|
215
176
|
- README.md
|
216
177
|
- Rakefile
|
@@ -288,7 +249,7 @@ files:
|
|
288
249
|
- spec/helpers.rb
|
289
250
|
- spec/spec_helper.rb
|
290
251
|
- tasks/ci.rake
|
291
|
-
homepage: https://github.com/
|
252
|
+
homepage: https://github.com/voxpupuli/beaker-puppet
|
292
253
|
licenses:
|
293
254
|
- Apache2
|
294
255
|
metadata: {}
|
@@ -307,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
307
268
|
- !ruby/object:Gem::Version
|
308
269
|
version: '0'
|
309
270
|
requirements: []
|
310
|
-
rubygems_version: 3.
|
271
|
+
rubygems_version: 3.2.22
|
311
272
|
signing_key:
|
312
273
|
specification_version: 4
|
313
274
|
summary: Beaker's Puppet DSL Extension Helpers!
|
data/HISTORY.md
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
# worker - History
|
2
|
-
## Tags
|
3
|
-
* [LATEST - 28 Jun, 2017 (63cbd942)](#LATEST)
|
4
|
-
* [0.1.0 - 16 Jun, 2017 (e9be23b0)](#0.1.0)
|
5
|
-
|
6
|
-
## Details
|
7
|
-
### <a name = "LATEST">LATEST - 28 Jun, 2017 (63cbd942)
|
8
|
-
|
9
|
-
* (GEM) update beaker-puppet version to 0.2.0 (63cbd942)
|
10
|
-
|
11
|
-
* Merge pull request #7 from johnduarte/issues/master/bkr-1147/fail-to-pkg-install-on-ec2-el (dd8d640f)
|
12
|
-
|
13
|
-
|
14
|
-
```
|
15
|
-
Merge pull request #7 from johnduarte/issues/master/bkr-1147/fail-to-pkg-install-on-ec2-el
|
16
|
-
|
17
|
-
(BKR-1147) Fail to pkg install on ec2 for dev-repo
|
18
|
-
```
|
19
|
-
* (BKR-1147) Fail to pkg install on ec2 for dev-repo (89909fa7)
|
20
|
-
|
21
|
-
|
22
|
-
```
|
23
|
-
(BKR-1147) Fail to pkg install on ec2 for dev-repo
|
24
|
-
|
25
|
-
This commit modifies the `install_puppet_agent_dev_repo_on` method
|
26
|
-
to install the puppet-agent package if the host is on ec2 and el.
|
27
|
-
This is done because the ec2 instance does not have access to the
|
28
|
-
default dev repo.
|
29
|
-
```
|
30
|
-
* Merge pull request #5 from kevpl/bkr895_installutils_tests (e54d7fd2)
|
31
|
-
|
32
|
-
|
33
|
-
```
|
34
|
-
Merge pull request #5 from kevpl/bkr895_installutils_tests
|
35
|
-
|
36
|
-
(BKR-895) add missing install_utils tests
|
37
|
-
```
|
38
|
-
* (BKR-895) add missing install_utils tests (d6f243ed)
|
39
|
-
|
40
|
-
### <a name = "0.1.0">0.1.0 - 16 Jun, 2017 (e9be23b0)
|
41
|
-
|
42
|
-
* Initial release.
|