diff --git a/account/OsAccountTest_js/signature/openharmony_sx.p7b b/account/OsAccountTest_js/signature/openharmony_sx.p7b index cc53179a48f88f20acc379c138a001e9a15838f6..e0dca6e8365d131643cf84572e8cac59d7a6f636 100755 Binary files a/account/OsAccountTest_js/signature/openharmony_sx.p7b and b/account/OsAccountTest_js/signature/openharmony_sx.p7b differ diff --git a/account/appaccount/actsaccountoperatetest/signature/openharmony_sx.p7b b/account/appaccount/actsaccountoperatetest/signature/openharmony_sx.p7b index cc53179a48f88f20acc379c138a001e9a15838f6..078b44ea6250a6a1a955cf3fdcfac4b435d49843 100644 Binary files a/account/appaccount/actsaccountoperatetest/signature/openharmony_sx.p7b and b/account/appaccount/actsaccountoperatetest/signature/openharmony_sx.p7b differ diff --git a/account/appaccount/actsaccounttest/signature/openharmony_sx.p7b b/account/appaccount/actsaccounttest/signature/openharmony_sx.p7b index cc53179a48f88f20acc379c138a001e9a15838f6..69d44e543e5000de7e08c0610f4a40b00be59e52 100755 Binary files a/account/appaccount/actsaccounttest/signature/openharmony_sx.p7b and b/account/appaccount/actsaccounttest/signature/openharmony_sx.p7b differ diff --git a/account/appaccount/actsaccounttest/src/main/js/test/NoPermission.test.js b/account/appaccount/actsaccounttest/src/main/js/test/NoPermission.test.js index b901cce6d59a1e1fcb63e2ebd6f279ae07d3c406..282f93b2c5c67332abeb731c1ef3fcebaa73a4af 100755 --- a/account/appaccount/actsaccounttest/src/main/js/test/NoPermission.test.js +++ b/account/appaccount/actsaccounttest/src/main/js/test/NoPermission.test.js @@ -186,7 +186,7 @@ export default function ActsAccountNoPermission() { /* * @tc.number : ActsAccountNoPermission_0700 * @tc.name : getAllAccounts callback - * @tc.desc : This application gets its own application information after adding an account without permission + * @tc.desc : This application gets its own application information after adding an account permission */ it('ActsAccountNoPermission_0700', 0, async function (done) { console.debug("====>ActsAccountNoPermission_0700 start===="); @@ -213,7 +213,7 @@ export default function ActsAccountNoPermission() { /* * @tc.number : ActsAccountNoPermission_0800 * @tc.name : getAllAccounts promise - * @tc.desc : This application gets its own application information after adding an account without permission + * @tc.desc : This application gets its own application information after adding an account permission */ it('ActsAccountNoPermission_0800', 0, async function (done) { console.debug("====>ActsAccountNoPermission_0800 start===="); @@ -237,5 +237,64 @@ export default function ActsAccountNoPermission() { done(); } }); + + /* + * @tc.number : ActsAccountNoPermission_0900 + * @tc.name : getAllAccounts callback + * @tc.desc : This application gets its own application information after adding an account permission + */ + it('ActsAccountNoPermission_0900', 0, async function (done) { + console.debug("====>ActsAccountNoPermission_0900 start===="); + var appAccountManager = account.createAppAccountManager(); + console.debug("====>creat finish===="); + var selfBundle = "com.example.actsaccounttest"; + appAccountManager.addAccount("ActsAccountNoPermission_0900", (err)=>{ + console.debug("====>add account 0900 err:" + JSON.stringify(err)); + expect(err).assertEqual(null); + appAccountManager.getAllAccounts("com.example.accountauthenticator", (err, data)=>{ + console.debug("====>getAllAccounts 0900 err:" + JSON.stringify(err)); + expect(err.code).assertEqual(account.ResultCode.ERROR_PERMISSION_DENIED); + appAccountManager.deleteAccount("ActsAccountNoPermission_0900", (err)=>{ + console.debug("====>delete account 0900 err:" + JSON.stringify(err)); + expect(err).assertEqual(null); + console.debug("====>ActsAccountNoPermission_0900 end===="); + done(); + }); + }) + }); + }); + + /* + * @tc.number : ActsAccountNoPermission_1000 + * @tc.name : getAllAccounts promise + * @tc.desc : This application gets its own application information after adding an account permission + */ + it('ActsAccountNoPermission_1000', 0, async function (done) { + console.debug("====>ActsAccountNoPermission_1000 start===="); + var appAccountManager = account.createAppAccountManager(); + console.debug("====>creat finish===="); + console.debug("====>add account 1000 start===="); + try{ + await appAccountManager.addAccount("ActsAccountNoPermission_1000"); + }catch(err){ + console.error("====>addAccount 1000 err:" + JSON.stringify(err)); + expect().assertFalse(); + done(); + } + console.debug("====>getAllAccounts 1000 start===="); + try{ + var data = await appAccountManager.getAllAccounts("com.example.accountauthenticator"); + console.debug("====>getAll_promise_nopermission data:" + JSON.stringify(data)) + expect().assertFalse(); + done(); + } + catch(err){ + console.error("====>getAllAccounts 1000 err:" + JSON.stringify(err)); + expect(err.code).assertEqual(account.ResultCode.ERROR_PERMISSION_DENIED); + await appAccountManager.deleteAccount("ActsAccountNoPermission_1000"); + console.debug("====>ActsAccountNoPermission_1000 end===="); + done(); + } + }); }) } \ No newline at end of file diff --git a/account/appaccount/actsaccounttstest/signature/openharmony_sx.p7b b/account/appaccount/actsaccounttstest/signature/openharmony_sx.p7b index 7ffcdc78527c5c1aa24520ab7e913c5f47c703f0..e2ca3b9f4f3745e0968010df7ac1d0a14d3afaa1 100644 Binary files a/account/appaccount/actsaccounttstest/signature/openharmony_sx.p7b and b/account/appaccount/actsaccounttstest/signature/openharmony_sx.p7b differ diff --git a/account/appaccount/actssetcheckdatasyncenable/signature/openharmony_sx.p7b b/account/appaccount/actssetcheckdatasyncenable/signature/openharmony_sx.p7b index cc53179a48f88f20acc379c138a001e9a15838f6..cfc0b86f4e83232fbd501cce7062b1cbc2306cc0 100644 Binary files a/account/appaccount/actssetcheckdatasyncenable/signature/openharmony_sx.p7b and b/account/appaccount/actssetcheckdatasyncenable/signature/openharmony_sx.p7b differ diff --git a/account/appaccount/actssetchecksyncenable/signature/openharmony_sx.p7b b/account/appaccount/actssetchecksyncenable/signature/openharmony_sx.p7b index cc53179a48f88f20acc379c138a001e9a15838f6..8d9fb4d9c040d9b96c1188b2865f0b1d559a93e9 100755 Binary files a/account/appaccount/actssetchecksyncenable/signature/openharmony_sx.p7b and b/account/appaccount/actssetchecksyncenable/signature/openharmony_sx.p7b differ diff --git a/account/appaccount/sceneProject/actsaccountaccessibleFirst/signature/openharmony_sx.p7b b/account/appaccount/sceneProject/actsaccountaccessibleFirst/signature/openharmony_sx.p7b index cc53179a48f88f20acc379c138a001e9a15838f6..73ab4a4073548b689cff077108966e51f7b55c88 100755 Binary files a/account/appaccount/sceneProject/actsaccountaccessibleFirst/signature/openharmony_sx.p7b and b/account/appaccount/sceneProject/actsaccountaccessibleFirst/signature/openharmony_sx.p7b differ diff --git a/account/appaccount/sceneProject/actsaccountaccessibleSecond/signature/openharmony_sx.p7b b/account/appaccount/sceneProject/actsaccountaccessibleSecond/signature/openharmony_sx.p7b index 9be1e98fa4c0c28ca997ed660112fa16b194f0f5..7fbd5a3ddd87e7d6a86987d197890e1672b5f491 100755 Binary files a/account/appaccount/sceneProject/actsaccountaccessibleSecond/signature/openharmony_sx.p7b and b/account/appaccount/sceneProject/actsaccountaccessibleSecond/signature/openharmony_sx.p7b differ diff --git a/account/appaccount/sceneProject/actsaccountauthenticator/signature/openharmony_sx.p7b b/account/appaccount/sceneProject/actsaccountauthenticator/signature/openharmony_sx.p7b index cc53179a48f88f20acc379c138a001e9a15838f6..ff38c841949da3a4f921231edb3f9627aefe9004 100644 Binary files a/account/appaccount/sceneProject/actsaccountauthenticator/signature/openharmony_sx.p7b and b/account/appaccount/sceneProject/actsaccountauthenticator/signature/openharmony_sx.p7b differ diff --git a/account/appaccount/sceneProject/actsaccountoauthtoken/signature/openharmony_sx.p7b b/account/appaccount/sceneProject/actsaccountoauthtoken/signature/openharmony_sx.p7b index 9be1e98fa4c0c28ca997ed660112fa16b194f0f5..2e55e51cd3606a3a192f0b4de4f46246e1338ae3 100644 Binary files a/account/appaccount/sceneProject/actsaccountoauthtoken/signature/openharmony_sx.p7b and b/account/appaccount/sceneProject/actsaccountoauthtoken/signature/openharmony_sx.p7b differ diff --git a/account/appaccount/sceneProject/actsaccountsceneaccessible/signature/openharmony_sx.p7b b/account/appaccount/sceneProject/actsaccountsceneaccessible/signature/openharmony_sx.p7b index 9be1e98fa4c0c28ca997ed660112fa16b194f0f5..670df9dcbb8239594450cae8ead7d07689c5543a 100755 Binary files a/account/appaccount/sceneProject/actsaccountsceneaccessible/signature/openharmony_sx.p7b and b/account/appaccount/sceneProject/actsaccountsceneaccessible/signature/openharmony_sx.p7b differ diff --git a/account/appaccount/sceneProject/actsaccountsceneonoff/signature/openharmony_sx.p7b b/account/appaccount/sceneProject/actsaccountsceneonoff/signature/openharmony_sx.p7b index 9be1e98fa4c0c28ca997ed660112fa16b194f0f5..bb0ee316ebc5abcf7d60f7780fb6591a7272527e 100755 Binary files a/account/appaccount/sceneProject/actsaccountsceneonoff/signature/openharmony_sx.p7b and b/account/appaccount/sceneProject/actsaccountsceneonoff/signature/openharmony_sx.p7b differ diff --git a/account/appaccount/sceneProject/actsscenegetallaccounts/signature/openharmony_sx.p7b b/account/appaccount/sceneProject/actsscenegetallaccounts/signature/openharmony_sx.p7b index 9be1e98fa4c0c28ca997ed660112fa16b194f0f5..28a9594f76e79fd9c606de495ed42c4a6298e309 100755 Binary files a/account/appaccount/sceneProject/actsscenegetallaccounts/signature/openharmony_sx.p7b and b/account/appaccount/sceneProject/actsscenegetallaccounts/signature/openharmony_sx.p7b differ diff --git a/account/osaccount/actsosaccountthirdpartytest/signature/openharmony_sx.p7b b/account/osaccount/actsosaccountthirdpartytest/signature/openharmony_sx.p7b index cc53179a48f88f20acc379c138a001e9a15838f6..11fc50c0bb9c6b74a33cec11bc1655bc5fd8178e 100755 Binary files a/account/osaccount/actsosaccountthirdpartytest/signature/openharmony_sx.p7b and b/account/osaccount/actsosaccountthirdpartytest/signature/openharmony_sx.p7b differ