Skip to content

Commit 91465a9

Browse files
committed
update spec tests
1 parent 7f3ac0c commit 91465a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/unit/classes/server/config_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
end
3333

3434
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')
3636

3737
is_expected.to contain_exec('/usr/sbin/semanage port -a -t postgresql_port_t -p tcp 5432')
3838
.with(unless: '/usr/sbin/semanage port -l | grep -qw 5432')
@@ -141,7 +141,7 @@ class { 'postgresql::server': }
141141
end
142142

143143
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')
145145

146146
is_expected.to contain_exec('/usr/sbin/semanage port -a -t postgresql_port_t -p tcp 5432')
147147
.with(unless: '/usr/sbin/semanage port -l | grep -qw 5432')
@@ -214,7 +214,7 @@ class { 'postgresql::server': }
214214
end
215215

216216
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')
218218

219219
is_expected.to contain_exec('/usr/sbin/semanage port -a -t postgresql_port_t -p tcp 5432')
220220
.with(unless: '/usr/sbin/semanage port -l | grep -qw 5432')
@@ -282,7 +282,7 @@ class { 'postgresql::server': }
282282
end
283283

284284
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')
286286

287287
is_expected.to contain_exec('/usr/sbin/semanage port -a -t postgresql_port_t -p tcp 5432')
288288
.with(unless: '/usr/sbin/semanage port -l | grep -qw 5432')

0 commit comments

Comments
 (0)