Changed returned error code from setPermission 68/147768/2
authorTomasz Swierczek <t.swierczek@samsung.com>
Tue, 5 Sep 2017 12:35:54 +0000 (14:35 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Thu, 7 Sep 2017 06:27:02 +0000 (08:27 +0200)
Change-Id: I5d143aa16c2a862f915489ee95de28e10d248330

src/ckm/privileged/capi-access_control.cpp

index 2b58371..f0328ed 100644 (file)
@@ -132,7 +132,7 @@ RUNNER_CHILD_TEST(T3005_manager_deny_access_non_existing_access)
 
     // deny non existing access to existing alias
     int ret = ckmc_set_permission(TEST_ALIAS, "label", CKMC_PERMISSION_NONE);
-    RUNNER_ASSERT_MSG(CKMC_ERROR_INVALID_PARAMETER == ret,
+    RUNNER_ASSERT_MSG(CKMC_ERROR_NONE == ret,
                          "Denying non existing access returned: " << CKMCErrorToString(ret));
 }
 
@@ -586,7 +586,7 @@ RUNNER_TEST(T3104_control_deny_access_non_existing)
 }
 
 // tries to deny non existing access
-RUNNER_TEST(T3105_control_deny_access_non_existing_access, RemoveDataEnv<APP_1>)
+RUNNER_TEST(T3105_control_remove_non_existing_access, RemoveDataEnv<APP_1>)
 {
     // prepare: add data
     {
@@ -595,7 +595,7 @@ RUNNER_TEST(T3105_control_deny_access_non_existing_access, RemoveDataEnv<APP_1>)
     }
 
     int ret = ckmc_set_permission_by_adm(APP_1, aliasWithLabel(APP_LABEL_1, TEST_ALIAS).c_str(), APP_LABEL_2, CKMC_PERMISSION_NONE);
-    RUNNER_ASSERT_MSG(CKMC_ERROR_INVALID_PARAMETER == ret,
+    RUNNER_ASSERT_MSG(CKMC_ERROR_NONE == ret,
                       "Denying non existing access returned: " << CKMCErrorToString(ret));
 }