Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit 9470436

Browse files
authored
molecule/default/tests: test if permissions of other files are u… (#112)
1 parent f4e5970 commit 9470436

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

molecule/default/tests/test_default.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,21 @@ def test_files(host):
2626
assert f.is_file
2727

2828

29+
def test_permissions_didnt_change(host):
30+
dirs = [
31+
"/etc",
32+
"/root",
33+
"/usr",
34+
"/var"
35+
]
36+
for file in dirs:
37+
f = host.file(file)
38+
assert f.exists
39+
assert f.is_directory
40+
assert f.user == "root"
41+
assert f.group == "root"
42+
43+
2944
def test_user(host):
3045
assert host.group("node-exp").exists
3146
assert "node-exp" in host.user("node-exp").groups

0 commit comments

Comments
 (0)