File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
tests/acceptance/10_files/unsafe Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -67,29 +67,22 @@ bundle agent test
67
67
bundle agent check
68
68
{
69
69
vars:
70
- "getfacl"
71
- string => ifelse(
72
- fileexists("/var/cfengine/bin/getfacl"), # if
73
- "/var/cfengine/bin/getfacl", # then
74
- "/usr/bin/getfacl" # else
75
- );
76
-
77
70
"expected"
78
71
string => ".*user:root:rwx.*";
79
- "actual "
80
- string => execresult ("$(getfacl) $( global.testfile)", "noshell ");
72
+ "acls "
73
+ slist => getacls ("$(global.testfile)", "access ");
81
74
82
75
classes:
83
76
"ok"
84
- expression => regcmp ("$(expected)", "$(actual) ");
77
+ expression => some ("$(expected)", "acls ");
85
78
86
79
reports:
87
80
ok::
88
81
"$(this.promise_filename) Pass";
89
82
!ok::
90
83
"$(this.promise_filename) FAIL";
91
84
any::
92
- "Expecting output matching '$(expected)', got '$(actual )'";
85
+ "Expecting output matching '$(expected)', got '$(acls )'";
93
86
}
94
87
95
88
bundle agent destroy
You can’t perform that action at this time.
0 commit comments