File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
tests/acceptance/00_basics/macros Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ ######################################################
2
+ #
3
+ # Test that @if feature() and class guard works for pam
4
+ #
5
+ #####################################################
6
+
7
+ body common control
8
+ {
9
+ inputs => { "../../default.cf.sub" };
10
+ bundlesequence => { default("$(this.promise_filename)") };
11
+ version => "1.0";
12
+ }
13
+
14
+ bundle common test
15
+ {
16
+ meta:
17
+ "description" -> { "CFE-3371" }
18
+ string => "Test that @if feature() and class guard works for pam";
19
+ }
20
+
21
+ bundle agent check
22
+ {
23
+ reports:
24
+ @if feature(pam)
25
+ feature_pam::
26
+ "$(this.promise_filename) Pass";
27
+ !feature_pam::
28
+ "$(this.promise_filename) FAIL";
29
+ @else
30
+ !feature_pam::
31
+ "$(this.promise_filename) Pass";
32
+ feature_pam::
33
+ "$(this.promise_filename) FAIL";
34
+ @endif
35
+ }
You can’t perform that action at this time.
0 commit comments