Skip to content

Commit decce9b

Browse files
committed
Added tests for sys.policy_version
Signed-off-by: Victor Moene <victor.moene@northern.tech>
1 parent 0f3588c commit decce9b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
body common control
2+
{
3+
bundlesequence => { "check" };
4+
version => "1.2.3";
5+
}
6+
bundle agent check
7+
{
8+
classes:
9+
"ok"
10+
expression => strcmp("$(sys.policy_version)", "$(default:control_common.version)");
11+
12+
reports:
13+
ok::
14+
"$(this.promise_filename) Pass";
15+
!ok::
16+
"$(this.promise_filename) FAIL";
17+
}

0 commit comments

Comments
 (0)