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):
137
137
assert not ssh .is_masked
138
138
139
139
140
+ @all_images
140
141
def test_service_systemd_ssh (host , docker_image ):
141
142
name = "sshd" if docker_image == "rockylinux9" else "ssh"
142
143
ssh = host .service (name )
@@ -149,19 +150,23 @@ def test_service_systemd_ssh(host, docker_image):
149
150
@pytest .mark .testinfra_hosts ("docker://rockylinux9" )
150
151
def test_service_systemd_root_mount (host ):
151
152
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
156
161
157
162
158
163
@pytest .mark .testinfra_hosts ("docker://rockylinux9" )
159
164
def test_service_systemd_tmp_mount (host ):
160
165
tmp = host .service ("tmp.mount" )
161
166
assert tmp .exists
162
167
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
165
170
166
171
167
172
def test_salt (host ):
You can’t perform that action at this time.
0 commit comments