puppet_litmus 1.1.3 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/exe/matrix_from_metadata +2 -0
- data/exe/matrix_from_metadata_v2 +2 -0
- 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 +9 -6
- 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: c1369a1f849915e1d1f26f7fd67a08c7700a234311387ba5a26ce5e226da81cd
|
4
|
+
data.tar.gz: 0aacb018ffc6bdfa148c36d48e58402fe761b5669ca61f19e7095f9c5ff5fd94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7654e71c9f39deb9f9dc51cb9a0ecca43b4f60d7b1f0175088ab647f72cb9d3c257f9e4a914af97fdfc050d02804c8534d325530cfd53d8eb4e2569d0b8a8732
|
7
|
+
data.tar.gz: d9786867d3db6c028bf8f41dd9f23c8f680104656deba2016d3c29d52dfba7b077c4428cadbda9b26a547b85077deca8fca8343d8d7b202d4517ea1eb4e8276a
|
data/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Litmus
|
2
2
|
|
3
|
+
[![Code Owners](https://img.shields.io/badge/owners-DevX--team-blue)](https://github.com/puppetlabs/puppet_litmus/blob/main/CODEOWNERS)
|
4
|
+
![ci](https://github.com/puppetlabs/puppet_litmus/actions/workflows/ci.yml/badge.svg)
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/puppet_litmus.svg)](https://badge.fury.io/rb/puppet_litmus)
|
6
|
+
|
3
7
|
<div name="logo">
|
4
8
|
<img src="resources/litmus-dark-RGB.png"
|
5
9
|
style="display: block; margin-left: auto; margin-right: auto;"
|
@@ -61,6 +65,10 @@ In order to use this new functionality, run:
|
|
61
65
|
|
62
66
|
For documentation, see our [Litmus Docs Site](https://puppetlabs.github.io/content-and-tooling-team/docs/litmus/).
|
63
67
|
|
68
|
+
## License
|
69
|
+
|
70
|
+
This codebase is licensed under Apache 2.0. However, the open source dependencies included in this codebase might be subject to other software licenses such as AGPL, GPL2.0, and MIT.
|
71
|
+
|
64
72
|
## Other Resources
|
65
73
|
|
66
74
|
- [Is it Worth the Time?](https://xkcd.com/1205/)
|
data/exe/matrix_from_metadata
CHANGED
data/exe/matrix_from_metadata_v2
CHANGED
@@ -28,6 +28,7 @@ IMAGE_TABLE = {
|
|
28
28
|
'RedHat-7' => 'rhel-7',
|
29
29
|
'RedHat-8' => 'rhel-8',
|
30
30
|
'RedHat-9' => 'rhel-9',
|
31
|
+
'RedHat-9-arm' => 'rhel-9-arm64',
|
31
32
|
'SLES-12' => 'sles-12',
|
32
33
|
'SLES-15' => 'sles-15',
|
33
34
|
'Windows-2016' => 'windows-2016',
|
@@ -45,6 +46,7 @@ DOCKER_PLATFORMS = {
|
|
45
46
|
'Debian-9' => 'litmusimage/debian:9',
|
46
47
|
'Debian-10' => 'litmusimage/debian:10',
|
47
48
|
'Debian-11' => 'litmusimage/debian:11',
|
49
|
+
'Debian-12' => 'litmusimage/debian:12',
|
48
50
|
'OracleLinux-6' => 'litmusimage/oraclelinux:6',
|
49
51
|
'OracleLinux-7' => 'litmusimage/oraclelinux:7',
|
50
52
|
'Scientific-6' => 'litmusimage/scientificlinux:6',
|
data/spec/exe/fake_metadata.json
CHANGED
@@ -24,6 +24,7 @@ RSpec.describe 'matrix_from_metadata_v2' do
|
|
24
24
|
'"platforms":[',
|
25
25
|
'{"label":"CentOS-6","provider":"docker","image":"litmusimage/centos:6"},',
|
26
26
|
'{"label":"RedHat-8","provider":"provision_service","image":"rhel-8"},',
|
27
|
+
'{"label":"RedHat-9-arm","provider":"provision_service","image":"rhel-9-arm64"},',
|
27
28
|
'{"label":"Ubuntu-18.04","provider":"docker","image":"litmusimage/ubuntu:18.04"}',
|
28
29
|
'],',
|
29
30
|
'"collection":[',
|
@@ -35,7 +36,7 @@ RSpec.describe 'matrix_from_metadata_v2' do
|
|
35
36
|
expect(github_output_content).to include(
|
36
37
|
'spec_matrix={"include":[{"puppet_version":"~> 7.24","ruby_version":2.7},{"puppet_version":"~> 8.0","ruby_version":3.2}]}'
|
37
38
|
)
|
38
|
-
expect(result.stdout).to include("Created matrix with
|
39
|
+
expect(result.stdout).to include("Created matrix with 10 cells:\n - Acceptance Test Cells: 8\n - Spec Test Cells: 2")
|
39
40
|
end
|
40
41
|
end
|
41
42
|
|
@@ -60,7 +61,8 @@ RSpec.describe 'matrix_from_metadata_v2' do
|
|
60
61
|
'matrix={',
|
61
62
|
'"platforms":[',
|
62
63
|
'{"label":"CentOS-6","provider":"docker","image":"litmusimage/centos:6"},',
|
63
|
-
'{"label":"RedHat-8","provider":"provision_service","image":"rhel-8"}',
|
64
|
+
'{"label":"RedHat-8","provider":"provision_service","image":"rhel-8"},',
|
65
|
+
'{"label":"RedHat-9-arm","provider":"provision_service","image":"rhel-9-arm64"}',
|
64
66
|
'],',
|
65
67
|
'"collection":[',
|
66
68
|
'"puppet7-nightly","puppet8-nightly"',
|
@@ -71,14 +73,14 @@ RSpec.describe 'matrix_from_metadata_v2' do
|
|
71
73
|
expect(github_output_content).to include(
|
72
74
|
'spec_matrix={"include":[{"puppet_version":"~> 7.24","ruby_version":2.7},{"puppet_version":"~> 8.0","ruby_version":3.2}]}'
|
73
75
|
)
|
74
|
-
expect(result.stdout).to include("Created matrix with
|
76
|
+
expect(result.stdout).to include("Created matrix with 8 cells:\n - Acceptance Test Cells: 6\n - Spec Test Cells: 2")
|
75
77
|
end
|
76
78
|
end
|
77
79
|
|
78
80
|
context 'with --exclude-platforms \'["ubuntu-18.04","redhat-8"]\'' do
|
79
81
|
let(:github_output) { Tempfile.new('github_output') }
|
80
82
|
let(:github_output_content) { github_output.read }
|
81
|
-
let(:result) { run_matrix_from_metadata_v2({ '--exclude-platforms' => ['ubuntu-18.04', 'redhat-8'] }) }
|
83
|
+
let(:result) { run_matrix_from_metadata_v2({ '--exclude-platforms' => ['ubuntu-18.04', 'redhat-8', 'redhat-9'] }) }
|
82
84
|
|
83
85
|
before do
|
84
86
|
ENV['GITHUB_OUTPUT'] = github_output.path
|
@@ -96,7 +98,8 @@ RSpec.describe 'matrix_from_metadata_v2' do
|
|
96
98
|
[
|
97
99
|
'matrix={',
|
98
100
|
'"platforms":[',
|
99
|
-
'{"label":"CentOS-6","provider":"docker","image":"litmusimage/centos:6"}',
|
101
|
+
'{"label":"CentOS-6","provider":"docker","image":"litmusimage/centos:6"},',
|
102
|
+
'{"label":"RedHat-9-arm","provider":"provision_service","image":"rhel-9-arm64"}',
|
100
103
|
'],',
|
101
104
|
'"collection":[',
|
102
105
|
'"puppet7-nightly","puppet8-nightly"',
|
@@ -107,7 +110,7 @@ RSpec.describe 'matrix_from_metadata_v2' do
|
|
107
110
|
expect(github_output_content).to include(
|
108
111
|
'spec_matrix={"include":[{"puppet_version":"~> 7.24","ruby_version":2.7},{"puppet_version":"~> 8.0","ruby_version":3.2}]}'
|
109
112
|
)
|
110
|
-
expect(result.stdout).to include("Created matrix with
|
113
|
+
expect(result.stdout).to include("Created matrix with 6 cells:\n - Acceptance Test Cells: 4\n - Spec Test Cells: 2")
|
111
114
|
end
|
112
115
|
end
|
113
116
|
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.2.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-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bolt
|