X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fckm%2Fcapi-testcases.cpp;h=0de06f08a61e03051f5adbe7cd2dbe9f2792903f;hb=refs%2Fchanges%2F67%2F81467%2F3;hp=284b68a75e99a8725ae8bd0c5a59fb0f193c3c93;hpb=d3c8edc096df5693eb91c0d57e766de1c521f476;p=platform%2Fcore%2Ftest%2Fsecurity-tests.git diff --git a/src/ckm/capi-testcases.cpp b/src/ckm/capi-testcases.cpp index 284b68a..0de06f0 100644 --- a/src/ckm/capi-testcases.cpp +++ b/src/ckm/capi-testcases.cpp @@ -28,7 +28,6 @@ namespace { const int USER_APP = 5000; const int GROUP_APP = 5000; const char* USER_PASS = "user-pass"; -const char* TEST_LABEL = "test_label"; const char *const TEST_OBJECT1 = "OBJECT1"; const std::string TEST_ALIAS1 = aliasWithLabel(TEST_LABEL,TEST_OBJECT1); const char* TEST_SYSTEM_ALIAS = "system-alias-1"; @@ -343,7 +342,7 @@ RUNNER_TEST(T30206_certificate_list_C_API) RUNNER_CHILD_TEST(T30207_user_app_save_RSA_key_C_API) { - ScopedAccessProvider ap("mylabel"); + ScopedAccessProvider ap(TEST_LABEL); ap.allowAPI("key-manager::api-storage", "rw"); ap.applyAndSwithToUser(USER_APP, GROUP_APP); @@ -394,7 +393,7 @@ RUNNER_CHILD_TEST(T30207_user_app_save_RSA_key_C_API) RUNNER_CHILD_TEST(T30208_user_app_save_AES_key_C_API) { - AccessProvider ap("mylabel"); + AccessProvider ap(TEST_LABEL); ap.allowAPI("key-manager::api-storage", "rw"); ap.applyAndSwithToUser(USER_APP, GROUP_APP); @@ -423,7 +422,7 @@ RUNNER_CHILD_TEST(T30208_user_app_save_AES_key_C_API) RUNNER_CHILD_TEST(T30209_user_app_save_AES_key_passwd_C_API) { - AccessProvider ap("mylabel"); + AccessProvider ap(TEST_LABEL); ap.allowAPI("key-manager::api-storage", "rw"); ap.applyAndSwithToUser(USER_APP, GROUP_APP); @@ -445,7 +444,7 @@ RUNNER_CHILD_TEST(T30209_user_app_save_AES_key_passwd_C_API) RUNNER_CHILD_TEST(T30210_app_user_save_RSA_keys_exportable_flag) { - ScopedAccessProvider ap("mylabel"); + ScopedAccessProvider ap(TEST_LABEL); ap.allowAPI("key-manager::api-storage", "rw"); ap.applyAndSwithToUser(USER_APP, GROUP_APP); @@ -487,7 +486,7 @@ RUNNER_CHILD_TEST(T30210_app_user_save_RSA_keys_exportable_flag) RUNNER_CHILD_TEST(T30211_app_user_save_AES_keys_exportable_flag) { - AccessProvider ap("mylabel"); + AccessProvider ap(TEST_LABEL); ap.allowAPI("key-manager::api-storage", "rw"); ap.applyAndSwithToUser(USER_APP, GROUP_APP); @@ -800,7 +799,7 @@ RUNNER_TEST(T3042_save_get_bin_data_C_API) RUNNER_CHILD_TEST(T3043_app_user_save_bin_data_C_API) { - ScopedAccessProvider ap("mylabel"); + ScopedAccessProvider ap(TEST_LABEL); ap.allowAPI("key-manager::api-storage", "rw"); ap.applyAndSwithToUser(USER_APP, GROUP_APP); @@ -933,7 +932,7 @@ RUNNER_CHILD_TEST(T3052_CAPI_create_RSA_key) { int temp; - ScopedAccessProvider ap("mylabel"); + ScopedAccessProvider ap(TEST_LABEL); ap.allowAPI("key-manager::api-storage", "rw"); ap.applyAndSwithToUser(USER_APP, GROUP_APP); @@ -993,7 +992,7 @@ RUNNER_CHILD_TEST(T3053_CAPI_create_DSA_key) { int temp; - AccessProvider ap("mylabel"); + AccessProvider ap(TEST_LABEL); ap.allowAPI("key-manager::api-storage", "rw"); ap.applyAndSwithToUser(USER_APP, GROUP_APP); @@ -1178,7 +1177,6 @@ RUNNER_TEST(T3065_CAPI_deinit) //RUNNER_TEST_GROUP_INIT(T120_NEGATIVE_TESTS); - RUNNER_TEST_GROUP_INIT(T307_CKMC_CAPI_OCSP_TESTS); RUNNER_TEST(T3071_CAPI_init)