You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Test 7: --list-rules with tailoring referencing SDS via file: prefix, no cref,
85
+
# providing the original profile instead of the customized one
86
+
temp_dir="$(mktemp -d)"
87
+
cp "$srcdir/test_reference_ds.xml"$temp_dir
88
+
tailoring_sds_nf="test_tailoring_file_sds.xml"
89
+
sed "s;TEMP_DIRECTORY_PLACEHOLDER;$temp_dir;""$srcdir/$tailoring_sds_nf">"$temp_dir/$tailoring_sds_nf"
90
+
$OSCAP info --profile "xccdf_com.example.www_profile_P1" --list-rules "$temp_dir/$tailoring_sds_nf">$stdout2>$stderr
91
+
[[ -f$stdout ]]; [[ !-s$stdout ]]; :>$stdout
92
+
grep -q "Profile 'xccdf_com.example.www_profile_P1' not found in the tailoring file. Provide the customized profile ID. Get available profiles using:""$stderr"
93
+
grep -q "$ oscap info $temp_dir/$tailoring_sds_nf""$stderr"
0 commit comments