diff --git a/test/config-map.json b/test/config-map.json index 03f283c6c4..2ddd675277 100644 --- a/test/config-map.json +++ b/test/config-map.json @@ -196,6 +196,14 @@ "ami" ] }, + "./configs/oscap-rhel8-with-xml-tailoring.json": { + "distros": [ + "rhel-8.10" + ], + "image-types": [ + "ami" + ] + }, "./configs/oscap-rhel9.json": { "distros": [ "rhel-9.4" @@ -204,6 +212,14 @@ "ami" ] }, + "./configs/oscap-rhel9-with-xml-tailoring.json": { + "distros": [ + "rhel-9.4" + ], + "image-types": [ + "ami" + ] + }, "./configs/ostree.json": { "image-types": [ "edge-commit", diff --git a/test/configs/oscap-rhel8-with-xml-tailoring.json b/test/configs/oscap-rhel8-with-xml-tailoring.json new file mode 100644 index 0000000000..9d48c911f4 --- /dev/null +++ b/test/configs/oscap-rhel8-with-xml-tailoring.json @@ -0,0 +1,32 @@ +{ + "name": "oscap-rhel8-with-xml-tailoring", + "blueprint": { + "packages": [ + { + "name": "xmlstarlet" + }, + { + "name": "openscap-utils" + }, + { + "name": "jq" + } + ], + "customizations": { + "files": [ + { + "path": "/oscap_data/tailoring.xml", + "data": "\n\n\t\n\t1\n\t\n\t\tcis_osbuild_tailoring\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\n" + } + ], + "openscap": { + "profile_id": "xccdf_org.ssgproject.content_profile_cis", + "datastream": "/usr/share/xml/scap/ssg/content/ssg-rhel8-ds.xml", + "xml_tailoring": { + "profile_id": "xccdf_org.ssgproject.content_profile_cis_osbuild_tailoring", + "filepath": "/oscap_data/tailoring.xml" + } + } + } + } +} diff --git a/test/configs/oscap-rhel9-with-xml-tailoring.json b/test/configs/oscap-rhel9-with-xml-tailoring.json new file mode 100644 index 0000000000..63bf8c3991 --- /dev/null +++ b/test/configs/oscap-rhel9-with-xml-tailoring.json @@ -0,0 +1,32 @@ +{ + "name": "oscap-rhel9-with-xml-tailoring", + "blueprint": { + "packages": [ + { + "name": "xmlstarlet" + }, + { + "name": "openscap-utils" + }, + { + "name": "jq" + } + ], + "customizations": { + "files": [ + { + "path": "/oscap_data/tailoring.xml", + "data": "\n\n\t\n\t1\n\t\n\t\tcis_osbuild_tailoring\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\n" + } + ], + "openscap": { + "profile_id": "xccdf_org.ssgproject.content_profile_cis", + "datastream": "/usr/share/xml/scap/ssg/content/ssg-rhel9-ds.xml", + "xml_tailoring": { + "profile_id": "xccdf_org.ssgproject.content_profile_cis_osbuild_tailoring", + "filepath": "/oscap_data/tailoring.xml" + } + } + } + } +}