puppet_litmus 1.2.1 → 1.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a4006c91797391428323571b4c840992e4fe81bb7748515f30c89c6d9a93946
4
- data.tar.gz: 6cd46dab531454bb491eaa2c603f9ba5a7208e88b320c660e6073e934ec95913
3
+ metadata.gz: 9ccf17917e989f2e0396f8b0611dd22cdf714b1e72db8be39e44b796e29e6044
4
+ data.tar.gz: fffb9cd11af3950794c48b23767e4990a278d4c9f2584497d432157b7c1cc031
5
5
  SHA512:
6
- metadata.gz: bc20c8b1c7a1195dccb8681849b94bf9fd207ce5dca5851927f0a0b34b78e2b74aba75ddd6d9ffef7aa1a0136b535d999d1999db5beb426ef3eaa5f1c1428e10
7
- data.tar.gz: eb6ecbe6739466e9c243fe5c58ed16dbeb96a33c4d6c7e7638d8cdfddb261070d695f562bad4169ebd9cf296e696ce04f70c40728fd10ceb31d17a1d3289c1be
6
+ metadata.gz: 11a2e60e31f2e4d830a1bb12ca1a872e184244852514913636edbc599489e8f5d3c94feb8c98d2166358ebba18a04e76daa4cefefda52c21cecc9306d6f18c1c
7
+ data.tar.gz: 455dfdd8692055f23f79c916c0968cfd2a16d7ce7d13ea1c74b5ce8b8b83fa25ae346c4928b1fdb355cca1cdb18790beab89b57302d9f6b7f64c42bf4165c6fa
@@ -36,7 +36,8 @@ IMAGE_TABLE = {
36
36
  }.freeze
37
37
 
38
38
  ARM_IMAGE_TABLE = {
39
- 'RedHat-9-arm' => 'rhel-9-arm64'
39
+ 'RedHat-9-arm' => 'rhel-9-arm64',
40
+ 'Ubuntu-22.04-arm' => 'ubuntu-2204-lts-arm64'
40
41
  }.freeze
41
42
 
42
43
  DOCKER_PLATFORMS = {
@@ -2,5 +2,5 @@
2
2
 
3
3
  # version of this gem
4
4
  module PuppetLitmus
5
- VERSION = '1.2.1'
5
+ VERSION = '1.3.0'
6
6
  end
@@ -31,7 +31,8 @@
31
31
  "operatingsystem": "Ubuntu",
32
32
  "operatingsystemrelease": [
33
33
  "14.04",
34
- "18.04"
34
+ "18.04",
35
+ "22.04"
35
36
  ]
36
37
  }
37
38
  ],
@@ -26,7 +26,9 @@ RSpec.describe 'matrix_from_metadata_v2' do
26
26
  '{"label":"RedHat-8","provider":"provision_service","image":"rhel-8"},',
27
27
  '{"label":"RedHat-9","provider":"provision_service","image":"rhel-9"},',
28
28
  '{"label":"RedHat-9-arm","provider":"provision_service","image":"rhel-9-arm64"},',
29
- '{"label":"Ubuntu-18.04","provider":"docker","image":"litmusimage/ubuntu:18.04"}',
29
+ '{"label":"Ubuntu-18.04","provider":"docker","image":"litmusimage/ubuntu:18.04"},',
30
+ '{"label":"Ubuntu-22.04","provider":"docker","image":"litmusimage/ubuntu:22.04"},',
31
+ '{"label":"Ubuntu-22.04-arm","provider":"provision_service","image":"ubuntu-2204-lts-arm64"}',
30
32
  '],',
31
33
  '"collection":[',
32
34
  '"puppet7-nightly","puppet8-nightly"',
@@ -37,7 +39,7 @@ RSpec.describe 'matrix_from_metadata_v2' do
37
39
  expect(github_output_content).to include(
38
40
  'spec_matrix={"include":[{"puppet_version":"~> 7.24","ruby_version":2.7},{"puppet_version":"~> 8.0","ruby_version":3.2}]}'
39
41
  )
40
- expect(result.stdout).to include("Created matrix with 12 cells:\n - Acceptance Test Cells: 10\n - Spec Test Cells: 2")
42
+ expect(result.stdout).to include("Created matrix with 16 cells:\n - Acceptance Test Cells: 14\n - Spec Test Cells: 2")
41
43
  end
42
44
  end
43
45
 
@@ -64,7 +66,9 @@ RSpec.describe 'matrix_from_metadata_v2' do
64
66
  '{"label":"CentOS-6","provider":"docker","image":"litmusimage/centos:6"},',
65
67
  '{"label":"RedHat-8","provider":"provision_service","image":"rhel-8"},',
66
68
  '{"label":"RedHat-9","provider":"provision_service","image":"rhel-9"},',
67
- '{"label":"RedHat-9-arm","provider":"provision_service","image":"rhel-9-arm64"}',
69
+ '{"label":"RedHat-9-arm","provider":"provision_service","image":"rhel-9-arm64"},',
70
+ '{"label":"Ubuntu-22.04","provider":"docker","image":"litmusimage/ubuntu:22.04"},',
71
+ '{"label":"Ubuntu-22.04-arm","provider":"provision_service","image":"ubuntu-2204-lts-arm64"}',
68
72
  '],',
69
73
  '"collection":[',
70
74
  '"puppet7-nightly","puppet8-nightly"',
@@ -75,14 +79,14 @@ RSpec.describe 'matrix_from_metadata_v2' do
75
79
  expect(github_output_content).to include(
76
80
  'spec_matrix={"include":[{"puppet_version":"~> 7.24","ruby_version":2.7},{"puppet_version":"~> 8.0","ruby_version":3.2}]}'
77
81
  )
78
- expect(result.stdout).to include("Created matrix with 10 cells:\n - Acceptance Test Cells: 8\n - Spec Test Cells: 2")
82
+ expect(result.stdout).to include("Created matrix with 14 cells:\n - Acceptance Test Cells: 12\n - Spec Test Cells: 2")
79
83
  end
80
84
  end
81
85
 
82
86
  context 'with --exclude-platforms \'["ubuntu-18.04","redhat-8"]\'' do
83
87
  let(:github_output) { Tempfile.new('github_output') }
84
88
  let(:github_output_content) { github_output.read }
85
- let(:result) { run_matrix_from_metadata_v2({ '--exclude-platforms' => ['ubuntu-18.04', 'redhat-8', 'redhat-9'] }) }
89
+ let(:result) { run_matrix_from_metadata_v2({ '--exclude-platforms' => ['ubuntu-18.04', 'ubuntu-22.04', 'redhat-8', 'redhat-9'] }) }
86
90
 
87
91
  before do
88
92
  ENV['GITHUB_OUTPUT'] = github_output.path
@@ -95,13 +99,15 @@ RSpec.describe 'matrix_from_metadata_v2' do
95
99
  it 'generates the matrix without excluded platforms' do
96
100
  expect(result.stdout).to include('::warning::Cannot find image for Ubuntu-14.04')
97
101
  expect(result.stdout).to include('::warning::Ubuntu-18.04 was excluded from testing')
102
+ expect(result.stdout).to include('::warning::Ubuntu-22.04 was excluded from testing')
98
103
  expect(result.stdout).to include('::warning::RedHat-8 was excluded from testing')
99
104
  expect(github_output_content).to include(
100
105
  [
101
106
  'matrix={',
102
107
  '"platforms":[',
103
108
  '{"label":"CentOS-6","provider":"docker","image":"litmusimage/centos:6"},',
104
- '{"label":"RedHat-9-arm","provider":"provision_service","image":"rhel-9-arm64"}',
109
+ '{"label":"RedHat-9-arm","provider":"provision_service","image":"rhel-9-arm64"},',
110
+ '{"label":"Ubuntu-22.04-arm","provider":"provision_service","image":"ubuntu-2204-lts-arm64"}',
105
111
  '],',
106
112
  '"collection":[',
107
113
  '"puppet7-nightly","puppet8-nightly"',
@@ -112,7 +118,7 @@ RSpec.describe 'matrix_from_metadata_v2' do
112
118
  expect(github_output_content).to include(
113
119
  'spec_matrix={"include":[{"puppet_version":"~> 7.24","ruby_version":2.7},{"puppet_version":"~> 8.0","ruby_version":3.2}]}'
114
120
  )
115
- expect(result.stdout).to include("Created matrix with 6 cells:\n - Acceptance Test Cells: 4\n - Spec Test Cells: 2")
121
+ expect(result.stdout).to include("Created matrix with 8 cells:\n - Acceptance Test Cells: 6\n - Spec Test Cells: 2")
116
122
  end
117
123
  end
118
124
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet_litmus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-10 00:00:00.000000000 Z
11
+ date: 2023-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bolt