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 +4 -4
- data/exe/matrix_from_metadata_v2 +2 -1
- data/lib/puppet_litmus/version.rb +1 -1
- data/spec/exe/fake_metadata.json +2 -1
- data/spec/exe/matrix_from_metadata_v2_spec.rb +13 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ccf17917e989f2e0396f8b0611dd22cdf714b1e72db8be39e44b796e29e6044
|
4
|
+
data.tar.gz: fffb9cd11af3950794c48b23767e4990a278d4c9f2584497d432157b7c1cc031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11a2e60e31f2e4d830a1bb12ca1a872e184244852514913636edbc599489e8f5d3c94feb8c98d2166358ebba18a04e76daa4cefefda52c21cecc9306d6f18c1c
|
7
|
+
data.tar.gz: 455dfdd8692055f23f79c916c0968cfd2a16d7ce7d13ea1c74b5ce8b8b83fa25ae346c4928b1fdb355cca1cdb18790beab89b57302d9f6b7f64c42bf4165c6fa
|
data/exe/matrix_from_metadata_v2
CHANGED
data/spec/exe/fake_metadata.json
CHANGED
@@ -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
|
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
|
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
|
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.
|
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
|
+
date: 2023-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bolt
|