Debian Codegraph @

tests/probes/yamlfilecontent/test_probes_yamlfilecontent_array.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2
3 . $builddir/tests/test_common.sh
4
5 function test_probes_yamlfilecontent_array {
6
7 probecheck "yamlfilecontent" || return 255
8
9 local ret_val=0
10 local DF="${srcdir}/test_probes_yamlfilecontent_array.xml"
11 local RF="results.xml"
12
13 [ -f $RF ] && rm -f $RF
14
15 cp "${srcdir}/openshift-logging.yaml" /tmp
16
17 local YAML_FILE="/tmp/openshift-logging.yaml"
18
19 $OSCAP oval eval --results $RF $DF
20
21 if [ -f $RF ]; then
22 verify_results "def" $DF $RF 3 && verify_results "tst" $DF $RF 5
23 ret_val=$?
24 else
25 ret_val=1
26 fi
27
28 rm -f $YAML_FILE
29
30 return $ret_val
31 }
32
33 test_probes_yamlfilecontent_array