File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ def test_service_systemd_mask(host, docker_image):
137137 assert not ssh .is_masked
138138
139139
140+ @all_images
140141def test_service_systemd_ssh (host , docker_image ):
141142 name = "sshd" if docker_image == "rockylinux9" else "ssh"
142143 ssh = host .service (name )
@@ -146,6 +147,7 @@ def test_service_systemd_ssh(host, docker_image):
146147 assert ssh .is_running
147148
148149
150+ # service unit exists only in Rocky Linux 9
149151@pytest .mark .testinfra_hosts ("docker://rockylinux9" )
150152def test_service_systemd_root_mount (host ):
151153 root = host .service ("-.mount" ) # systemd unit for mounting /
@@ -155,13 +157,14 @@ def test_service_systemd_root_mount(host):
155157 assert root .is_running
156158
157159
160+ # service unit exists only in Rocky Linux 9
158161@pytest .mark .testinfra_hosts ("docker://rockylinux9" )
159162def test_service_systemd_tmp_mount (host ):
160163 tmp = host .service ("tmp.mount" )
161164 assert tmp .exists
162165 assert tmp .is_valid
163- assert tmp .is_enabled
164- assert tmp .is_running
166+ assert not tmp .is_enabled
167+ assert not tmp .is_running
165168
166169
167170def test_salt (host ):
You can’t perform that action at this time.
0 commit comments