From eb33e48d5ef90da4dd8a45555f979d929e18ad19 Mon Sep 17 00:00:00 2001 From: liliqia Date: Thu, 16 Oct 2025 09:33:34 +0800 Subject: [PATCH] update oe_test_update-crypto-policies.sh --- .../oe_test_update-crypto-policies.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/testcases/system-test/system-integration/os-basic/oe_test_update-crypto-policies/oe_test_update-crypto-policies.sh b/testcases/system-test/system-integration/os-basic/oe_test_update-crypto-policies/oe_test_update-crypto-policies.sh index 3137088f4..eda8f54b0 100644 --- a/testcases/system-test/system-integration/os-basic/oe_test_update-crypto-policies/oe_test_update-crypto-policies.sh +++ b/testcases/system-test/system-integration/os-basic/oe_test_update-crypto-policies/oe_test_update-crypto-policies.sh @@ -21,6 +21,7 @@ source "${OET_PATH}"/libs/locallibs/common_lib.sh function pre_test() { LOG_INFO "Start to prepare the test environment." + DNF_INSTALL "crypto-policies-scripts" update-crypto-policies --set DEFAULT LOG_INFO "End to prepare the test environment." } @@ -33,14 +34,22 @@ function run_test() { CHECK_RESULT $? 0 0 "update-crypto-policies error" update-crypto-policies --show |grep LEGACY CHECK_RESULT $? 0 0 "update-crypto-policies error" + update-crypto-policies --is-applied + CHECK_RESULT $? 0 0 "Crypto policy is not applied" + update-crypto-policies --check + CHECK_RESULT $? 0 0 "Crypto policy files do not match" + update-crypto-policies --set LEGACY --no-reload + CHECK_RESULT $? 0 0 "update-crypto-policies set LEGACY with no-reload failed" + update-crypto-policies --help | grep -i usage + CHECK_RESULT $? 0 0 "update-crypto-policies help failed" LOG_INFO "End to run test." } function post_test() { LOG_INFO "Start to restore the test environment." update-crypto-policies --set DEFAULT + DNF_REMOVE "$@" LOG_INFO "End to restore the test environment." } main "$@" - -- Gitee