CKM: Fix T3203_CAPI_lock_database 36/56236/1
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 5 Jan 2016 12:28:00 +0000 (13:28 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 5 Jan 2016 13:18:42 +0000 (14:18 +0100)
[Problem] Test is failing because ordinary user attempts to lock its database.
[Solution] Test is modified so that it's executed as root.

[Verification] Run ckm-tests --group=T320_CAPI_EMPTY_DATABASE

Change-Id: I5dd9893792be4dbcc4e2161dbe48f99bafcbc7dc

src/ckm/capi-testcases.cpp

index 49001e2..bb1f40c 100644 (file)
@@ -2376,9 +2376,6 @@ RUNNER_CHILD_TEST(T3202_CAPI_get_data_from_empty_database)
 RUNNER_CHILD_TEST(T3203_CAPI_lock_database)
 {
        ScopedDBUnlock unlock(USER_APP, USER_PASS);
-       ScopedAccessProvider ap(TEST_LABEL);
-       ap.allowAPI("key-manager::api-storage", "rw");
-       ap.applyAndSwithToUser(USER_APP, GROUP_APP);
 
        int temp;
        RUNNER_ASSERT_MSG( CKMC_ERROR_NONE == (temp = ckmc_lock_user_key(USER_APP)),