|
24 | 24 | end |
25 | 25 |
|
26 | 26 | case [facts[:os]['family'], facts[:os]['release']['major']] |
27 | | - when %w[RedHat 8] |
| 27 | + when %w[RedHat 8], %w[Ubuntu 20.04] |
28 | 28 | it { is_expected.to raise_error(%r{does not support Python 3}) } |
29 | 29 | else |
30 | 30 | it 'import collectd_rabbitmq.collectd_plugin in python-config' do |
|
67 | 67 | end |
68 | 68 |
|
69 | 69 | case [facts[:os]['family'], facts[:os]['release']['major']] |
70 | | - when %w[RedHat 8] |
| 70 | + when %w[RedHat 8], %w[Ubuntu 20.04] |
71 | 71 | it { is_expected.to raise_error(%r{does not support Python 3}) } |
72 | 72 | else |
73 | 73 | it 'override custom TypesDB' do |
|
82 | 82 | end |
83 | 83 |
|
84 | 84 | case [facts[:os]['family'], facts[:os]['release']['major']] |
85 | | - when %w[RedHat 8] |
| 85 | + when %w[RedHat 8], %w[Ubuntu 20.04] |
86 | 86 | it { is_expected.to raise_error(%r{does not support Python 3}) } |
87 | 87 | else |
88 | 88 | it 'override Username to foo in python-config' do |
|
97 | 97 | end |
98 | 98 |
|
99 | 99 | case [facts[:os]['family'], facts[:os]['release']['major']] |
100 | | - when %w[RedHat 8] |
| 100 | + when %w[RedHat 8], %w[Ubuntu 20.04] |
101 | 101 | it { is_expected.to raise_error(%r{does not support Python 3}) } |
102 | 102 | else |
103 | 103 | it 'override Username to foo in python-config' do |
|
112 | 112 | end |
113 | 113 |
|
114 | 114 | case [facts[:os]['family'], facts[:os]['release']['major']] |
115 | | - when %w[RedHat 8] |
| 115 | + when %w[RedHat 8], %w[Ubuntu 20.04] |
116 | 116 | it { is_expected.to raise_error(%r{does not support Python 3}) } |
117 | 117 | else |
118 | 118 | it 'override Username to foo in python-config' do |
|
128 | 128 | end |
129 | 129 |
|
130 | 130 | case [facts[:os]['family'], facts[:os]['release']['major']] |
131 | | - when %w[RedHat 8] |
| 131 | + when %w[RedHat 8], %w[Ubuntu 20.04] |
132 | 132 | it { is_expected.to raise_error(%r{does not support Python 3}) } |
133 | 133 | else |
134 | 134 | it 'Will remove python-config' do |
|
155 | 155 | end |
156 | 156 |
|
157 | 157 | case [facts[:os]['family'], facts[:os]['release']['major']] |
158 | | - when %w[RedHat 8] |
| 158 | + when %w[RedHat 8], %w[Ubuntu 20.04] |
159 | 159 | it { is_expected.to raise_error(%r{does not support Python 3}) } |
160 | 160 | else |
161 | 161 | it do |
|
0 commit comments