From 87348bf76c2c59ad8d2e98222298a8b6d1dc8b3e Mon Sep 17 00:00:00 2001 From: wangkun Date: Wed, 23 Jun 2021 09:39:17 +0800 Subject: [PATCH] adjust test level Signed-off-by: wangkun --- .../test/unittest/app_conflict_test.cpp | 6 +- .../app_distributed_kv_data_manager_test.cpp | 34 +++++------ .../app_distributed_kv_store_test.cpp | 56 ++++++++--------- ...stributed_kv_data_manager_encrypt_test.cpp | 2 +- .../distributed_kv_data_manager_test.cpp | 60 +++++++++---------- .../unittest/kvstore_snapshot_client_test.cpp | 18 +++--- .../unittest/local_subscribe_store_test.cpp | 10 ++-- .../single_kvstore_client_query_test.cpp | 40 ++++++------- .../unittest/single_kvstore_client_test.cpp | 26 ++++---- .../unittest/kv_store_thread_pool_test.cpp | 2 +- 10 files changed, 127 insertions(+), 127 deletions(-) diff --git a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/app_conflict_test.cpp b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/app_conflict_test.cpp index 2ae569c50..aaa929001 100755 --- a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/app_conflict_test.cpp +++ b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/app_conflict_test.cpp @@ -142,7 +142,7 @@ void AppConflictTest::TearDown(void) * @tc.require: AR000CQDUG * @tc.author: liuyuhui */ -HWTEST_F(AppConflictTest, AppConflict001, TestSize.Level0) +HWTEST_F(AppConflictTest, AppConflict001, TestSize.Level1) { ZLOGD("AppConflict001"); EXPECT_EQ(Status::SUCCESS, statusGetKvStore) << "statusGetKvStore return wrong status"; @@ -166,7 +166,7 @@ HWTEST_F(AppConflictTest, AppConflict001, TestSize.Level0) * @tc.require: AR000CQDUG * @tc.author: liuyuhui */ -HWTEST_F(AppConflictTest, AppConflict002, TestSize.Level0) +HWTEST_F(AppConflictTest, AppConflict002, TestSize.Level1) { ZLOGD("AppConflict002"); EXPECT_EQ(Status::SUCCESS, statusGetKvStore) << "statusGetKvStore return wrong status"; @@ -197,7 +197,7 @@ HWTEST_F(AppConflictTest, AppConflict002, TestSize.Level0) * @tc.require: AR000CQDUG * @tc.author: liuyuhui */ -HWTEST_F(AppConflictTest, AppConflict003, TestSize.Level0) +HWTEST_F(AppConflictTest, AppConflict003, TestSize.Level1) { ZLOGD("app_conflict_003 start"); EXPECT_EQ(Status::SUCCESS, statusGetKvStore) << "statusGetKvStore return wrong status"; diff --git a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/app_distributed_kv_data_manager_test.cpp b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/app_distributed_kv_data_manager_test.cpp index 60ae5c5e7..83005769c 100755 --- a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/app_distributed_kv_data_manager_test.cpp +++ b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/app_distributed_kv_data_manager_test.cpp @@ -105,7 +105,7 @@ void AppDistributedKvDataManagerTest::TearDown(void) * @tc.require: AR000CCPOJ * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore001, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore001, TestSize.Level1) { std::unique_ptr notExistKvStorePtr; Status status; @@ -134,7 +134,7 @@ HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore001, TestSize.Leve * @tc.require: AR000CCPOJ * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore002, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore002, TestSize.Level1) { std::unique_ptr notExistKvStorePtr; Status status; @@ -155,7 +155,7 @@ HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore002, TestSize.Leve * @tc.require: AR000CCPOJ * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore003, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore003, TestSize.Level1) { std::unique_ptr notExistKvStorePtr; Status status; @@ -174,7 +174,7 @@ HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore003, TestSize.Leve * @tc.require: AR000CCPOJ * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore004, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore004, TestSize.Level1) { std::unique_ptr notExistKvStorePtr; Status status; @@ -193,7 +193,7 @@ HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore004, TestSize.Leve * @tc.require: AR000CCPOJ * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore005, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore005, TestSize.Level1) { std::unique_ptr notExistKvStorePtr; Status status; @@ -212,7 +212,7 @@ HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore005, TestSize.Leve * @tc.require: AR000CCPOJ * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore006, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore006, TestSize.Level1) { std::unique_ptr notExistKvStorePtr; Status status; @@ -231,7 +231,7 @@ HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore006, TestSize.Leve * @tc.require: AR000CCPOJ * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore007, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore007, TestSize.Level1) { std::unique_ptr notExistKvStorePtr; Status status; @@ -249,7 +249,7 @@ HWTEST_F(AppDistributedKvDataManagerTest, AppManagerGetKvstore007, TestSize.Leve * @tc.require: AR000CCPOJ * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvDataManagerTest, AppManagerCloseKvstore001, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, AppManagerCloseKvstore001, TestSize.Level1) { std::unique_ptr kvStorePtr; Status status; @@ -270,7 +270,7 @@ HWTEST_F(AppDistributedKvDataManagerTest, AppManagerCloseKvstore001, TestSize.Le * @tc.require: AR000CCPOJ * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvDataManagerTest, AppManagerCloseKvstore002, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, AppManagerCloseKvstore002, TestSize.Level1) { std::unique_ptr kvStorePtr; Status status; @@ -292,7 +292,7 @@ HWTEST_F(AppDistributedKvDataManagerTest, AppManagerCloseKvstore002, TestSize.Le * @tc.require: AR000CCPOJ * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvDataManagerTest, AppManagerCloseKvstore003, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, AppManagerCloseKvstore003, TestSize.Level1) { std::unique_ptr kvStorePtr = nullptr; Status stat = manager->CloseKvStore(nullptr); @@ -306,7 +306,7 @@ HWTEST_F(AppDistributedKvDataManagerTest, AppManagerCloseKvstore003, TestSize.Le * @tc.require: AR000CCPOJ * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvDataManagerTest, AppManagerDeleteKvStore001, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, AppManagerDeleteKvStore001, TestSize.Level1) { std::unique_ptr kvStorePtr; Status status; @@ -330,7 +330,7 @@ HWTEST_F(AppDistributedKvDataManagerTest, AppManagerDeleteKvStore001, TestSize.L * @tc.require: AR000CCPOJ * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvDataManagerTest, AppManagerDeleteKvStore002, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, AppManagerDeleteKvStore002, TestSize.Level1) { std::unique_ptr kvStorePtr; Status status; @@ -353,7 +353,7 @@ HWTEST_F(AppDistributedKvDataManagerTest, AppManagerDeleteKvStore002, TestSize.L * @tc.require: AR000CCPOJ * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvDataManagerTest, AppManagerDeleteKvStore003, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, AppManagerDeleteKvStore003, TestSize.Level1) { Status stat = manager->DeleteKvStore(storeId64); EXPECT_EQ(stat, Status::ERROR); @@ -366,7 +366,7 @@ HWTEST_F(AppDistributedKvDataManagerTest, AppManagerDeleteKvStore003, TestSize.L * @tc.require: AR000CCPOJ * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvDataManagerTest, AppManagerDeleteKvStore004, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, AppManagerDeleteKvStore004, TestSize.Level1) { Status stat = manager->DeleteKvStore(storeIdEmpty); EXPECT_EQ(stat, Status::INVALID_ARGUMENT); @@ -380,7 +380,7 @@ HWTEST_F(AppDistributedKvDataManagerTest, AppManagerDeleteKvStore004, TestSize.L * @tc.require: AR000CCPOJ * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvDataManagerTest, AppManagerDeleteKvStore005, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, AppManagerDeleteKvStore005, TestSize.Level1) { Status stat = manager->DeleteKvStore(storeId65); EXPECT_EQ(stat, Status::INVALID_ARGUMENT); @@ -393,7 +393,7 @@ HWTEST_F(AppDistributedKvDataManagerTest, AppManagerDeleteKvStore005, TestSize.L * @tc.require: AR000CQDTD * @tc.author: hongbo */ -HWTEST_F(AppDistributedKvDataManagerTest, GetKvStoreDiskSize001, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, GetKvStoreDiskSize001, TestSize.Level1) { uint64_t size; Status stat = manager->GetKvStoreDiskSize(storeId65, size); @@ -418,7 +418,7 @@ void CorruptionObserverImpl::OnCorruption(const std::string &appId, const std::s * @tc.require: AR000D487D * @tc.author: hongbo */ -HWTEST_F(AppDistributedKvDataManagerTest, RegisterKvStoreCorruptionObserver001, TestSize.Level0) +HWTEST_F(AppDistributedKvDataManagerTest, RegisterKvStoreCorruptionObserver001, TestSize.Level1) { auto observer = std::make_shared(); Status stat = manager->RegisterKvStoreCorruptionObserver(observer); diff --git a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/app_distributed_kv_store_test.cpp b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/app_distributed_kv_store_test.cpp index 2055dd256..5cb1421db 100755 --- a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/app_distributed_kv_store_test.cpp +++ b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/app_distributed_kv_store_test.cpp @@ -162,7 +162,7 @@ private: * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut001, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut001, TestSize.Level1) { // cover app_kvstore_put_001, app_kvstore_put_local_001, // app_kvstore_get_001, app_kvstore_get_local_001 @@ -202,7 +202,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut001, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut002, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut002, TestSize.Level1) { // cover app_kvstore_put_002, app_kvstore_put_local_002 std::unique_ptr appKvStorePtr; @@ -242,7 +242,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut002, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut003, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut003, TestSize.Level1) { // cover app_kvstore_put_003, app_kvstore_put_local_003 std::unique_ptr appKvStorePtr; @@ -282,7 +282,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut003, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut004, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut004, TestSize.Level1) { // cover app_kvstore_put_004, app_kvstore_put_local_004 std::unique_ptr appKvStorePtr; @@ -319,7 +319,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut004, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut005, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut005, TestSize.Level1) { // cover app_kvstore_put_005, app_kvstore_put_local_005 std::unique_ptr appKvStorePtr; @@ -358,7 +358,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut005, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut006, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut006, TestSize.Level1) { // cover app_kvstore_put_006, app_kvstore_put_local_006 std::unique_ptr appKvStorePtr; @@ -397,7 +397,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut006, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut007, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut007, TestSize.Level1) { // cover app_kvstore_put_007, app_kvstore_put_local_007 std::unique_ptr appKvStorePtr; @@ -442,7 +442,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut007, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut008, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut008, TestSize.Level1) { // cover app_kvstore_put_008, app_kvstore_put_local_008 std::unique_ptr appKvStorePtr; @@ -479,7 +479,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut008, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut009, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut009, TestSize.Level1) { // cover app_kvstore_put_009, app_kvstore_put_local_009 std::unique_ptr appKvStorePtr; @@ -524,7 +524,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut009, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut010, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut010, TestSize.Level1) { // cover app_kvstore_put_010, app_kvstore_put_local_010 std::unique_ptr appKvStorePtr; @@ -555,7 +555,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut010, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut011, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut011, TestSize.Level1) { // cover app_kvstore_put_011, app_kvstore_put_local_011 std::unique_ptr appKvStorePtr; @@ -596,7 +596,7 @@ std::string Generate1025KeyLen() * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut012, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut012, TestSize.Level1) { // cover app_kvstore_put_012, app_kvstore_put_local_012 std::unique_ptr appKvStorePtr; @@ -639,7 +639,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut012, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, app_kvstore_put_013, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, app_kvstore_put_013, TestSize.Level1) { // cover app_kvstore_put_013, app_kvstore_put_local_013 std::unique_ptr appKvStorePtr; @@ -670,7 +670,7 @@ HWTEST_F(AppDistributedKvStoreTest, app_kvstore_put_013, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut014, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut014, TestSize.Level1) { // cover app_kvstore_put_014, app_kvstore_put_local_014 std::unique_ptr appKvStorePtr; @@ -712,7 +712,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstorePut014, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstoreDelete001, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstoreDelete001, TestSize.Level1) { // cover app_kvstore_delete_001, app_kvstore_delete_local_001 // app_kvstore_get_002, app_kvstore_get_local_002 @@ -753,7 +753,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstoreDelete001, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstoreDelete002, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstoreDelete002, TestSize.Level1) { // cover app_kvstore_delete_002, app_kvstore_delete_local_002 std::unique_ptr appKvStorePtr; @@ -797,7 +797,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstoreDelete002, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstoreDelete003, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstoreDelete003, TestSize.Level1) { // cover app_kvstore_delete_003, app_kvstore_delete_local_003 std::unique_ptr appKvStorePtr; @@ -825,7 +825,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstoreDelete003, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGet001, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGet001, TestSize.Level1) { // cover app_kvstore_get_003, app_kvstore_get_local_003 std::unique_ptr appKvStorePtr; @@ -856,7 +856,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGet001, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGetEntries001, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGetEntries001, TestSize.Level1) { // cover app_kvstore_getentries_001, app_kvstore_getentries_local_001 std::unique_ptr appKvStorePtr; @@ -908,7 +908,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGetEntries001, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGetEntries002, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGetEntries002, TestSize.Level1) { // cover app_kvstore_getentries_002, app_kvstore_getentries_local_002 std::unique_ptr appKvStorePtr; @@ -944,7 +944,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGetEntries002, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGetEntries003, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGetEntries003, TestSize.Level1) { // cover app_kvstore_getentries_003, app_kvstore_getentries_local_003 std::unique_ptr appKvStorePtr; @@ -990,7 +990,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGetEntries003, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGetEntries004, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGetEntries004, TestSize.Level1) { // cover app_kvstore_getentries_004, app_kvstore_getentries_local_004 std::unique_ptr appKvStorePtr; @@ -1036,7 +1036,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGetEntries004, TestSize.Level0) * @tc.require: AR000CCPOL AR000CQS36 * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGetEntries005, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGetEntries005, TestSize.Level1) { // cover app_kvstore_getentries_005, app_kvstore_getentries_local_005 std::unique_ptr appKvStorePtr; @@ -1079,7 +1079,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstoreGetEntries005, TestSize.Level0) * @tc.require: AR000CCPOL * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstoreSubscribeKvStore001, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstoreSubscribeKvStore001, TestSize.Level1) { // cover app_kvstore_subscribekvstore_001, app_kvstore_subscribekvstore_003, // app_kvstore_subscribekvstore_local_001, app_kvstore_subscribekvstore_local_003 @@ -1146,7 +1146,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstoreSubscribeKvStore001, TestSize.Leve * @tc.require: AR000CCPOL * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstoreSubscribeKvStore002, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstoreSubscribeKvStore002, TestSize.Level1) { // cover app_kvstore_subscribekvstore_002, app_kvstore_subscribekvstore_local_002 std::unique_ptr appKvStorePtr; @@ -1506,7 +1506,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstoreSubscribeKvStore006, TestSize.Leve * @tc.require: AR000CCPOL * @tc.author: liqiao */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstoreSubscribeKvStore007, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstoreSubscribeKvStore007, TestSize.Level1) { // cover app_kvstore_subscribekvstore_014, app_kvstore_subscribekvstore_015, // app_kvstore_subscribekvstore_local_014, app_kvstore_subscribekvstore_local_015 @@ -1581,7 +1581,7 @@ static void InitResultSetData() * @tc.require: AR000D08KT * @tc.author: liuyuhui */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstoreResultSet001, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstoreResultSet001, TestSize.Level1) { /** * @tc.steps: step1. initialize kvstore. @@ -1623,7 +1623,7 @@ HWTEST_F(AppDistributedKvStoreTest, AppKvstoreResultSet001, TestSize.Level0) * @tc.require: AR000D08KT * @tc.author: liuyuhui */ -HWTEST_F(AppDistributedKvStoreTest, AppKvstoreResultSet002, TestSize.Level0) +HWTEST_F(AppDistributedKvStoreTest, AppKvstoreResultSet002, TestSize.Level1) { InitResultSetData(); diff --git a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/distributed_kv_data_manager_encrypt_test.cpp b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/distributed_kv_data_manager_encrypt_test.cpp index b6bbc4a51..87ee17a4a 100755 --- a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/distributed_kv_data_manager_encrypt_test.cpp +++ b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/distributed_kv_data_manager_encrypt_test.cpp @@ -103,7 +103,7 @@ void DistributedKvDataManagerEncryptTest::TearDown(void) * @tc.require: SR000D08K4 AR000D08KQ * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerEncryptTest, kvstore_ddm_createEncryptedStore_001, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerEncryptTest, kvstore_ddm_createEncryptedStore_001, TestSize.Level1) { ZLOGI("kvstore_ddm_createEncryptedStore_001 begin."); std::unique_ptr kvStorePtr; diff --git a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/distributed_kv_data_manager_test.cpp b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/distributed_kv_data_manager_test.cpp index 7bc015b03..342ac7878 100755 --- a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/distributed_kv_data_manager_test.cpp +++ b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/distributed_kv_data_manager_test.cpp @@ -129,7 +129,7 @@ void DistributedKvDataManagerTest::TearDown(void) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, GetKvStore001, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, GetKvStore001, TestSize.Level1) { ZLOGI("GetKvStore001 begin."); std::unique_ptr notExistKvStorePtr; @@ -154,7 +154,7 @@ HWTEST_F(DistributedKvDataManagerTest, GetKvStore001, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, GetKvStore002, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, GetKvStore002, TestSize.Level1) { ZLOGI("GetKvStore002 begin."); std::unique_ptr notExistKvStorePtr; @@ -175,7 +175,7 @@ HWTEST_F(DistributedKvDataManagerTest, GetKvStore002, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, GetKvStore003, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, GetKvStore003, TestSize.Level1) { ZLOGI("GetKvStore003 begin."); std::unique_ptr notExistKvStorePtr; @@ -193,7 +193,7 @@ HWTEST_F(DistributedKvDataManagerTest, GetKvStore003, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, GetKvStore004, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, GetKvStore004, TestSize.Level1) { ZLOGI("GetKvStore004 begin."); std::unique_ptr notExistKvStorePtr; @@ -211,7 +211,7 @@ HWTEST_F(DistributedKvDataManagerTest, GetKvStore004, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, GetKvStore005, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, GetKvStore005, TestSize.Level1) { ZLOGI("GetKvStore005 begin."); std::unique_ptr notExistKvStorePtr; @@ -229,7 +229,7 @@ HWTEST_F(DistributedKvDataManagerTest, GetKvStore005, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, GetKvStore006, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, GetKvStore006, TestSize.Level1) { ZLOGI("GetKvStore006 begin."); std::unique_ptr notExistKvStorePtr; @@ -247,7 +247,7 @@ HWTEST_F(DistributedKvDataManagerTest, GetKvStore006, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, GetKvStore007, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, GetKvStore007, TestSize.Level1) { ZLOGI("GetKvStore007 begin."); std::unique_ptr notExistKvStorePtr; @@ -265,7 +265,7 @@ HWTEST_F(DistributedKvDataManagerTest, GetKvStore007, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, GetAllKvStore001, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, GetAllKvStore001, TestSize.Level1) { ZLOGI("GetAllKvStore001 begin."); std::vector idList; @@ -282,7 +282,7 @@ HWTEST_F(DistributedKvDataManagerTest, GetAllKvStore001, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, GetAllKvStore002, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, GetAllKvStore002, TestSize.Level1) { ZLOGI("GetAllKvStore002 begin."); StoreId id1; @@ -336,7 +336,7 @@ HWTEST_F(DistributedKvDataManagerTest, GetAllKvStore002, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, CloseKvStore001, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, CloseKvStore001, TestSize.Level1) { ZLOGI("CloseKvStore001 begin."); std::unique_ptr kvStorePtr; @@ -357,7 +357,7 @@ HWTEST_F(DistributedKvDataManagerTest, CloseKvStore001, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, CloseKvStore002, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, CloseKvStore002, TestSize.Level1) { ZLOGI("CloseKvStore002 begin."); std::unique_ptr kvStorePtr; @@ -379,7 +379,7 @@ HWTEST_F(DistributedKvDataManagerTest, CloseKvStore002, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, CloseKvStore003, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, CloseKvStore003, TestSize.Level1) { ZLOGI("CloseKvStore003 begin."); Status stat = manager.CloseKvStore(appId, storeIdEmpty); @@ -393,7 +393,7 @@ HWTEST_F(DistributedKvDataManagerTest, CloseKvStore003, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, CloseKvStore004, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, CloseKvStore004, TestSize.Level1) { ZLOGI("CloseKvStore004 begin."); Status stat = manager.CloseKvStore(appId, storeId65); @@ -407,7 +407,7 @@ HWTEST_F(DistributedKvDataManagerTest, CloseKvStore004, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, CloseKvStore005, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, CloseKvStore005, TestSize.Level1) { ZLOGI("CloseKvStore005 begin."); Status stat = manager.CloseKvStore(appId, storeId64); @@ -421,7 +421,7 @@ HWTEST_F(DistributedKvDataManagerTest, CloseKvStore005, TestSize.Level0) * @tc.require: SR000CQDU0 AR000CSKRU * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, CloseKvStoreMulti001, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, CloseKvStoreMulti001, TestSize.Level1) { ZLOGI("CloseKvStoreMulti001 begin."); std::unique_ptr notExistKvStorePtr; @@ -452,7 +452,7 @@ HWTEST_F(DistributedKvDataManagerTest, CloseKvStoreMulti001, TestSize.Level0) * @tc.require: SR000CQDU0 AR000CSKRU * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, CloseKvStoreMulti002, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, CloseKvStoreMulti002, TestSize.Level1) { ZLOGI("CloseKvStoreMulti002 begin."); std::unique_ptr notExistKvStorePtr; @@ -496,7 +496,7 @@ HWTEST_F(DistributedKvDataManagerTest, CloseKvStoreMulti002, TestSize.Level0) * @tc.require: SR000CQDU0 AR000CSKRU * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, CloseKvStoreMulti003, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, CloseKvStoreMulti003, TestSize.Level1) { ZLOGI("CloseKvStoreMulti003 begin."); std::unique_ptr notExistKvStorePtr; @@ -564,7 +564,7 @@ HWTEST_F(DistributedKvDataManagerTest, CloseKvStoreMulti003, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, CloseAllKvStore001, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, CloseAllKvStore001, TestSize.Level1) { ZLOGI("CloseAllKvStore001 begin."); std::unique_ptr kvStorePtr1; @@ -592,7 +592,7 @@ HWTEST_F(DistributedKvDataManagerTest, CloseAllKvStore001, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, CloseAllKvStore002, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, CloseAllKvStore002, TestSize.Level1) { ZLOGI("CloseAllKvStore002 begin."); std::unique_ptr kvStorePtr1; @@ -623,7 +623,7 @@ HWTEST_F(DistributedKvDataManagerTest, CloseAllKvStore002, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, DeleteKvStore001, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, DeleteKvStore001, TestSize.Level1) { ZLOGI("DeleteKvStore001 begin."); std::unique_ptr kvStorePtr; @@ -647,7 +647,7 @@ HWTEST_F(DistributedKvDataManagerTest, DeleteKvStore001, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, DeleteKvStore002, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, DeleteKvStore002, TestSize.Level1) { ZLOGI("DeleteKvStore002 begin."); std::unique_ptr kvStorePtr; @@ -669,7 +669,7 @@ HWTEST_F(DistributedKvDataManagerTest, DeleteKvStore002, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, DeleteKvStore003, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, DeleteKvStore003, TestSize.Level1) { ZLOGI("DeleteKvStore003 begin."); Status stat = manager.DeleteKvStore(appId, storeId64); @@ -683,7 +683,7 @@ HWTEST_F(DistributedKvDataManagerTest, DeleteKvStore003, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, DeleteKvStore004, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, DeleteKvStore004, TestSize.Level1) { ZLOGI("DeleteKvStore004 begin."); Status stat = manager.DeleteKvStore(appId, storeIdEmpty); @@ -698,7 +698,7 @@ HWTEST_F(DistributedKvDataManagerTest, DeleteKvStore004, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, DeleteKvStore005, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, DeleteKvStore005, TestSize.Level1) { ZLOGI("DeleteKvStore005 begin."); Status stat = manager.DeleteKvStore(appId, storeId65); @@ -712,7 +712,7 @@ HWTEST_F(DistributedKvDataManagerTest, DeleteKvStore005, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, DeleteAllKvStore001, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, DeleteAllKvStore001, TestSize.Level1) { ZLOGI("DeleteAllKvStore001 begin."); std::unique_ptr kvStorePtr1; @@ -743,7 +743,7 @@ HWTEST_F(DistributedKvDataManagerTest, DeleteAllKvStore001, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, DeleteAllKvStore002, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, DeleteAllKvStore002, TestSize.Level1) { ZLOGI("DeleteAllKvStore002 begin."); std::unique_ptr kvStorePtr1; @@ -772,7 +772,7 @@ HWTEST_F(DistributedKvDataManagerTest, DeleteAllKvStore002, TestSize.Level0) * @tc.require: SR000CQDU0 AR000BVTDM * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, DeleteAllKvStore003, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, DeleteAllKvStore003, TestSize.Level1) { ZLOGI("DeleteAllKvStore003 begin."); Status stat = manager.DeleteAllKvStore(appId); @@ -786,7 +786,7 @@ HWTEST_F(DistributedKvDataManagerTest, DeleteAllKvStore003, TestSize.Level0) * @tc.require: SR000CQDU0 AR000CQDU1 * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, RegisterKvStoreServiceDeathRecipient001, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, RegisterKvStoreServiceDeathRecipient001, TestSize.Level1) { ZLOGI("RegisterKvStoreServiceDeathRecipient001 begin."); std::shared_ptr kvStoreDeathRecipientPtr = std::make_shared(); @@ -801,7 +801,7 @@ HWTEST_F(DistributedKvDataManagerTest, RegisterKvStoreServiceDeathRecipient001, * @tc.require: AR000CQDUS AR000CQDU1 * @tc.author: liqiao */ -HWTEST_F(DistributedKvDataManagerTest, UnRegisterKvStoreServiceDeathRecipient001, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, UnRegisterKvStoreServiceDeathRecipient001, TestSize.Level1) { ZLOGI("UnRegisterKvStoreServiceDeathRecipient001 begin."); std::shared_ptr kvStoreDeathRecipientPtr = std::make_shared(); @@ -825,7 +825,7 @@ public: * @tc.require: SR000DOH1R AR000DPSGU * @tc.author: hongbo */ -HWTEST_F(DistributedKvDataManagerTest, GetDevice001, TestSize.Level0) +HWTEST_F(DistributedKvDataManagerTest, GetDevice001, TestSize.Level1) { ZLOGI("GetDevice001 begin."); DeviceInfo info; diff --git a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/kvstore_snapshot_client_test.cpp b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/kvstore_snapshot_client_test.cpp index c92c12b64..35d8ac2b7 100755 --- a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/kvstore_snapshot_client_test.cpp +++ b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/kvstore_snapshot_client_test.cpp @@ -91,7 +91,7 @@ void KvStoreSnapshotClientTest::TearDown(void) * @tc.require: AR000C6GBG * @tc.author: liuyuhui */ -HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGet001, TestSize.Level0) +HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGet001, TestSize.Level1) { ZLOGI("KvStoreSnapshotDdmGet001 begin."); EXPECT_EQ(Status::SUCCESS, statusGetKvStore) << "statusGetKvStore return wrong status"; @@ -126,7 +126,7 @@ HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGet001, TestSize.Level0) * @tc.require: AR000C6GBG * @tc.author: liuyuhui */ -HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGet002, TestSize.Level0) +HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGet002, TestSize.Level1) { ZLOGI("KvStoreSnapshotDdmGet002 begin."); EXPECT_EQ(Status::SUCCESS, statusGetKvStore) << "statusGetKvStore return wrong status"; @@ -164,7 +164,7 @@ HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGet002, TestSize.Level0) * @tc.require: AR000C6GBG * @tc.author: liuyuhui */ -HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGet003, TestSize.Level0) +HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGet003, TestSize.Level1) { ZLOGI("KvStoreSnapshotDdmGet003 begin."); EXPECT_EQ(Status::SUCCESS, statusGetKvStore) << "statusGetKvStore return wrong status"; @@ -195,7 +195,7 @@ HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGet003, TestSize.Level0) * @tc.require: AR000C6GBG * @tc.author: liuyuhui */ -HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGetEntries001, TestSize.Level0) +HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGetEntries001, TestSize.Level1) { ZLOGI("KvStoreSnapshotDdmGetEntries001 begin."); EXPECT_EQ(Status::SUCCESS, statusGetKvStore) << "statusGetKvStore return wrong status"; @@ -248,7 +248,7 @@ HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGetEntries001, TestSize.Le * @tc.require: AR000C6GBG * @tc.author: liuyuhui */ -HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGetEntries002, TestSize.Level0) +HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGetEntries002, TestSize.Level1) { ZLOGI("KvStoreSnapshotDdmGetEntries002 begin."); EXPECT_EQ(Status::SUCCESS, statusGetKvStore) << "statusGetKvStore return wrong status"; @@ -301,7 +301,7 @@ HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGetEntries002, TestSize.Le * @tc.require: AR000C6GBG * @tc.author: liuyuhui */ -HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGetEntries003, TestSize.Level0) +HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGetEntries003, TestSize.Level1) { ZLOGI("KvStoreSnapshotDdmGetEntries003 begin."); EXPECT_EQ(Status::SUCCESS, statusGetKvStore) << "statusGetKvStore return wrong status"; @@ -354,7 +354,7 @@ HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGetEntries003, TestSize.Le * @tc.require: AR000C6GBG * @tc.author: liuyuhui */ -HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGetEntries004, TestSize.Level0) +HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGetEntries004, TestSize.Level1) { ZLOGI("KvStoreSnapshotDdmGetEntries004 begin."); EXPECT_EQ(Status::SUCCESS, statusGetKvStore) << "statusGetKvStore return wrong status"; @@ -417,7 +417,7 @@ std::string Generate1025KeyLen() * @tc.require: AR000C6GBG * @tc.author: liuyuhui */ -HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGetEntries005, TestSize.Level0) +HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGetEntries005, TestSize.Level1) { ZLOGI("KvStoreSnapshotDdmGetEntries005 begin."); EXPECT_EQ(Status::SUCCESS, statusGetKvStore) << "statusGetKvStore return wrong status"; @@ -470,7 +470,7 @@ HWTEST_F(KvStoreSnapshotClientTest, KvStoreSnapshotDdmGetEntries005, TestSize.Le * @tc.require: AR000C6GBG * @tc.author: liuyuhui */ -HWTEST_F(KvStoreSnapshotClientTest, EntryIpcInterfaceTest001, TestSize.Level0) +HWTEST_F(KvStoreSnapshotClientTest, EntryIpcInterfaceTest001, TestSize.Level1) { ZLOGI("EntryIpcInterfaceTest001 begin."); Entry entryIn, *entryOut; diff --git a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/local_subscribe_store_test.cpp b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/local_subscribe_store_test.cpp index be45fb3ed..96e118937 100755 --- a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/local_subscribe_store_test.cpp +++ b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/local_subscribe_store_test.cpp @@ -161,7 +161,7 @@ unsigned long KvStoreObserverUnitTest::GetCallCount() const * @tc.require: AR000CQDU9 AR000CQS37 * @tc.author: liuyuhui */ -HWTEST_F(LocalSubscribeStoreTest, KvStoreDdmSubscribeKvStore001, TestSize.Level0) +HWTEST_F(LocalSubscribeStoreTest, KvStoreDdmSubscribeKvStore001, TestSize.Level1) { ZLOGI("KvStoreDdmSubscribeKvStore001 begin."); EXPECT_EQ(Status::SUCCESS, statusGetKvStore) << "statusGetKvStore return wrong status"; @@ -187,7 +187,7 @@ HWTEST_F(LocalSubscribeStoreTest, KvStoreDdmSubscribeKvStore001, TestSize.Level0 * @tc.require: AR000CQDU9 AR000CQS37 * @tc.author: liuyuhui */ -HWTEST_F(LocalSubscribeStoreTest, KvStoreDdmSubscribeKvStore002, TestSize.Level0) +HWTEST_F(LocalSubscribeStoreTest, KvStoreDdmSubscribeKvStore002, TestSize.Level1) { ZLOGI("KvStoreDdmSubscribeKvStore002 begin."); EXPECT_EQ(Status::SUCCESS, statusGetKvStore) << "statusGetKvStore return wrong status"; @@ -206,7 +206,7 @@ HWTEST_F(LocalSubscribeStoreTest, KvStoreDdmSubscribeKvStore002, TestSize.Level0 * @tc.require: AR000CQDU9 AR000CQS37 * @tc.author: liuyuhui */ -HWTEST_F(LocalSubscribeStoreTest, KvStoreDdmSubscribeKvStore003, TestSize.Level0) +HWTEST_F(LocalSubscribeStoreTest, KvStoreDdmSubscribeKvStore003, TestSize.Level1) { ZLOGI("KvStoreDdmSubscribeKvStore003 begin."); EXPECT_EQ(Status::SUCCESS, statusGetKvStore) << "statusGetKvStore return wrong status"; @@ -846,7 +846,7 @@ HWTEST_F(LocalSubscribeStoreTest, KvStoreDdmSubscribeKvStore020, TestSize.Level2 * @tc.require: AR000CIFGM * @tc.author: liuyuhui */ -HWTEST_F(LocalSubscribeStoreTest, KvStoreDdmSubscribeKvStoreNotification001, TestSize.Level0) +HWTEST_F(LocalSubscribeStoreTest, KvStoreDdmSubscribeKvStoreNotification001, TestSize.Level1) { ZLOGI("KvStoreDdmSubscribeKvStoreNotification001 begin."); EXPECT_EQ(Status::SUCCESS, statusGetKvStore) << "statusGetKvStore return wrong status"; @@ -2311,7 +2311,7 @@ HWTEST_F(LocalSubscribeStoreTest, KvStoreDdmSubscribeKvStoreNotification026, Tes * @tc.require: AR000CIFGM * @tc.author: liuyuhui */ -HWTEST_F(LocalSubscribeStoreTest, ChangeNotificationMarshalling001, TestSize.Level0) +HWTEST_F(LocalSubscribeStoreTest, ChangeNotificationMarshalling001, TestSize.Level1) { ZLOGI("ChangeNotificationMarshalling001 begin."); Entry insert, update, del; diff --git a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/single_kvstore_client_query_test.cpp b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/single_kvstore_client_query_test.cpp index 3f806991b..f6ec23cd0 100755 --- a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/single_kvstore_client_query_test.cpp +++ b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/single_kvstore_client_query_test.cpp @@ -70,7 +70,7 @@ void SingleKvStoreClientQueryTest::TearDown(void) * @tc.require: AR000DPSF5 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC001, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC001, TestSize.Level1) { ZLOGD("TestQueryC001 start"); DataQuery query; @@ -90,7 +90,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC001, TestSize.Level0) * @tc.require: AR000DPSF5 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC002, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC002, TestSize.Level1) { ZLOGD("TestQueryC002 start"); DataQuery query; @@ -119,7 +119,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC002, TestSize.Level0) * @tc.require: AR000DPSF5 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC003, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC003, TestSize.Level1) { ZLOGD("TestQueryC003 start"); DataQuery query; @@ -148,7 +148,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC003, TestSize.Level0) * @tc.require: AR000DPSF5 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC004, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC004, TestSize.Level1) { ZLOGD("TestQueryC004 start"); DataQuery query; @@ -174,7 +174,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC004, TestSize.Level0) * @tc.require: AR000DPSF5 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC005, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC005, TestSize.Level1) { ZLOGD("TestQueryC005 start"); DataQuery query; @@ -200,7 +200,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC005, TestSize.Level0) * @tc.require: AR000DPSF5 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC006, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC006, TestSize.Level1) { ZLOGD("TestQueryC006 start"); DataQuery query; @@ -226,7 +226,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC006, TestSize.Level0) * @tc.require: AR000DPSF5 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC007, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC007, TestSize.Level1) { ZLOGD("TestQueryC007 start"); DataQuery query; @@ -252,7 +252,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC007, TestSize.Level0) * @tc.require: AR000DPSF5 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC008, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC008, TestSize.Level1) { ZLOGD("TestQueryC008 start"); DataQuery query; @@ -268,7 +268,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC008, TestSize.Level0) * @tc.require: AR000DPSF5 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC009, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC009, TestSize.Level1) { ZLOGD("TestQueryC009 start"); DataQuery query; @@ -297,7 +297,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC009, TestSize.Level0) * @tc.require: AR000DPSF5 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC010, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC010, TestSize.Level1) { ZLOGD("TestQueryC010 start"); DataQuery query; @@ -326,7 +326,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC010, TestSize.Level0) * @tc.require: AR000DPSF5 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC011, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC011, TestSize.Level1) { ZLOGD("TestQueryC011 start"); DataQuery query; @@ -342,7 +342,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC011, TestSize.Level0) * @tc.require: AR000DPSF5 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC012, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC012, TestSize.Level1) { ZLOGD("TestQueryC012 start"); DataQuery query; @@ -358,7 +358,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC012, TestSize.Level0) * @tc.require: AR000DPSF5 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC013, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC013, TestSize.Level1) { ZLOGD("TestQueryC013 start"); DataQuery query; @@ -376,7 +376,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC013, TestSize.Level0) * @tc.require: AR000DPSF5 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC014, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC014, TestSize.Level1) { ZLOGD("TestQueryC014 start"); DataQuery query; @@ -394,7 +394,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC014, TestSize.Level0) * @tc.require: AR000DPSF5 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC015, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC015, TestSize.Level1) { ZLOGD("TestQueryC015 start"); DataQuery query; @@ -412,7 +412,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC015, TestSize.Level0) * @tc.require: AR000DPSF5 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC016, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC016, TestSize.Level1) { ZLOGD("TestQueryC016 start"); DataQuery query; @@ -428,7 +428,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC016, TestSize.Level0) * @tc.require: SR000DPCO9 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestSingleKvStoreQueryC001, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestSingleKvStoreQueryC001, TestSize.Level1) { ZLOGD("TestSingleKvStoreQueryC001 start"); @@ -503,7 +503,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestSingleKvStoreQueryC001, TestSize.Leve * @tc.require: SR000DPCO9 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestSingleKvStoreQueryC002, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestSingleKvStoreQueryC002, TestSize.Level1) { ZLOGD("TestSingleKvStoreQueryC002 start"); @@ -580,7 +580,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestSingleKvStoreQueryC002, TestSize.Leve * @tc.require: AR000EPAMV * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC017, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC017, TestSize.Level1) { ZLOGD("TestQueryC017 start"); DataQuery query; @@ -599,7 +599,7 @@ HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC017, TestSize.Level0) * @tc.require: AR000F3PBJ * @tc.author: liuwenhui */ -HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC018, TestSize.Level0) +HWTEST_F(SingleKvStoreClientQueryTest, TestQueryC018, TestSize.Level1) { ZLOGD("TestQueryC018 start"); DataQuery query; diff --git a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/single_kvstore_client_test.cpp b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/single_kvstore_client_test.cpp index a43cea10c..8e0fcb949 100755 --- a/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/single_kvstore_client_test.cpp +++ b/frameworks/innerkitsimpl/distributeddatafwk/test/unittest/single_kvstore_client_test.cpp @@ -168,7 +168,7 @@ void KvStoreSyncCallbackTestImpl::SyncCompleted(const std::map(); auto subStatus = singleKvStorePtr->SubscribeKvStore(SubscribeType::SUBSCRIBE_TYPE_ALL, observer); @@ -290,7 +290,7 @@ HWTEST_F(SingleKvStoreClientTest, Subscribe001 ,TestSize.Level0) * @tc.require: SR000DORPS AR000DPRQ7 AR000DDPRPL * @tc.author: hongbo */ -HWTEST_F(SingleKvStoreClientTest, SyncCallback001 ,TestSize.Level0) +HWTEST_F(SingleKvStoreClientTest, SyncCallback001 ,TestSize.Level1) { EXPECT_NE(singleKvStorePtr, nullptr) << "kvStorePtr is null."; @@ -318,7 +318,7 @@ HWTEST_F(SingleKvStoreClientTest, SyncCallback001 ,TestSize.Level0) * @tc.require: SR000DORPS AR000DPRQ7 AR000DDPRPL * @tc.author: hongbo */ -HWTEST_F(SingleKvStoreClientTest, RemoveDeviceData001 ,TestSize.Level0) +HWTEST_F(SingleKvStoreClientTest, RemoveDeviceData001 ,TestSize.Level1) { EXPECT_NE(singleKvStorePtr, nullptr) << "kvStorePtr is null."; @@ -343,7 +343,7 @@ HWTEST_F(SingleKvStoreClientTest, RemoveDeviceData001 ,TestSize.Level0) * @tc.require: SR000DORPS AR000DPRQ7 AR000DDPRPL * @tc.author: hongbo */ -HWTEST_F(SingleKvStoreClientTest, SyncData001 ,TestSize.Level0) +HWTEST_F(SingleKvStoreClientTest, SyncData001 ,TestSize.Level1) { EXPECT_NE(singleKvStorePtr, nullptr) << "kvStorePtr is null."; std::string deviceId = "no_exist_device_id"; @@ -359,7 +359,7 @@ HWTEST_F(SingleKvStoreClientTest, SyncData001 ,TestSize.Level0) * @tc.require: AR000DPSF1 * @tc.author: YangLeda */ -HWTEST_F(SingleKvStoreClientTest, TestSchemaStoreC001 ,TestSize.Level0) +HWTEST_F(SingleKvStoreClientTest, TestSchemaStoreC001 ,TestSize.Level1) { std::unique_ptr schemaSingleKvStorePtr; DistributedKvDataManager manager; @@ -391,7 +391,7 @@ HWTEST_F(SingleKvStoreClientTest, TestSchemaStoreC001 ,TestSize.Level0) * @tc.require: SR000DOGQE AR000DPUAN * @tc.author: wangtao */ -HWTEST_F(SingleKvStoreClientTest, SyncData002 ,TestSize.Level0) +HWTEST_F(SingleKvStoreClientTest, SyncData002 ,TestSize.Level1) { EXPECT_NE(singleKvStorePtr, nullptr) << "kvStorePtr is null."; std::string deviceId = "no_exist_device_id"; @@ -408,7 +408,7 @@ HWTEST_F(SingleKvStoreClientTest, SyncData002 ,TestSize.Level0) * @tc.require: SR000DOGQE AR000DPUAO * @tc.author: wangtao */ -HWTEST_F(SingleKvStoreClientTest, SetSync001 ,TestSize.Level0) +HWTEST_F(SingleKvStoreClientTest, SetSync001 ,TestSize.Level1) { EXPECT_NE(singleKvStorePtr, nullptr) << "kvStorePtr is null."; KvSyncParam syncParam{ 500 }; // 500ms @@ -427,7 +427,7 @@ HWTEST_F(SingleKvStoreClientTest, SetSync001 ,TestSize.Level0) * @tc.require: SR000DOGQE AR000DPUAO * @tc.author: wangtao */ -HWTEST_F(SingleKvStoreClientTest, SetSync002 ,TestSize.Level0) +HWTEST_F(SingleKvStoreClientTest, SetSync002 ,TestSize.Level1) { EXPECT_NE(singleKvStorePtr, nullptr) << "kvStorePtr is null."; KvSyncParam syncParam2{ 50 }; // 50ms @@ -1018,7 +1018,7 @@ HWTEST_F(SingleKvStoreClientTest, SingleKvStoreTransaction002, TestSize.Level2) * @tc.require:AR000EPAM8 AR000EPAMD * @tc.author: HongBo */ -HWTEST_F(SingleKvStoreClientTest, SingleKvStoreDeviceSync001 ,TestSize.Level0) +HWTEST_F(SingleKvStoreClientTest, SingleKvStoreDeviceSync001 ,TestSize.Level1) { std::unique_ptr schemaSingleKvStorePtr; DistributedKvDataManager manager; @@ -1044,7 +1044,7 @@ HWTEST_F(SingleKvStoreClientTest, SingleKvStoreDeviceSync001 ,TestSize.Level0) * @tc.require:SR000EPA22 AR000EPAM9 * @tc.author: HongBo */ -HWTEST_F(SingleKvStoreClientTest, SingleKvStoreDeviceSync002 ,TestSize.Level0) +HWTEST_F(SingleKvStoreClientTest, SingleKvStoreDeviceSync002 ,TestSize.Level1) { std::unique_ptr schemaSingleKvStorePtr; DistributedKvDataManager manager; diff --git a/services/distributeddataservice/adapter/autils/test/unittest/kv_store_thread_pool_test.cpp b/services/distributeddataservice/adapter/autils/test/unittest/kv_store_thread_pool_test.cpp index 1369625c5..24a6e7af1 100644 --- a/services/distributeddataservice/adapter/autils/test/unittest/kv_store_thread_pool_test.cpp +++ b/services/distributeddataservice/adapter/autils/test/unittest/kv_store_thread_pool_test.cpp @@ -49,7 +49,7 @@ void KvStoreThreadPoolTest::TearDown(void) * @tc.require: AR000CQS31 * @tc.author: liqiao */ -HWTEST_F(KvStoreThreadPoolTest, TestApplyTask001, TestSize.Level0) +HWTEST_F(KvStoreThreadPoolTest, TestApplyTask001, TestSize.Level1) { auto pool = KvStoreThreadPool::GetPool(8, true); int var = 0; -- Gitee