File tree 2 files changed +15
-0
lines changed
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 54
54
out-of-store = {
55
55
source = "/run/systemd/system/" ;
56
56
} ;
57
+
58
+ test_perms = {
59
+ text = ''
60
+ This is just a test!
61
+ '' ;
62
+ mode = "0755" ;
63
+ uid = 5 ;
64
+ gid = 6 ;
65
+ } ;
57
66
} ;
58
67
} ;
59
68
Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ forEachUbuntuImage "example" {
150
150
extraPathsToRegister = [ newConfig ] ;
151
151
testScriptFunction =
152
152
{ toplevel , ... } :
153
+ #python
153
154
''
154
155
# Start all machines in parallel
155
156
start_all()
@@ -174,6 +175,11 @@ forEachUbuntuImage "example" {
174
175
vm.succeed("grep -F 'launch_the_rockets = true' /etc/foo.conf")
175
176
vm.fail("grep -F 'launch_the_rockets = false' /etc/foo.conf")
176
177
178
+ uid = vm.succeed("stat -c %u /etc/test_perms").strip()
179
+ gid = vm.succeed("stat -c %g /etc/test_perms").strip()
180
+ assert uid == "5", f"uid was {uid}, expected 5"
181
+ assert gid == "6", f"uid was {gid}, expected 6"
182
+
177
183
vm.succeed("test -d /var/tmp/system-manager")
178
184
vm.succeed("test -d /var/tmp/sample")
179
185
You can’t perform that action at this time.
0 commit comments