|
17 | 17 | end
|
18 | 18 |
|
19 | 19 | it 'generates the matrix' do # rubocop:disable RSpec/ExampleLength
|
| 20 | + expect(result.stdout).to include('::warning::Cannot find image for CentOS-6') |
20 | 21 | expect(result.stdout).to include('::warning::Cannot find image for Ubuntu-14.04')
|
21 | 22 | expect(github_output_content).to include(
|
22 | 23 | [
|
23 | 24 | 'matrix={',
|
24 | 25 | '"platforms":[',
|
25 |
| - '{"label":"CentOS-6","provider":"docker","image":"litmusimage/centos:6"},', |
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"},',
|
|
39 | 39 | expect(github_output_content).to include(
|
40 | 40 | 'spec_matrix={"include":[{"puppet_version":"~> 7.24","ruby_version":2.7},{"puppet_version":"~> 8.0","ruby_version":3.2}]}'
|
41 | 41 | )
|
42 |
| - expect(result.stdout).to include("Created matrix with 16 cells:\n - Acceptance Test Cells: 14\n - Spec Test Cells: 2") |
| 42 | + expect(result.stdout).to include("Created matrix with 14 cells:\n - Acceptance Test Cells: 12\n - Spec Test Cells: 2") |
43 | 43 | end
|
44 | 44 | end
|
45 | 45 |
|
|
57 | 57 | end
|
58 | 58 |
|
59 | 59 | it 'generates the matrix without excluded platforms' do # rubocop:disable RSpec/ExampleLength
|
| 60 | + expect(result.stdout).to include('::warning::Cannot find image for CentOS-6') |
60 | 61 | expect(result.stdout).to include('::warning::Cannot find image for Ubuntu-14.04')
|
61 | 62 | expect(result.stdout).to include('::warning::Ubuntu-18.04 was excluded from testing')
|
62 | 63 | expect(github_output_content).to include(
|
63 | 64 | [
|
64 | 65 | 'matrix={',
|
65 | 66 | '"platforms":[',
|
66 |
| - '{"label":"CentOS-6","provider":"docker","image":"litmusimage/centos:6"},', |
67 | 67 | '{"label":"RedHat-8","provider":"provision_service","image":"rhel-8"},',
|
68 | 68 | '{"label":"RedHat-9","provider":"provision_service","image":"rhel-9"},',
|
69 | 69 | '{"label":"RedHat-9-arm","provider":"provision_service","image":"rhel-9-arm64"},',
|
|
79 | 79 | expect(github_output_content).to include(
|
80 | 80 | 'spec_matrix={"include":[{"puppet_version":"~> 7.24","ruby_version":2.7},{"puppet_version":"~> 8.0","ruby_version":3.2}]}'
|
81 | 81 | )
|
82 |
| - expect(result.stdout).to include("Created matrix with 14 cells:\n - Acceptance Test Cells: 12\n - Spec Test Cells: 2") |
| 82 | + expect(result.stdout).to include("Created matrix with 12 cells:\n - Acceptance Test Cells: 10\n - Spec Test Cells: 2") |
83 | 83 | end
|
84 | 84 | end
|
85 | 85 |
|
|
98 | 98 |
|
99 | 99 | it 'generates the matrix without excluded platforms' do
|
100 | 100 | expect(result.stdout).to include('::warning::Cannot find image for Ubuntu-14.04')
|
| 101 | + expect(result.stdout).to include('::warning::Cannot find image for CentOS-6') |
101 | 102 | expect(result.stdout).to include('::warning::Ubuntu-18.04 was excluded from testing')
|
102 | 103 | expect(result.stdout).to include('::warning::Ubuntu-22.04 was excluded from testing')
|
103 | 104 | expect(result.stdout).to include('::warning::RedHat-8 was excluded from testing')
|
104 | 105 | expect(github_output_content).to include(
|
105 | 106 | [
|
106 | 107 | 'matrix={',
|
107 | 108 | '"platforms":[',
|
108 |
| - '{"label":"CentOS-6","provider":"docker","image":"litmusimage/centos:6"},', |
109 | 109 | '{"label":"RedHat-9-arm","provider":"provision_service","image":"rhel-9-arm64"},',
|
110 | 110 | '{"label":"Ubuntu-22.04-arm","provider":"provision_service","image":"ubuntu-2204-lts-arm64"}',
|
111 | 111 | '],',
|
|
118 | 118 | expect(github_output_content).to include(
|
119 | 119 | 'spec_matrix={"include":[{"puppet_version":"~> 7.24","ruby_version":2.7},{"puppet_version":"~> 8.0","ruby_version":3.2}]}'
|
120 | 120 | )
|
121 |
| - expect(result.stdout).to include("Created matrix with 8 cells:\n - Acceptance Test Cells: 6\n - Spec Test Cells: 2") |
| 121 | + expect(result.stdout).to include("Created matrix with 6 cells:\n - Acceptance Test Cells: 4\n - Spec Test Cells: 2") |
122 | 122 | end
|
123 | 123 | end
|
124 | 124 | end
|
0 commit comments