From a55bf9a177ec4b3f4132ee86a81d68911f00192f Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Thu, 4 Jul 2024 16:51:49 +0200 Subject: [PATCH] test: update path to tailoring file in api tests See https://github.com/osbuild/images/pull/752 and https://github.com/osbuild/images/commit/7bd70d828ee7dc066a4c529cb2b8eb8f39ef0a06 --- test/cases/api/common/common.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/cases/api/common/common.sh b/test/cases/api/common/common.sh index f2051415cf..9aa79fe126 100644 --- a/test/cases/api/common/common.sh +++ b/test/cases/api/common/common.sh @@ -203,11 +203,12 @@ function verify_openscap_customization { # NOTE: We are only checking the creation of the tailoring file and ensuring it exists # since running openscap tests here requires more memory and causes some out-of-memory issues. local tailoring_file_content - tailoring_file_content=$($_ssh cat /usr/share/xml/osbuild-openscap-data/tailoring.xml \ + tailoring_file_path="/oscap_data/tailoring.xml" + tailoring_file_content=$($_ssh cat "${tailoring_file_path}" \ | grep 'idref="xccdf_org.ssgproject.content_rule_rpm_verify_permissions" selected="false"' -c ) if [[ "$tailoring_file_content" -eq 0 ]]; then - echo "File /usr/share/xml/osbuild-openscap-data/tailoring.xml has wrong content" + echo "File ${tailoring_file_path} has wrong content" _error=1 fi