Projects
Eulaceura:Factory
dim
_service:obs_scm:backport-Adapter-test-cases.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:backport-Adapter-test-cases.patch of Package dim
From 7bf8c057c27c72367bafb13c4a7e69883b6a7e29 Mon Sep 17 00:00:00 2001 From: Huaxin Lu <luhuaxin1@huawei.com> Date: Mon, 29 Apr 2024 23:45:39 +0800 Subject: [PATCH 08/28] Adapter test cases --- test/test_interface/test_dim_core_modparam.sh | 13 ++----------- test/test_interface/test_dim_monitor_modparam.sh | 5 ++--- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/test/test_interface/test_dim_core_modparam.sh b/test/test_interface/test_dim_core_modparam.sh index 67cd815..d51fc36 100644 --- a/test/test_interface/test_dim_core_modparam.sh +++ b/test/test_interface/test_dim_core_modparam.sh @@ -26,7 +26,6 @@ check_invalid_module_param() test_module_param_measure_hash() { check_valid_module_param measure_hash=sha256 - check_valid_module_param measure_hash=sm3 check_invalid_module_param measure_hash=md5 check_invalid_module_param measure_hash=abc } @@ -37,7 +36,7 @@ test_module_param_measure_pcr() check_valid_module_param measure_pcr=1 check_valid_module_param measure_pcr=11 check_valid_module_param measure_pcr=127 - check_invalid_module_param measure_pcr=128 + check_valid_module_param measure_pcr=128 check_invalid_module_param measure_pcr=-1 check_invalid_module_param measure_pcr=abc } @@ -66,13 +65,6 @@ test_module_param_measure_interval() dim_restore_baseline_and_policy } -test_module_param_measure_action() -{ - check_valid_module_param measure_action=0 - check_valid_module_param measure_action=1 - check_invalid_module_param measure_action=abc -} - test_module_param_signature() { check_valid_module_param signature=0 @@ -96,7 +88,6 @@ case_list=" test_module_param_measure_pcr \ test_module_param_measure_schedule \ test_module_param_measure_interval \ - test_module_param_measure_action \ test_module_param_signature \ test_module_param_measure_log_capacity \ " @@ -113,4 +104,4 @@ for case in $case_list; do fi done -echo "===== End testing dim_core module parameters =====" \ No newline at end of file +echo "===== End testing dim_core module parameters =====" diff --git a/test/test_interface/test_dim_monitor_modparam.sh b/test/test_interface/test_dim_monitor_modparam.sh index 1aaedf1..5ee5e17 100644 --- a/test/test_interface/test_dim_monitor_modparam.sh +++ b/test/test_interface/test_dim_monitor_modparam.sh @@ -30,7 +30,6 @@ check_invalid_module_param() test_module_param_measure_hash() { check_valid_module_param measure_hash=sha256 - check_valid_module_param measure_hash=sm3 check_invalid_module_param measure_hash=md5 check_invalid_module_param measure_hash=abc } @@ -41,7 +40,7 @@ test_module_param_measure_pcr() check_valid_module_param measure_pcr=1 check_valid_module_param measure_pcr=11 check_valid_module_param measure_pcr=127 - check_invalid_module_param measure_pcr=128 + check_valid_module_param measure_pcr=128 check_invalid_module_param measure_pcr=-1 check_invalid_module_param measure_pcr=abc } @@ -76,4 +75,4 @@ for case in $case_list; do fi done -echo "===== End testing dim_monitor module parameters =====" \ No newline at end of file +echo "===== End testing dim_monitor module parameters =====" -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2