File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
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 )
@@ -149,19 +150,23 @@ def test_service_systemd_ssh(host, docker_image):
149150@pytest .mark .testinfra_hosts ("docker://rockylinux9" )
150151def test_service_systemd_root_mount (host ):
151152 root = host .service ("-.mount" ) # systemd unit for mounting /
152- assert root .exists
153- assert root .is_valid
154- assert root .is_enabled
155- assert root .is_running
153+ x = host .run ("systemctl status -- -.mount" )
154+ raise AssertionError (f"{ x .stdout } \n { x .stderr } " )
155+ # assert root.exists
156+ # x = root.is_valid
157+ # raise AssertionError(f"{x}")
158+ # assert root.is_valid
159+ # assert root.is_enabled
160+ # assert root.is_running
156161
157162
158163@pytest .mark .testinfra_hosts ("docker://rockylinux9" )
159164def test_service_systemd_tmp_mount (host ):
160165 tmp = host .service ("tmp.mount" )
161166 assert tmp .exists
162167 assert tmp .is_valid
163- assert tmp .is_enabled
164- assert tmp .is_running
168+ assert not tmp .is_enabled
169+ assert not tmp .is_running
165170
166171
167172def test_salt (host ):
You can’t perform that action at this time.
0 commit comments