Skip to content

Commit dd296bd

Browse files
F
1 parent 88a0aa1 commit dd296bd

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

test/test_modules.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff 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
140141
def 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")
150151
def 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")
159164
def 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

167172
def test_salt(host):

0 commit comments

Comments
 (0)