beaker-answers 0.26.3 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 305781152442137cf2af774a2df23b52871456de
4
- data.tar.gz: 06505bce6d2c3c3bf05c85d8664179afd4925588
3
+ metadata.gz: 765c18bfc8764f7dd7f2037d1dc45cd08730ca9a
4
+ data.tar.gz: c7f41dfeef8cad1d5a05e12c29414271bb8a335d
5
5
  SHA512:
6
- metadata.gz: 9c8ac26668837b322e400a989eceafb251cf72553530d1fa7f453c98cd1aa25108e3a659feedca8fb122bdcb438d332e1a94d9b729022bb031330972070c7784
7
- data.tar.gz: 7f7b10219d78554316d918a165f68a5e0477c28696f4d47f25ea70eec4d9414376bd0f2fe2042607b0f967a6b40886b3c5e06e1bfca8ad169c84df02e0ce73e7
6
+ metadata.gz: eed2265c7c751316fe485ca36c5e772d2a566634040f33b666296171df405a32dd34f1aa2deccf05b48b02e9185123c81afbeee438d54ad93d78ca11ba8335a6
7
+ data.tar.gz: 4d71cf41a114adfc7bb94a853c7fe66e3843d222c1b6551280236ddbb6baae21b5cc2f30ec1bd18b203451ec2d095dab5aeae42735f403d7be1e8f8d21a5d3b9
@@ -1,5 +1,5 @@
1
1
  module BeakerAnswers
2
2
  module Version
3
- STRING = '0.26.3'
3
+ STRING = '0.27.0'
4
4
  end
5
5
  end
@@ -1,13 +1,13 @@
1
1
  require 'beaker-answers/versions/version20172'
2
2
 
3
3
  module BeakerAnswers
4
- # This class provides answer file information for PE version 2017.3
4
+ # This class provides answer file information for PE version 2017.3 AND BEYOND
5
5
  #
6
6
  # @api private
7
- class Version20173 < Version20172
7
+ class Version20173to9999 < Version20172
8
8
  # The version of PE that this set of answers is appropriate for
9
9
  def self.pe_version_matcher
10
- /\A2017\.3/
10
+ /\A(2017\.3|2018\.[1-2]|2019\.[0-9]|20[2-9][1-9]\.[0-9]|[2-9][0-9]{3}\.[0-9])/
11
11
  end
12
12
  end
13
13
  end
@@ -1,53 +1,83 @@
1
1
  require 'spec_helper'
2
2
  require 'json'
3
3
 
4
- describe BeakerAnswers::Version20173 do
5
- let(:ver) { '2017.3.0' }
6
- let(:options) { StringifyHash.new }
7
- let(:mono_hosts) do
8
- basic_hosts = make_hosts({'pe_ver' => ver }, 1)
9
- basic_hosts[0]['roles'] = ['master', 'agent', 'dashboard', 'database']
10
- basic_hosts[0]['platform'] = 'el-7-x86_64'
11
- basic_hosts
12
- end
13
- let(:answers) { BeakerAnswers::Answers.create(ver, hosts, options) }
14
- let(:answer_hash) { answers.answers }
15
-
16
- context 'when generating a default 1.0 config' do
17
- context 'for a monolithic install' do
18
- let(:hosts) { mono_hosts }
19
- let(:gold_role_answers) do
20
- {
21
- "console_admin_password" => default_password,
22
- "puppet_enterprise::puppet_master_host" => hosts[0].hostname,
23
- }
24
- end
4
+ describe BeakerAnswers::Version20173to9999 do
5
+ versions = [
6
+ '2017.3.0',
7
+ '2017.3.9999',
8
+ '2018.1.0',
9
+ '2018.1.9999',
10
+ '2018.2.0',
11
+ '2019.0.0',
12
+ '2019.1.0',
13
+ '2019.2.0',
14
+ '2019.3.0',
15
+ '2019.3.99',
16
+ '2019.9.99',
17
+ '2020.0.0',
18
+ '2029.0.0',
19
+ '2099.0.0',
20
+ '2099.99.99',
21
+ '9999.0.0',
22
+ '9999.99.99',
23
+ ]
25
24
 
26
- include_examples 'pe.conf'
27
- include_examples 'valid MEEP 1.0 pe.conf'
25
+ versions.each do | version |
26
+ let(:ver) { version }
27
+ let(:options) { StringifyHash.new }
28
+ let(:mono_hosts) do
29
+ basic_hosts = make_hosts({'pe_ver' => ver }, 1)
30
+ basic_hosts[0]['roles'] = ['master', 'agent', 'dashboard', 'database']
31
+ basic_hosts[0]['platform'] = 'el-7-x86_64'
32
+ basic_hosts
28
33
  end
29
- end
34
+ let(:answers) { BeakerAnswers::Answers.create(ver, hosts, options) }
35
+ let(:answer_hash) { answers.answers }
36
+
37
+ context 'when generating a default 1.0 config' do
38
+ context 'for a monolithic install' do
39
+ let(:hosts) { mono_hosts }
40
+ let(:gold_role_answers) do
41
+ {
42
+ "console_admin_password" => default_password,
43
+ "puppet_enterprise::puppet_master_host" => hosts[0].hostname,
44
+ }
45
+ end
46
+
47
+ it "is testing version #{version}" do
48
+ expect(version).not_to be_empty
49
+ end
30
50
 
31
- context 'when generating a meep 2.0 config' do
32
- before(:each) do
33
- options[:meep_schema_version] = '2.0'
51
+ include_examples 'pe.conf'
52
+ include_examples 'valid MEEP 1.0 pe.conf'
53
+ end
34
54
  end
35
55
 
36
- context 'for a monolithic install' do
37
- let(:hosts) { mono_hosts }
38
- let(:gold_role_answers) do
39
- {
40
- "console_admin_password" => default_password,
41
- "node_roles" => {
42
- "pe_role::monolithic::primary_master" => [hosts[0].hostname],
43
- },
44
- "agent_platforms" => match_array(['el_7_x86_64']),
45
- "meep_schema_version" => "2.0",
46
- }
56
+ context 'when generating a meep 2.0 config' do
57
+ before(:each) do
58
+ options[:meep_schema_version] = '2.0'
47
59
  end
48
60
 
49
- include_examples 'pe.conf'
50
- include_examples 'valid MEEP 2.0 pe.conf'
61
+ context 'for a monolithic install' do
62
+ let(:hosts) { mono_hosts }
63
+ let(:gold_role_answers) do
64
+ {
65
+ "console_admin_password" => default_password,
66
+ "node_roles" => {
67
+ "pe_role::monolithic::primary_master" => [hosts[0].hostname],
68
+ },
69
+ "agent_platforms" => match_array(['el_7_x86_64']),
70
+ "meep_schema_version" => "2.0",
71
+ }
72
+ end
73
+
74
+ it "is testing version #{version}" do
75
+ expect(version).not_to be_empty
76
+ end
77
+
78
+ include_examples 'pe.conf'
79
+ include_examples 'valid MEEP 2.0 pe.conf'
80
+ end
51
81
  end
52
82
  end
53
83
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker-answers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.3
4
+ version: 0.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppetlabs
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-10-25 00:00:00.000000000 Z
12
+ date: 2019-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fakefs
@@ -233,12 +233,6 @@ files:
233
233
  - lib/beaker-answers/versions/version20171.rb
234
234
  - lib/beaker-answers/versions/version20172.rb
235
235
  - lib/beaker-answers/versions/version20173.rb
236
- - lib/beaker-answers/versions/version20181.rb
237
- - lib/beaker-answers/versions/version20182.rb
238
- - lib/beaker-answers/versions/version20190.rb
239
- - lib/beaker-answers/versions/version20191.rb
240
- - lib/beaker-answers/versions/version20192.rb
241
- - lib/beaker-answers/versions/version20193.rb
242
236
  - lib/beaker-answers/versions/version28.rb
243
237
  - lib/beaker-answers/versions/version30.rb
244
238
  - lib/beaker-answers/versions/version32.rb
@@ -254,12 +248,6 @@ files:
254
248
  - spec/beaker-answers/versions/version20171_spec.rb
255
249
  - spec/beaker-answers/versions/version20172_spec.rb
256
250
  - spec/beaker-answers/versions/version20173_spec.rb
257
- - spec/beaker-answers/versions/version20181_spec.rb
258
- - spec/beaker-answers/versions/version20182_spec.rb
259
- - spec/beaker-answers/versions/version20190_spec.rb
260
- - spec/beaker-answers/versions/version20191_spec.rb
261
- - spec/beaker-answers/versions/version20192_spec.rb
262
- - spec/beaker-answers/versions/version20193_spec.rb
263
251
  - spec/helpers.rb
264
252
  - spec/shared/context.rb
265
253
  - spec/spec_helper.rb
@@ -1,14 +0,0 @@
1
- require 'beaker-answers/versions/version20173'
2
-
3
- module BeakerAnswers
4
- # This class provides answer file information for PE version 2018.1
5
- #
6
- # @api private
7
- class Version20181 < Version20173
8
- # The version of PE that this set of answers is appropriate for
9
- def self.pe_version_matcher
10
- /\A2018\.1/
11
- end
12
-
13
- end
14
- end
@@ -1,14 +0,0 @@
1
- require 'beaker-answers/versions/version20181'
2
-
3
- module BeakerAnswers
4
- # This class provides answer file information for PE version 2018.2
5
- #
6
- # @api private
7
- class Version20182 < Version20181
8
- # The version of PE that this set of answers is appropriate for
9
- def self.pe_version_matcher
10
- /\A2018\.2/
11
- end
12
-
13
- end
14
- end
@@ -1,14 +0,0 @@
1
- require 'beaker-answers/versions/version20181'
2
-
3
- module BeakerAnswers
4
- # This class provides answer file information for PE version 2019.0
5
- #
6
- # @api private
7
- class Version20190 < Version20181
8
- # The version of PE that this set of answers is appropriate for
9
- def self.pe_version_matcher
10
- /\A2019\.0/
11
- end
12
-
13
- end
14
- end
@@ -1,13 +0,0 @@
1
- require 'beaker-answers/versions/version20190'
2
-
3
- module BeakerAnswers
4
- # This class provides answer file information for PE version 2019.1
5
- #
6
- # @api private
7
- class Version20191 < Version20190
8
- # The version of PE that this set of answers is appropriate for
9
- def self.pe_version_matcher
10
- /\A2019\.1/
11
- end
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- require 'beaker-answers/versions/version20191'
2
-
3
- module BeakerAnswers
4
- # This class provides answer file information for PE version 2019.1
5
- #
6
- # @api private
7
- class Version20192 < Version20191
8
- # The version of PE that this set of answers is appropriate for
9
- def self.pe_version_matcher
10
- /\A2019\.2/
11
- end
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- require 'beaker-answers/versions/version20192'
2
-
3
- module BeakerAnswers
4
- # This class provides answer file information for PE version 2019.3
5
- #
6
- # @api private
7
- class Version20193 < Version20192
8
- # The version of PE that this set of answers is appropriate for
9
- def self.pe_version_matcher
10
- /\A2019\.3/
11
- end
12
- end
13
- end
@@ -1,53 +0,0 @@
1
- require 'spec_helper'
2
- require 'json'
3
-
4
- describe BeakerAnswers::Version20181 do
5
- let(:ver) { '2018.1.0' }
6
- let(:options) { StringifyHash.new }
7
- let(:mono_hosts) do
8
- basic_hosts = make_hosts({'pe_ver' => ver }, 1)
9
- basic_hosts[0]['roles'] = ['master', 'agent', 'dashboard', 'database']
10
- basic_hosts[0]['platform'] = 'el-7-x86_64'
11
- basic_hosts
12
- end
13
- let(:answers) { BeakerAnswers::Answers.create(ver, hosts, options) }
14
- let(:answer_hash) { answers.answers }
15
-
16
- context 'when generating a default 1.0 config' do
17
- context 'for a monolithic install' do
18
- let(:hosts) { mono_hosts }
19
- let(:gold_role_answers) do
20
- {
21
- "console_admin_password" => default_password,
22
- "puppet_enterprise::puppet_master_host" => hosts[0].hostname,
23
- }
24
- end
25
-
26
- include_examples 'pe.conf'
27
- include_examples 'valid MEEP 1.0 pe.conf'
28
- end
29
- end
30
-
31
- context 'when generating a meep 2.0 config' do
32
- before(:each) do
33
- options[:meep_schema_version] = '2.0'
34
- end
35
-
36
- context 'for a monolithic install' do
37
- let(:hosts) { mono_hosts }
38
- let(:gold_role_answers) do
39
- {
40
- "console_admin_password" => default_password,
41
- "node_roles" => {
42
- "pe_role::monolithic::primary_master" => [hosts[0].hostname],
43
- },
44
- "agent_platforms" => match_array(['el_7_x86_64']),
45
- "meep_schema_version" => "2.0",
46
- }
47
- end
48
-
49
- include_examples 'pe.conf'
50
- include_examples 'valid MEEP 2.0 pe.conf'
51
- end
52
- end
53
- end
@@ -1,53 +0,0 @@
1
- require 'spec_helper'
2
- require 'json'
3
-
4
- describe BeakerAnswers::Version20182 do
5
- let(:ver) { '2018.2.0' }
6
- let(:options) { StringifyHash.new }
7
- let(:mono_hosts) do
8
- basic_hosts = make_hosts({'pe_ver' => ver }, 1)
9
- basic_hosts[0]['roles'] = ['master', 'agent', 'dashboard', 'database']
10
- basic_hosts[0]['platform'] = 'el-7-x86_64'
11
- basic_hosts
12
- end
13
- let(:answers) { BeakerAnswers::Answers.create(ver, hosts, options) }
14
- let(:answer_hash) { answers.answers }
15
-
16
- context 'when generating a default 1.0 config' do
17
- context 'for a monolithic install' do
18
- let(:hosts) { mono_hosts }
19
- let(:gold_role_answers) do
20
- {
21
- "console_admin_password" => default_password,
22
- "puppet_enterprise::puppet_master_host" => hosts[0].hostname,
23
- }
24
- end
25
-
26
- include_examples 'pe.conf'
27
- include_examples 'valid MEEP 1.0 pe.conf'
28
- end
29
- end
30
-
31
- context 'when generating a meep 2.0 config' do
32
- before(:each) do
33
- options[:meep_schema_version] = '2.0'
34
- end
35
-
36
- context 'for a monolithic install' do
37
- let(:hosts) { mono_hosts }
38
- let(:gold_role_answers) do
39
- {
40
- "console_admin_password" => default_password,
41
- "node_roles" => {
42
- "pe_role::monolithic::primary_master" => [hosts[0].hostname],
43
- },
44
- "agent_platforms" => match_array(['el_7_x86_64']),
45
- "meep_schema_version" => "2.0",
46
- }
47
- end
48
-
49
- include_examples 'pe.conf'
50
- include_examples 'valid MEEP 2.0 pe.conf'
51
- end
52
- end
53
- end
@@ -1,53 +0,0 @@
1
- require 'spec_helper'
2
- require 'json'
3
-
4
- describe BeakerAnswers::Version20190 do
5
- let(:ver) { '2019.0.0' }
6
- let(:options) { StringifyHash.new }
7
- let(:mono_hosts) do
8
- basic_hosts = make_hosts({'pe_ver' => ver }, 1)
9
- basic_hosts[0]['roles'] = ['master', 'agent', 'dashboard', 'database']
10
- basic_hosts[0]['platform'] = 'el-7-x86_64'
11
- basic_hosts
12
- end
13
- let(:answers) { BeakerAnswers::Answers.create(ver, hosts, options) }
14
- let(:answer_hash) { answers.answers }
15
-
16
- context 'when generating a default 1.0 config' do
17
- context 'for a monolithic install' do
18
- let(:hosts) { mono_hosts }
19
- let(:gold_role_answers) do
20
- {
21
- "console_admin_password" => default_password,
22
- "puppet_enterprise::puppet_master_host" => hosts[0].hostname,
23
- }
24
- end
25
-
26
- include_examples 'pe.conf'
27
- include_examples 'valid MEEP 1.0 pe.conf'
28
- end
29
- end
30
-
31
- context 'when generating a meep 2.0 config' do
32
- before(:each) do
33
- options[:meep_schema_version] = '2.0'
34
- end
35
-
36
- context 'for a monolithic install' do
37
- let(:hosts) { mono_hosts }
38
- let(:gold_role_answers) do
39
- {
40
- "console_admin_password" => default_password,
41
- "node_roles" => {
42
- "pe_role::monolithic::primary_master" => [hosts[0].hostname],
43
- },
44
- "agent_platforms" => match_array(['el_7_x86_64']),
45
- "meep_schema_version" => "2.0",
46
- }
47
- end
48
-
49
- include_examples 'pe.conf'
50
- include_examples 'valid MEEP 2.0 pe.conf'
51
- end
52
- end
53
- end
@@ -1,53 +0,0 @@
1
- require 'spec_helper'
2
- require 'json'
3
-
4
- describe BeakerAnswers::Version20191 do
5
- let(:ver) { '2019.1.0' }
6
- let(:options) { StringifyHash.new }
7
- let(:mono_hosts) do
8
- basic_hosts = make_hosts({'pe_ver' => ver }, 1)
9
- basic_hosts[0]['roles'] = ['master', 'agent', 'dashboard', 'database']
10
- basic_hosts[0]['platform'] = 'el-7-x86_64'
11
- basic_hosts
12
- end
13
- let(:answers) { BeakerAnswers::Answers.create(ver, hosts, options) }
14
- let(:answer_hash) { answers.answers }
15
-
16
- context 'when generating a default 1.0 config' do
17
- context 'for a monolithic install' do
18
- let(:hosts) { mono_hosts }
19
- let(:gold_role_answers) do
20
- {
21
- "console_admin_password" => default_password,
22
- "puppet_enterprise::puppet_master_host" => hosts[0].hostname,
23
- }
24
- end
25
-
26
- include_examples 'pe.conf'
27
- include_examples 'valid MEEP 1.0 pe.conf'
28
- end
29
- end
30
-
31
- context 'when generating a meep 2.0 config' do
32
- before(:each) do
33
- options[:meep_schema_version] = '2.0'
34
- end
35
-
36
- context 'for a monolithic install' do
37
- let(:hosts) { mono_hosts }
38
- let(:gold_role_answers) do
39
- {
40
- "console_admin_password" => default_password,
41
- "node_roles" => {
42
- "pe_role::monolithic::primary_master" => [hosts[0].hostname],
43
- },
44
- "agent_platforms" => match_array(['el_7_x86_64']),
45
- "meep_schema_version" => "2.0",
46
- }
47
- end
48
-
49
- include_examples 'pe.conf'
50
- include_examples 'valid MEEP 2.0 pe.conf'
51
- end
52
- end
53
- end
@@ -1,53 +0,0 @@
1
- require 'spec_helper'
2
- require 'json'
3
-
4
- describe BeakerAnswers::Version20192 do
5
- let(:ver) { '2019.2.0' }
6
- let(:options) { StringifyHash.new }
7
- let(:mono_hosts) do
8
- basic_hosts = make_hosts({'pe_ver' => ver }, 1)
9
- basic_hosts[0]['roles'] = ['master', 'agent', 'dashboard', 'database']
10
- basic_hosts[0]['platform'] = 'el-7-x86_64'
11
- basic_hosts
12
- end
13
- let(:answers) { BeakerAnswers::Answers.create(ver, hosts, options) }
14
- let(:answer_hash) { answers.answers }
15
-
16
- context 'when generating a default 1.0 config' do
17
- context 'for a monolithic install' do
18
- let(:hosts) { mono_hosts }
19
- let(:gold_role_answers) do
20
- {
21
- "console_admin_password" => default_password,
22
- "puppet_enterprise::puppet_master_host" => hosts[0].hostname,
23
- }
24
- end
25
-
26
- include_examples 'pe.conf'
27
- include_examples 'valid MEEP 1.0 pe.conf'
28
- end
29
- end
30
-
31
- context 'when generating a meep 2.0 config' do
32
- before(:each) do
33
- options[:meep_schema_version] = '2.0'
34
- end
35
-
36
- context 'for a monolithic install' do
37
- let(:hosts) { mono_hosts }
38
- let(:gold_role_answers) do
39
- {
40
- "console_admin_password" => default_password,
41
- "node_roles" => {
42
- "pe_role::monolithic::primary_master" => [hosts[0].hostname],
43
- },
44
- "agent_platforms" => match_array(['el_7_x86_64']),
45
- "meep_schema_version" => "2.0",
46
- }
47
- end
48
-
49
- include_examples 'pe.conf'
50
- include_examples 'valid MEEP 2.0 pe.conf'
51
- end
52
- end
53
- end
@@ -1,53 +0,0 @@
1
- require 'spec_helper'
2
- require 'json'
3
-
4
- describe BeakerAnswers::Version20193 do
5
- let(:ver) { '2019.3.0' }
6
- let(:options) { StringifyHash.new }
7
- let(:mono_hosts) do
8
- basic_hosts = make_hosts({'pe_ver' => ver }, 1)
9
- basic_hosts[0]['roles'] = ['master', 'agent', 'dashboard', 'database']
10
- basic_hosts[0]['platform'] = 'el-7-x86_64'
11
- basic_hosts
12
- end
13
- let(:answers) { BeakerAnswers::Answers.create(ver, hosts, options) }
14
- let(:answer_hash) { answers.answers }
15
-
16
- context 'when generating a default 1.0 config' do
17
- context 'for a monolithic install' do
18
- let(:hosts) { mono_hosts }
19
- let(:gold_role_answers) do
20
- {
21
- "console_admin_password" => default_password,
22
- "puppet_enterprise::puppet_master_host" => hosts[0].hostname,
23
- }
24
- end
25
-
26
- include_examples 'pe.conf'
27
- include_examples 'valid MEEP 1.0 pe.conf'
28
- end
29
- end
30
-
31
- context 'when generating a meep 2.0 config' do
32
- before(:each) do
33
- options[:meep_schema_version] = '2.0'
34
- end
35
-
36
- context 'for a monolithic install' do
37
- let(:hosts) { mono_hosts }
38
- let(:gold_role_answers) do
39
- {
40
- "console_admin_password" => default_password,
41
- "node_roles" => {
42
- "pe_role::monolithic::primary_master" => [hosts[0].hostname],
43
- },
44
- "agent_platforms" => match_array(['el_7_x86_64']),
45
- "meep_schema_version" => "2.0",
46
- }
47
- end
48
-
49
- include_examples 'pe.conf'
50
- include_examples 'valid MEEP 2.0 pe.conf'
51
- end
52
- end
53
- end