File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
tests/probes/yamlfilecontent Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function test_probes_yamlfilecontent_key {
19
19
$OSCAP oval eval --results $RF $DF
20
20
21
21
if [ -f $RF ]; then
22
- verify_results " def" $DF $RF 2 && verify_results " tst" $DF $RF 3
22
+ verify_results " def" $DF $RF 3 && verify_results " tst" $DF $RF 4
23
23
ret_val=$?
24
24
else
25
25
ret_val=1
Original file line number Diff line number Diff line change 31
31
</criteria >
32
32
</definition >
33
33
34
+ <definition class =" compliance" version =" 1" id =" oval:0:def:3" > <!-- comment="false" -->
35
+ <metadata >
36
+ <title ></title >
37
+ <description ></description >
38
+ </metadata >
39
+ <criteria operator =" AND" >
40
+ <criterion comment =" get_non_existing_scalar" test_ref =" oval:0:tst:4" />
41
+ </criteria >
42
+ </definition >
43
+
34
44
</definitions >
35
45
36
46
<tests >
49
59
<ind-def : object object_ref =" oval:0:obj:3" />
50
60
</ind-def : yamlfilecontent_test >
51
61
62
+ <ind-def : yamlfilecontent_test version =" 1" id =" oval:0:tst:4" check =" all" comment =" false" >
63
+ <ind-def : object object_ref =" oval:0:obj:4" />
64
+ </ind-def : yamlfilecontent_test >
65
+
52
66
</tests >
53
67
54
68
<objects >
71
85
<ind-def : yamlpath >.metadata</ind-def : yamlpath >
72
86
</ind-def : yamlfilecontent_object >
73
87
88
+ <ind-def : yamlfilecontent_object version =" 1" id =" oval:0:obj:4" >
89
+ <ind-def : path >/tmp</ind-def : path >
90
+ <ind-def : filename >openshift-logging.yaml</ind-def : filename >
91
+ <ind-def : yamlpath >.doesnt.exist</ind-def : yamlpath >
92
+ </ind-def : yamlfilecontent_object >
93
+
74
94
</objects >
75
95
76
96
<states >
You can’t perform that action at this time.
0 commit comments