From: Krzysztof Malysa Date: Fri, 14 Feb 2025 16:37:23 +0000 (+0100) Subject: Fix security_manager_09b_install_many_apps_in_single_request_duplicated_ids X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ed2df6d4afd58c4bde2cb7b8a99a9cb4ed9d45d8;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git Fix security_manager_09b_install_many_apps_in_single_request_duplicated_ids Change-Id: I8230c35fcd8d2093963311e9ccc4188d6c74f722 --- diff --git a/src/security-manager-tests/run-security-manager-no-smack-tests.sh b/src/security-manager-tests/run-security-manager-no-smack-tests.sh index c56fc5fa..1584a18a 100644 --- a/src/security-manager-tests/run-security-manager-no-smack-tests.sh +++ b/src/security-manager-tests/run-security-manager-no-smack-tests.sh @@ -59,6 +59,7 @@ required=( security_manager_07b_user_add_offline security_manager_08_user_double_add_double_remove security_manager_09a_install_many_apps_in_single_request + security_manager_09b_install_many_apps_in_single_request_duplicated_ids security_manager_09c_update_many_apps_in_single_request_hybrid_package security_manager_09d_uninstall_app_from_hybrid_package security_manager_09e_update_app_nonhybrid_package diff --git a/src/security-manager-tests/test_cases.cpp b/src/security-manager-tests/test_cases.cpp index a6fe8f47..cd18ef34 100644 --- a/src/security-manager-tests/test_cases.cpp +++ b/src/security-manager-tests/test_cases.cpp @@ -550,12 +550,14 @@ RUNNER_CHILD_TEST(security_manager_09a_install_many_apps_in_single_request) RUNNER_CHILD_TEST(security_manager_09b_install_many_apps_in_single_request_duplicated_ids) { AppInstallHelperExt app("sm_test_09b"); - { - ScopedInstaller appsInstall({app.getAppId(), app.getAppId()}, app.getPkgId()); - app.checkAfterInstall(); - } - app.checkAfterUninstall(); + InstallRequest instReq; + instReq.setPkgId(app.getPkgId()); + instReq.setAppId(app.getAppId()); + instReq.nextApp(); + instReq.setAppId(app.getAppId()); + + Api::install(instReq, SECURITY_MANAGER_ERROR_INPUT_PARAM); } RUNNER_CHILD_TEST(security_manager_09c_update_many_apps_in_single_request_hybrid_package)