| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | |
| 3 | . $builddir/tests/test_common.sh |
| 4 | |
| 5 | function test_probes_yamlfilecontent_arrayscip-shell shell shell-project 0.0.0 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 | [scip-shell system . . `[`. -f $RF ] && rmscip-shell system . . rm. -f $RF |
| 14 | |
| 15 | cpscip-shell system . . cp. "${srcdir}/openshift-logging.yaml" /tmpscip-shell filesystem . . `/tmp`. |
| 16 | |
| 17 | local YAML_FILE="/tmp/openshift-logging.yamlscip-shell filesystem . . `/tmp/openshift-logging.yaml`." |
| 18 | |
| 19 | $OSCAP oval eval --results $RF $DF |
| 20 | |
| 21 | if [scip-shell system . . `[`. -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 | rmscip-shell system . . rm. -f $YAML_FILE |
| 29 | |
| 30 | return $ret_val |
| 31 | } |
| 32 | |
| 33 | test_probes_yamlfilecontent_arrayscip-shell shell shell-project 0.0.0 test_probes_yamlfilecontent_array(). |