Skip to content
Snippets Groups Projects
Unverified Commit 9470436c authored by Paweł Krupa's avatar Paweł Krupa Committed by GitHub
Browse files

molecule/default/tests: test if permissions of other files are u… (#112)

parent f4e5970e
Branches
Tags
No related merge requests found
......@@ -26,6 +26,21 @@ def test_files(host):
assert f.is_file
def test_permissions_didnt_change(host):
dirs = [
"/etc",
"/root",
"/usr",
"/var"
]
for file in dirs:
f = host.file(file)
assert f.exists
assert f.is_directory
assert f.user == "root"
assert f.group == "root"
def test_user(host):
assert host.group("node-exp").exists
assert "node-exp" in host.user("node-exp").groups
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment