puppet_litmus 1.0.1 → 1.0.2
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 +7 -5
- data/lib/puppet_litmus/version.rb +1 -1
- data/spec/exe/matrix_from_metadata_v2_spec.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d2693612b3ed4ca88a6ea03742ea115b658d888635f7302a9b8ee36d447d8994
|
|
4
|
+
data.tar.gz: 0a2826a635e4ae9619de7a8b7c138506924896fc2ee7d297c78a5b430890150b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b842feacbc47aa91f9b2f8aee6a81e37f7f58a06b73560ba4b5e61a0a798db4558b51823832a585233e224da8f594de0cb06f38cd1a3e25da83866687210975
|
|
7
|
+
data.tar.gz: baf2be2e9f64f2c0f8e60807494d109b82ce86bafaa33f2b1b46ecb9ad30a11393972b2fbad069528a9d8fe7dc3516afa0eb8cf90f443e1d210f93ba10942168
|
data/exe/matrix_from_metadata_v2
CHANGED
|
@@ -142,11 +142,13 @@ if metadata.key?('requirements') && metadata['requirements'].length.positive?
|
|
|
142
142
|
next unless Gem::Requirement.create(reqs).satisfied_by?(Gem::Version.new("#{collection[:puppet_maj_version]}.9999"))
|
|
143
143
|
|
|
144
144
|
matrix[:collection] << "puppet#{collection[:puppet_maj_version]}-nightly"
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
145
|
+
|
|
146
|
+
include_version = {
|
|
147
|
+
8 => "~> #{collection[:puppet_maj_version]}.0",
|
|
148
|
+
7 => "~> #{collection[:puppet_maj_version]}.24",
|
|
149
|
+
6 => "~> #{collection[:puppet_maj_version]}.0"
|
|
150
|
+
}
|
|
151
|
+
spec_matrix[:include] << { puppet_version: include_version[collection[:puppet_maj_version]], ruby_version: collection[:ruby_version] }
|
|
150
152
|
end
|
|
151
153
|
end
|
|
152
154
|
end
|
|
@@ -33,7 +33,7 @@ RSpec.describe 'matrix_from_metadata_v2' do
|
|
|
33
33
|
].join
|
|
34
34
|
)
|
|
35
35
|
expect(github_output_content).to include(
|
|
36
|
-
'spec_matrix={"include":[{"puppet_version":"~> 7.
|
|
36
|
+
'spec_matrix={"include":[{"puppet_version":"~> 7.24","ruby_version":2.7},{"puppet_version":"~> 8.0","ruby_version":3.2}]}'
|
|
37
37
|
)
|
|
38
38
|
expect(result.stdout).to include("Created matrix with 8 cells:\n - Acceptance Test Cells: 6\n - Spec Test Cells: 2")
|
|
39
39
|
end
|
|
@@ -69,7 +69,7 @@ RSpec.describe 'matrix_from_metadata_v2' do
|
|
|
69
69
|
].join
|
|
70
70
|
)
|
|
71
71
|
expect(github_output_content).to include(
|
|
72
|
-
'spec_matrix={"include":[{"puppet_version":"~> 7.
|
|
72
|
+
'spec_matrix={"include":[{"puppet_version":"~> 7.24","ruby_version":2.7},{"puppet_version":"~> 8.0","ruby_version":3.2}]}'
|
|
73
73
|
)
|
|
74
74
|
expect(result.stdout).to include("Created matrix with 6 cells:\n - Acceptance Test Cells: 4\n - Spec Test Cells: 2")
|
|
75
75
|
end
|
|
@@ -105,7 +105,7 @@ RSpec.describe 'matrix_from_metadata_v2' do
|
|
|
105
105
|
].join
|
|
106
106
|
)
|
|
107
107
|
expect(github_output_content).to include(
|
|
108
|
-
'spec_matrix={"include":[{"puppet_version":"~> 7.
|
|
108
|
+
'spec_matrix={"include":[{"puppet_version":"~> 7.24","ruby_version":2.7},{"puppet_version":"~> 8.0","ruby_version":3.2}]}'
|
|
109
109
|
)
|
|
110
110
|
expect(result.stdout).to include("Created matrix with 4 cells:\n - Acceptance Test Cells: 2\n - Spec Test Cells: 2")
|
|
111
111
|
end
|