|
32 | 32 | end
|
33 | 33 |
|
34 | 34 | it 'has SELinux port defined' do
|
35 |
| - is_expected.to contain_package('policycoreutils-python') .with(ensure: 'present') |
| 35 | + is_expected.to contain_package('policycoreutils-python').with(ensure: 'installed') |
36 | 36 |
|
37 | 37 | is_expected.to contain_exec('/usr/sbin/semanage port -a -t postgresql_port_t -p tcp 5432')
|
38 | 38 | .with(unless: '/usr/sbin/semanage port -l | grep -qw 5432')
|
@@ -141,7 +141,7 @@ class { 'postgresql::server': }
|
141 | 141 | end
|
142 | 142 |
|
143 | 143 | it 'has SELinux port defined' do
|
144 |
| - is_expected.to contain_package('policycoreutils-python-utils') .with(ensure: 'present') |
| 144 | + is_expected.to contain_package('policycoreutils-python-utils').with(ensure: 'installed') |
145 | 145 |
|
146 | 146 | is_expected.to contain_exec('/usr/sbin/semanage port -a -t postgresql_port_t -p tcp 5432')
|
147 | 147 | .with(unless: '/usr/sbin/semanage port -l | grep -qw 5432')
|
@@ -214,7 +214,7 @@ class { 'postgresql::server': }
|
214 | 214 | end
|
215 | 215 |
|
216 | 216 | it 'has SELinux port defined' do
|
217 |
| - is_expected.to contain_package('policycoreutils-python-utils') .with(ensure: 'present') |
| 217 | + is_expected.to contain_package('policycoreutils-python-utils').with(ensure: 'installed') |
218 | 218 |
|
219 | 219 | is_expected.to contain_exec('/usr/sbin/semanage port -a -t postgresql_port_t -p tcp 5432')
|
220 | 220 | .with(unless: '/usr/sbin/semanage port -l | grep -qw 5432')
|
@@ -282,7 +282,7 @@ class { 'postgresql::server': }
|
282 | 282 | end
|
283 | 283 |
|
284 | 284 | it 'has SELinux port defined' do
|
285 |
| - is_expected.to contain_package('policycoreutils') .with(ensure: 'present') |
| 285 | + is_expected.to contain_package('policycoreutils').with(ensure: 'installed') |
286 | 286 |
|
287 | 287 | is_expected.to contain_exec('/usr/sbin/semanage port -a -t postgresql_port_t -p tcp 5432')
|
288 | 288 | .with(unless: '/usr/sbin/semanage port -l | grep -qw 5432')
|
|
0 commit comments