diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbmsatomicserviceetstest/bmsatomicserviceone/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets b/bundlemanager/bundle_standard/bundlemanager/actsbmsatomicserviceetstest/bmsatomicserviceone/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets index 23e8fe27e6556a45935a99b1cd0b63f17ee2c034..271492f5b85e9377d70b1b22d89045d6d4949ab8 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbmsatomicserviceetstest/bmsatomicserviceone/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets +++ b/bundlemanager/bundle_standard/bundlemanager/actsbmsatomicserviceetstest/bmsatomicserviceone/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets @@ -742,6 +742,7 @@ export default function getBundleInfoForSelf() { expect(data.hapModulesInfo.length).assertEqual(0); expect(data.reqPermissionDetails.length).assertEqual(2); expect(data.reqPermissionDetails[0].name).assertEqual("ohos.permission.GET_BUNDLE_INFO"); + expect(data.reqPermissionDetails[0].moduleName).assertEqual("testModule"); expect(data.reqPermissionDetails[0].reason).assertEqual("$string:permission_reason"); expect(data.reqPermissionDetails[0].reasonId).assertLarger(0); expect(data.reqPermissionDetails[0].usedScene.abilities.length).assertEqual(1); @@ -749,6 +750,7 @@ export default function getBundleInfoForSelf() { expect(data.reqPermissionDetails[0].usedScene.when).assertEqual("always"); expect(data.permissionGrantStates[0]).assertEqual(bundle.PermissionGrantState.PERMISSION_GRANTED); expect(data.reqPermissionDetails[1].name).assertEqual("ohos.permission.READ_CALENDAR"); + expect(data.reqPermissionDetails[1].moduleName).assertEqual("testModule"); expect(data.reqPermissionDetails[1].reason).assertEqual("$string:permission_reason"); expect(data.reqPermissionDetails[1].reasonId).assertLarger(0); expect(data.reqPermissionDetails[1].usedScene.abilities.length).assertEqual(1); @@ -778,6 +780,7 @@ export default function getBundleInfoForSelf() { expect(data.appInfo).assertEqual(null); expect(data.reqPermissionDetails.length).assertEqual(2); expect(data.reqPermissionDetails[0].name).assertEqual("ohos.permission.GET_BUNDLE_INFO"); + expect(data.reqPermissionDetails[0].moduleName).assertEqual("testModule"); expect(data.reqPermissionDetails[0].reason).assertEqual("$string:permission_reason"); expect(data.reqPermissionDetails[0].reasonId).assertLarger(0); expect(data.reqPermissionDetails[0].usedScene.abilities.length).assertEqual(1); @@ -785,6 +788,7 @@ export default function getBundleInfoForSelf() { expect(data.reqPermissionDetails[0].usedScene.when).assertEqual("always"); expect(data.permissionGrantStates[0]).assertEqual(bundle.PermissionGrantState.PERMISSION_GRANTED); expect(data.reqPermissionDetails[1].name).assertEqual("ohos.permission.READ_CALENDAR"); + expect(data.reqPermissionDetails[1].moduleName).assertEqual("testModule"); expect(data.reqPermissionDetails[1].reason).assertEqual("$string:permission_reason"); expect(data.reqPermissionDetails[1].reasonId).assertLarger(0); expect(data.reqPermissionDetails[1].usedScene.abilities.length).assertEqual(1); diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbmsatomicserviceetstest/bmsatomicserviceshared/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets b/bundlemanager/bundle_standard/bundlemanager/actsbmsatomicserviceetstest/bmsatomicserviceshared/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets index 23e8fe27e6556a45935a99b1cd0b63f17ee2c034..271492f5b85e9377d70b1b22d89045d6d4949ab8 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbmsatomicserviceetstest/bmsatomicserviceshared/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets +++ b/bundlemanager/bundle_standard/bundlemanager/actsbmsatomicserviceetstest/bmsatomicserviceshared/entry/src/main/ets/test/GetBundleInfoForSelf.test.ets @@ -742,6 +742,7 @@ export default function getBundleInfoForSelf() { expect(data.hapModulesInfo.length).assertEqual(0); expect(data.reqPermissionDetails.length).assertEqual(2); expect(data.reqPermissionDetails[0].name).assertEqual("ohos.permission.GET_BUNDLE_INFO"); + expect(data.reqPermissionDetails[0].moduleName).assertEqual("testModule"); expect(data.reqPermissionDetails[0].reason).assertEqual("$string:permission_reason"); expect(data.reqPermissionDetails[0].reasonId).assertLarger(0); expect(data.reqPermissionDetails[0].usedScene.abilities.length).assertEqual(1); @@ -749,6 +750,7 @@ export default function getBundleInfoForSelf() { expect(data.reqPermissionDetails[0].usedScene.when).assertEqual("always"); expect(data.permissionGrantStates[0]).assertEqual(bundle.PermissionGrantState.PERMISSION_GRANTED); expect(data.reqPermissionDetails[1].name).assertEqual("ohos.permission.READ_CALENDAR"); + expect(data.reqPermissionDetails[1].moduleName).assertEqual("testModule"); expect(data.reqPermissionDetails[1].reason).assertEqual("$string:permission_reason"); expect(data.reqPermissionDetails[1].reasonId).assertLarger(0); expect(data.reqPermissionDetails[1].usedScene.abilities.length).assertEqual(1); @@ -778,6 +780,7 @@ export default function getBundleInfoForSelf() { expect(data.appInfo).assertEqual(null); expect(data.reqPermissionDetails.length).assertEqual(2); expect(data.reqPermissionDetails[0].name).assertEqual("ohos.permission.GET_BUNDLE_INFO"); + expect(data.reqPermissionDetails[0].moduleName).assertEqual("testModule"); expect(data.reqPermissionDetails[0].reason).assertEqual("$string:permission_reason"); expect(data.reqPermissionDetails[0].reasonId).assertLarger(0); expect(data.reqPermissionDetails[0].usedScene.abilities.length).assertEqual(1); @@ -785,6 +788,7 @@ export default function getBundleInfoForSelf() { expect(data.reqPermissionDetails[0].usedScene.when).assertEqual("always"); expect(data.permissionGrantStates[0]).assertEqual(bundle.PermissionGrantState.PERMISSION_GRANTED); expect(data.reqPermissionDetails[1].name).assertEqual("ohos.permission.READ_CALENDAR"); + expect(data.reqPermissionDetails[1].moduleName).assertEqual("testModule"); expect(data.reqPermissionDetails[1].reason).assertEqual("$string:permission_reason"); expect(data.reqPermissionDetails[1].reasonId).assertLarger(0); expect(data.reqPermissionDetails[1].usedScene.abilities.length).assertEqual(1); 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 83e99c81353c86f53825b49df8e7d3ac4f1dac06..648f4bcfc0c3d34b6538897ccd3eefaa1a6a61bb 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 @@ -756,6 +756,7 @@ export default function getBundleInfoForSelf() { expect(data.hapModulesInfo.length).assertEqual(0); expect(data.reqPermissionDetails.length).assertEqual(2); expect(data.reqPermissionDetails[0].name).assertEqual("ohos.permission.GET_BUNDLE_INFO"); + expect(data.reqPermissionDetails[0].moduleName).assertEqual("testModule"); expect(data.reqPermissionDetails[0].reason).assertEqual("$string:permission_reason"); expect(data.reqPermissionDetails[0].reasonId).assertLarger(0); expect(data.reqPermissionDetails[0].usedScene.abilities.length).assertEqual(1); @@ -763,6 +764,7 @@ export default function getBundleInfoForSelf() { expect(data.reqPermissionDetails[0].usedScene.when).assertEqual("always"); expect(data.permissionGrantStates[0]).assertEqual(bundle.PermissionGrantState.PERMISSION_GRANTED); expect(data.reqPermissionDetails[1].name).assertEqual("ohos.permission.READ_CALENDAR"); + expect(data.reqPermissionDetails[1].moduleName).assertEqual("testModule"); expect(data.reqPermissionDetails[1].reason).assertEqual("$string:permission_reason"); expect(data.reqPermissionDetails[1].reasonId).assertLarger(0); expect(data.reqPermissionDetails[1].usedScene.abilities.length).assertEqual(1); @@ -792,6 +794,7 @@ export default function getBundleInfoForSelf() { expect(data.appInfo).assertEqual(null); expect(data.reqPermissionDetails.length).assertEqual(2); expect(data.reqPermissionDetails[0].name).assertEqual("ohos.permission.GET_BUNDLE_INFO"); + expect(data.reqPermissionDetails[0].moduleName).assertEqual("testModule"); expect(data.reqPermissionDetails[0].reason).assertEqual("$string:permission_reason"); expect(data.reqPermissionDetails[0].reasonId).assertLarger(0); expect(data.reqPermissionDetails[0].usedScene.abilities.length).assertEqual(1); @@ -799,6 +802,7 @@ export default function getBundleInfoForSelf() { expect(data.reqPermissionDetails[0].usedScene.when).assertEqual("always"); expect(data.permissionGrantStates[0]).assertEqual(bundle.PermissionGrantState.PERMISSION_GRANTED); expect(data.reqPermissionDetails[1].name).assertEqual("ohos.permission.READ_CALENDAR"); + expect(data.reqPermissionDetails[1].moduleName).assertEqual("testModule"); expect(data.reqPermissionDetails[1].reason).assertEqual("$string:permission_reason"); expect(data.reqPermissionDetails[1].reasonId).assertLarger(0); expect(data.reqPermissionDetails[1].usedScene.abilities.length).assertEqual(1);