From a65429aa61acbd20a4b3d438f4ca7ec3901483d8 Mon Sep 17 00:00:00 2001 From: jidong Date: Sun, 30 Jul 2023 21:07:28 +0800 Subject: [PATCH] remove APP_ACCOUNT_AUTHORIZATION extension type Signed-off-by: jidong Change-Id: I910508386fdcfc087f78dd2bee32b67d7e20d9be --- .../ets/test/GetBundleInfoForSelf.test.ets | 28 ++++--------------- 1 file changed, 6 insertions(+), 22 deletions(-) diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets index 1c867c86a..9c21192fe 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets @@ -585,20 +585,15 @@ export default function getBundleInfoForSelf() { expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.DRIVER) count = count + 14; break; - case 'appAccountAuthorization': - console.info("appAccountAuthorization" + JSON.stringify(extensionList[i].extensionAbilityType)); - expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.APP_ACCOUNT_AUTHORIZATION) - count = count + 15; - break; case 'push': console.info("push" + JSON.stringify(extensionList[i].extensionAbilityType)); expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.PUSH) - count = count + 16; + count = count + 15; break; } console.info("count" + JSON.stringify(count)); } - expect(count).assertEqual(136); + expect(count).assertEqual(120); expect(data.hapModulesInfo[0].metadata.length).assertEqual(0); expect(data.reqPermissionDetails.length).assertEqual(0); expect(data.permissionGrantStates.length).assertEqual(0); @@ -726,20 +721,15 @@ export default function getBundleInfoForSelf() { expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.DRIVER) count = count + 14; break; - case 'appAccountAuthorization': - console.info("appAccountAuthorization" + JSON.stringify(extensionList[i].extensionAbilityType)); - expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.APP_ACCOUNT_AUTHORIZATION) - count = count + 15; - break; case 'push': console.info("push" + JSON.stringify(extensionList[i].extensionAbilityType)); expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.PUSH) - count = count + 16; + count = count + 15; break; } console.info("count" + JSON.stringify(count)); } - expect(count).assertEqual(136); + expect(count).assertEqual(120); expect(data.hapModulesInfo[0].metadata.length).assertEqual(0); expect(data.reqPermissionDetails.length).assertEqual(0); expect(data.permissionGrantStates.length).assertEqual(0); @@ -1386,21 +1376,15 @@ export default function getBundleInfoForSelf() { expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.DRIVER) count = count + 14; break; - case 'appAccountAuthorization': - console.info("appAccountAuthorization" + JSON.stringify(extensionList[i].extensionAbilityType)); - expect(extensionList[i].extensionAbilityType) - .assertEqual(bundle.ExtensionAbilityType.APP_ACCOUNT_AUTHORIZATION) - count = count + 15; - break; case 'push': console.info("push" + JSON.stringify(extensionList[i].extensionAbilityType)); expect(extensionList[i].extensionAbilityType).assertEqual(bundle.ExtensionAbilityType.PUSH) - count = count + 16; + count = count + 15; break; } console.info("count" + JSON.stringify(count)); } - expect(count).assertEqual(136); + expect(count).assertEqual(120); expect(data.hapModulesInfo[0].metadata.length).assertEqual(0); expect(data.reqPermissionDetails.length).assertEqual(0); expect(data.permissionGrantStates.length).assertEqual(0); -- GitLab