16 lines
364 B
Python
16 lines
364 B
Python
def test_passwd_file(host):
|
|
passwd = host.file("/etc/passwd")
|
|
assert passwd.contains("atm")
|
|
assert passwd.user == "root"
|
|
assert passwd.group == "root"
|
|
assert passwd.mode == 0o644
|
|
|
|
|
|
def test_nginx_is_installed(host):
|
|
print(host)
|
|
assert host.exists("sc")
|
|
|
|
|
|
# cargo = host.package("sc")
|
|
# print(cargo)
|
|
# assert cargo.is_installed
|