File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
tests/acceptance/02_classes/01_basic Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ #######################################################
2
+ #
3
+ # Test that n_cpusocket(s) class exists on Linux
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
+ #######################################################
15
+
16
+ bundle agent test
17
+ {
18
+ meta:
19
+ "description" -> { "CFE-30" }
20
+ string => "Test that n_cpusocket(s) class exists on Linux";
21
+
22
+ "test_soft_fail"
23
+ string => "!linux",
24
+ meta => { "CFE-30" };
25
+
26
+ vars:
27
+ "num_matching"
28
+ int => countclassesmatching("[0-9]+_cpusockets?");
29
+ }
30
+
31
+ #######################################################
32
+
33
+ bundle agent check
34
+ {
35
+ classes:
36
+ "ok"
37
+ expression => eval("$(test.num_matching) == 1", "class", "infix");
38
+
39
+ methods:
40
+ "any"
41
+ usebundle => dcs_passif("ok", "$(this.promise_filename)"),
42
+ inherit => "true";
43
+ }
You can’t perform that action at this time.
0 commit comments