Skip to content

Commit e68a173

Browse files
larsewibtriller
authored andcommitted
Added test to check that @if feature and class guard works for libpam
Ticket: CFE-3371 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 728df02 commit e68a173

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
}

0 commit comments

Comments
 (0)