diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbmsaccesstokentest/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/actsbmsaccesstokentest/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..72278b1dc28d5d0d5854ac79b6a006f4718b1346 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/actsbmsaccesstokentest/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/actsbmsaccesstokentest/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/test/ActsBmsEtsUnPermissionTest.test.ets b/bundlemanager/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/test/ActsBmsEtsUnPermissionTest.test.ets index d2f2e553b224e3b19f10abe59fa02c4bac90fc16..3f6fd39ff1c655f96f45c56c9ec1132b149e0908 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/test/ActsBmsEtsUnPermissionTest.test.ets +++ b/bundlemanager/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/entry/src/main/ets/test/ActsBmsEtsUnPermissionTest.test.ets @@ -24,7 +24,7 @@ const SELF_BUNDLENAME = "com.example.actsbmsetsunpermissiontest"; const SELF_ABILITYNAME = "com.example.actsbmsetsunpermissiontest.MainAbility"; const BUNDLE_NAME_OTHER = "com.example.myapplication1"; const ABILITIY_NAME_OTHER = "com.example.myapplication1.MainAbility"; -const BUNDLE_NAME1 = "ohos.acts.bundle.stage"; +const BUNDLE_NAME1 = "com.acts.bundle.stage"; const ABILITY_NAME1 = "ExtensionAbility1"; let userId = 0; diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..9d93ecb1333c7a627a5d5334c485351e32a6fbff 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/actsbmsetsunpermissiontest/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbmsgetinfostest/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/actsbmsgetinfostest/signature/openharmony_sx.p7b index 4c01d630ea58ac5f91bdfd193db0677651caf9bd..c05e4621b7441ad140f0e88922d36f3c6028400b 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/actsbmsgetinfostest/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/actsbmsgetinfostest/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbmshapmoduletest/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/actsbmshapmoduletest/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..5cd5f1e420c84f22677f58b189e684496d8a683a 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/actsbmshapmoduletest/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/actsbmshapmoduletest/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbmsjstest/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/actsbmsjstest/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..85c6194f5d700181b4c07b9e7cdbe2205e010526 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/actsbmsjstest/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/actsbmsjstest/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbmsjsunpermissiontest/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/actsbmsjsunpermissiontest/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..4ed9953ecde0b71756e661dda89defe2e081dbc5 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/actsbmsjsunpermissiontest/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/actsbmsjsunpermissiontest/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbmsmetadatatest/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/actsbmsmetadatatest/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..b912daee26e2c044b24e3dd5dd4d2cb245a0ffa0 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/actsbmsmetadatatest/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/actsbmsmetadatatest/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/Test.json b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/Test.json index b27900711d5b9b94cd3ebd4a37a6150272aa3c3c..612c0c9a35219e0430eb99d21cc5ff2eb6874eff 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/Test.json +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/Test.json @@ -64,7 +64,7 @@ "bm uninstall -n com.example.myapplication5", "bm uninstall -n com.example.myapplication6", "bm uninstall -n com.example.third7", - "bm uninstall -n ohos.acts.bundle.stage" + "bm uninstall -n com.acts.bundle.stage" ] } ] diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/List.test.ets b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/List.test.ets index df14855fd07b815ca64c830cd327146735776db0..7bdefdf5c76f3550bf4786f8b71cd7b426b55d55 100644 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/List.test.ets +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/entry/src/main/ets/test/List.test.ets @@ -34,14 +34,12 @@ export default function testsuite() { getNameForUid(); getQueryAbilityByWant(); isDefaultApplicationTest(); - //RM.007 getApplicationInfoJsunit(); getAllAppInfoJsunit(); - //RM.006 getabilityInfo(); - //RM.014 + getAbilityLabelJsUnit(); - //RM.017 + isAbilityEnableETSUnit(); isApplicationEnabledETSUnit(); } \ No newline at end of file diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/signature/openharmony_sx.p7b index 4c01d630ea58ac5f91bdfd193db0677651caf9bd..7684f1e1d57da6e45e3b3e030a90cf0563098ee4 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanageretstest/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/Application/AbilityStage.ts b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/Application/AbilityStage.ts index 51cb02ba3f5c7011c1cd433d07deebd47a195704..cbcc939ff5d038c8e22947c2f0186d3407e691bc 100755 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/Application/AbilityStage.ts +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/Application/AbilityStage.ts @@ -1,4 +1,4 @@ -import AbilityStage from "@ohos.application.AbilityStage" +import AbilityStage from "@ohos.app.ability.AbilityStage" export default class MyAbilityStage extends AbilityStage { onCreate() { diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/MainAbility/MainAbility.ts b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/MainAbility/MainAbility.ts index 87b6463a2283b59f971ffea6a3011377c55bc1f3..48fba3a5f5d97bbd81eae4026e663df99f242d2d 100755 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/MainAbility/MainAbility.ts +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/MainAbility/MainAbility.ts @@ -1,4 +1,4 @@ -import Ability from '@ohos.application.Ability' +import Ability from '@ohos.app.ability.UIAbility' export default class MainAbility extends Ability { onCreate(want,launchParam){ diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/TestAbility/TestAbility.ts b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/TestAbility/TestAbility.ts index fb7ef2b1e9e7573f5679e287d371c8acab61d2e8..3e2d601de1553cc7d790ee83b23414b26a47913b 100755 --- a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/TestAbility/TestAbility.ts +++ b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/entry/src/main/ets/TestAbility/TestAbility.ts @@ -1,4 +1,4 @@ -import Ability from '@ohos.application.Ability' +import Ability from '@ohos.app.ability.UIAbility' export default class TestAbility extends Ability { onCreate(want, launchParam) { diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..c4fcd77fde1e40461902b9c5cea99c1b1e1d1851 100755 Binary files a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagerstagetest/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagertest/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagertest/signature/openharmony_sx.p7b index 4c01d630ea58ac5f91bdfd193db0677651caf9bd..482af640d6d8d97d5210b48a0b7e0387d1725727 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagertest/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/actsbundlemanagertest/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..e74ea0fa6cf1a532cf92435e68912f8e9b9a72df 100755 Binary files a/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenfive/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenfive/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..1700b2c6d6cc85b49e2a35b4cfc44bf8d16dfd3b 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenfive/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenfive/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenfour/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenfour/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..89d3e786e91f384352520bc2a40c1424cdca8b38 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenfour/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenfour/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenone/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenone/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..baa79b4b637782d002da11e4dec5b50589c5f275 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenone/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenone/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenthree/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenthree/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..d7ef3c08e1ff3a2578fae634faa07d7d158ff0af 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenthree/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokenthree/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokentwo/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokentwo/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..04ebe2be5581d880aafb4c7191e70470b137570f 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokentwo/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsaccesstokentwo/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsfirstright/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsfirstright/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..07932de935b8f8b49e0fe83e4924e385785ce212 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsfirstright/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsfirstright/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..f256d04a10cfaafc89b22cc6420f1d59fe379b3f 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfifthscene/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/signature/openharmony_sx.p7b index 53fd05faca9d962dcc757015c55d08da65eea0e1..bc40539c79423307c7c7db9d2dd69d39044233f4 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstscene/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..26e8c02d7e3df9962b3666e32a76427ccf9e2775 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfirstsceneupdate/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..522dcd4640aad4d425504fb083402da62c945db2 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosfourthscene/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfoshapc/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfoshapc/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..d1df1d16cef0246b47ef2ea52e15934e702686bd 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfoshapc/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfoshapc/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..da7843bd1f7b4cb170657252faec365cdb13ea28 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosjsscene/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..f729f33d07dcc52141af9b9e66d0d596f9ed176e 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystem/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystemtwo/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystemtwo/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..87e31dafb59350afd7659698f929c0d17c76fa32 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystemtwo/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenesystemtwo/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..832c25378506c2ae1f53dcb5d2ac3ed6ab445f57 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosscenevendor/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..965b1d513adc44a6f9d3752f7ef6bddf05341dc6 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfossecondscene/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosseventhscene/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosseventhscene/signature/openharmony_sx.p7b index 8da11e660b74ae44ad23b346102aa61759a53233..70085a7a8b0e388f1664c551f7c7a46cb41ef0bd 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosseventhscene/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosseventhscene/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfossixthscene/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfossixthscene/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..c01c3e96a42e5348a431590cba2d5f5a04814797 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfossixthscene/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfossixthscene/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..8f19247cdceffde07a7bd54b9884a5f6f3fae945 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsgetinfosthirdscene/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..ecd6ae93e7b3d9614a325576cb645328ce997fcc 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmainabilityfirstscene/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..1a6482be8132864da60a532a2b2fdf455e05c40d 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmainabilitysecondscene/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmodulenameone/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmodulenameone/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..a4bb3f5310097f2107c8a15670e4d28a8bafb00c 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmodulenameone/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmodulenameone/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmodulenametwo/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmodulenametwo/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..9b00d05172e14be46b854de487dba8fb267119df 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmodulenametwo/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsmodulenametwo/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenefive/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenefive/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..d097f2496efc87e81647c6065fd2f4ebd607212e 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenefive/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenefive/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenefour/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenefour/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..e8018633b9c21ddf45aaf081ebf89c39d5881d14 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenefour/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenefour/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmssceneone/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmssceneone/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..8ba9ffeb1af79a8e023a515fe56ea6a1f177e072 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmssceneone/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmssceneone/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenesix/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenesix/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..21f09761ab54e664df4c632e7d855e827b6e7b01 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenesix/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenesix/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenethree/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenethree/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..e39e8061e85ffda3ae44ab4cafd725d8dec0f849 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenethree/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenethree/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenetwo/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenetwo/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..a1c85d1a54a1e69ff4d0d83106e909ab3359f8b0 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenetwo/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsscenetwo/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmssecondright/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmssecondright/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..d973f64675e1120b3514081548e4a8987d0d7214 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmssecondright/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmssecondright/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/AppScope/app.json b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/AppScope/app.json index 3c2c2b076c74b5aa64e39d16cb7ecec00ee2ae3d..1952ce82bb7a6a4a112a540b5532e7858922c131 100644 --- a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/AppScope/app.json +++ b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/AppScope/app.json @@ -1,6 +1,6 @@ { "app":{ - "bundleName":"ohos.acts.bundle.stage", + "bundleName":"com.acts.bundle.stage", "vendor":"huawei", "versionCode":1000000, "versionName":"1.0.0", diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/entry/src/main/ets/Application/AbilityStage.ts b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/entry/src/main/ets/Application/AbilityStage.ts index 51cb02ba3f5c7011c1cd433d07deebd47a195704..cbcc939ff5d038c8e22947c2f0186d3407e691bc 100644 --- a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/entry/src/main/ets/Application/AbilityStage.ts +++ b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/entry/src/main/ets/Application/AbilityStage.ts @@ -1,4 +1,4 @@ -import AbilityStage from "@ohos.application.AbilityStage" +import AbilityStage from "@ohos.app.ability.AbilityStage" export default class MyAbilityStage extends AbilityStage { onCreate() { diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/entry/src/main/ets/MainAbility/MainAbility.ts b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/entry/src/main/ets/MainAbility/MainAbility.ts index 2f9d6d1f23f95d9fc891fbc550cd5a589cfb6c89..266fcd85946409e0f8652dbb84fe4830200f35bc 100644 --- a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/entry/src/main/ets/MainAbility/MainAbility.ts +++ b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/entry/src/main/ets/MainAbility/MainAbility.ts @@ -1,4 +1,4 @@ -import Ability from '@ohos.application.Ability' +import Ability from '@ohos.app.ability.UIAbility' export default class MainAbility extends Ability { onCreate(want,launchParam){ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/entry/src/main/module.json b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/entry/src/main/module.json index 866c06bb70aa103fd1dfc809738e0da3d6556670..4b1060dd278d3e03bd87c0333d5931f52bddf672 100644 --- a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/entry/src/main/module.json +++ b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/entry/src/main/module.json @@ -15,7 +15,7 @@ "pages": "$profile:main_pages", "abilities": [ { - "name": "ohos.acts.bundle.stage.MainAbility", + "name": "com.acts.bundle.stage.MainAbility", "srcEntrance": "./ets/MainAbility/MainAbility.ts", "description": "$string:phone_entry_main", "icon": "$media:icon", diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/signature/openharmony_sx.p7b index 8986f56849ee33d59b6114d52cadb33dbde698ab..7b98d298985609a2f07bd90a2ec1376a5138ac3d 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemoone/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/AppScope/app.json b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/AppScope/app.json index 3c2c2b076c74b5aa64e39d16cb7ecec00ee2ae3d..1952ce82bb7a6a4a112a540b5532e7858922c131 100644 --- a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/AppScope/app.json +++ b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/AppScope/app.json @@ -1,6 +1,6 @@ { "app":{ - "bundleName":"ohos.acts.bundle.stage", + "bundleName":"com.acts.bundle.stage", "vendor":"huawei", "versionCode":1000000, "versionName":"1.0.0", diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/entry/src/main/ets/Application/AbilityStage.ts b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/entry/src/main/ets/Application/AbilityStage.ts index 51cb02ba3f5c7011c1cd433d07deebd47a195704..cbcc939ff5d038c8e22947c2f0186d3407e691bc 100644 --- a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/entry/src/main/ets/Application/AbilityStage.ts +++ b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/entry/src/main/ets/Application/AbilityStage.ts @@ -1,4 +1,4 @@ -import AbilityStage from "@ohos.application.AbilityStage" +import AbilityStage from "@ohos.app.ability.AbilityStage" export default class MyAbilityStage extends AbilityStage { onCreate() { diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/entry/src/main/ets/MainAbility/MainAbility.ts b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/entry/src/main/ets/MainAbility/MainAbility.ts index 2f9d6d1f23f95d9fc891fbc550cd5a589cfb6c89..266fcd85946409e0f8652dbb84fe4830200f35bc 100644 --- a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/entry/src/main/ets/MainAbility/MainAbility.ts +++ b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/entry/src/main/ets/MainAbility/MainAbility.ts @@ -1,4 +1,4 @@ -import Ability from '@ohos.application.Ability' +import Ability from '@ohos.app.ability.UIAbility' export default class MainAbility extends Ability { onCreate(want,launchParam){ diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/entry/src/main/module.json b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/entry/src/main/module.json index c18782e147eb9e29d84e191a1611419ba434f1b9..0e79ba40c968ed6d3393904014cfe7434bf251cf 100644 --- a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/entry/src/main/module.json +++ b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/entry/src/main/module.json @@ -15,7 +15,7 @@ "pages": "$profile:main_pages", "abilities": [ { - "name": "ohos.acts.bundle.stage.MainAbility1", + "name": "com.acts.bundle.stage.MainAbility1", "srcEntrance": "./ets/MainAbility/MainAbility.ts", "description": "$string:phone_entry_main", "icon": "$media:icon", diff --git a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/signature/openharmony_sx.p7b b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/signature/openharmony_sx.p7b index 8986f56849ee33d59b6114d52cadb33dbde698ab..7b98d298985609a2f07bd90a2ec1376a5138ac3d 100644 Binary files a/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/signature/openharmony_sx.p7b and b/bundlemanager/bundle_standard/bundlemanager/sceneProject/bmsstagedemotwo/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/zlib/actszipfileandunzipfiletest/signature/openharmony_sx.p7b b/bundlemanager/zlib/actszipfileandunzipfiletest/signature/openharmony_sx.p7b index 3a7eb6dc682f3ce734ec103281c9727559e00085..88b9ee0e411e05e452284f89dbedfd9ee1ae1920 100644 Binary files a/bundlemanager/zlib/actszipfileandunzipfiletest/signature/openharmony_sx.p7b and b/bundlemanager/zlib/actszipfileandunzipfiletest/signature/openharmony_sx.p7b differ diff --git a/bundlemanager/zlib/actszipfileandunzipfiletest/src/main/js/test/actszipfileandunzipfiletest.test.js b/bundlemanager/zlib/actszipfileandunzipfiletest/src/main/js/test/actszipfileandunzipfiletest.test.js index e3912b0da43c95575f3ab796f5c6cdf85ac28d05..97b7b4db2498a3fa847e6b4d2361680827f914ae 100644 --- a/bundlemanager/zlib/actszipfileandunzipfiletest/src/main/js/test/actszipfileandunzipfiletest.test.js +++ b/bundlemanager/zlib/actszipfileandunzipfiletest/src/main/js/test/actszipfileandunzipfiletest.test.js @@ -16,11 +16,12 @@ import zlib from '@ohos.zlib' import fileio from '@ohos.fileio' import featureAbility from '@ohos.ability.featureAbility' -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' +import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect, Level } from '@ohos/hypium' -var dir = ""; -var infos = ""; -var SRC_FILE_INVALID = 900001; +let dir = ""; +let infos = ""; +let SRC_FILE_INVALID = 900001; +let PARAM_ERROR = 401; export default function ActsZlibTest() { describe('ActsZlibTest', function () { @@ -1098,28 +1099,28 @@ export default function ActsZlibTest() { }) /* - * @tc.number: SUB_BMS_TOOL_ZLIB_0076 - * @tc.name: compressFile success - * @tc.desc: inFile and out file is valid + * @tc.number: SUB_BMS_TOOL_ZLIB_0077 + * @tc.name: compressFileTest + * @tc.desc: test compressFile when inFile and out file is valid */ - it('SUB_BMS_TOOL_ZLIB_0077', 0, async function (done) { - console.log("==================ACTS_compressFile_0100 start=================="); - let path1 = dir + "/SUB_BMS_TOOL_ZLIB_00771.txt"; - let zipDest1 = dir + "/SUB_BMS_TOOL_ZLIB_00771.zip"; - let path2 = dir + "/SUB_BMS_TOOL_ZLIB_00772.txt"; - let zipDest2 = dir + "/SUB_BMS_TOOL_ZLIB_00772.zip"; + it('compressFileTest', Level.LEVEL2, async function (done) { + console.log("==================compressFileTest start=================="); + let path1 = dir + "/compressFileTest1.txt"; + let zipDest1 = dir + "/compressFileTest1.zip"; + let path2 = dir + "/compressFileTest2.txt"; + let zipDest2 = dir + "/compressFileTest2.zip"; let fd = fileio.openSync(path1, 0o100 | 0o2, 0o666); await fileio.write(fd, infos).then(function (number) { - console.info("SUB_BMS_TOOL_ZLIB_0077 write data to file successfully :" + number); + console.info("compressFileTest write data to file successfully :" + number); }).catch(function (err) { - console.info("SUB_BMS_TOOL_ZLIB_0077 write data to file failed with error:" + err); + console.info("compressFileTest write data to file failed with error:" + err); expect(err).assertFail(); }); - console.info("SUB_BMS_TOOL_ZLIB_0077 start compressFile"); + console.info("compressFileTest start compressFile"); await zlib.compressFile(path1, zipDest1, { level: zlib.CompressLevel.COMPRESS_LEVEL_DEFAULT_COMPRESSION }).then((data) => { - console.info("SUB_BMS_TOOL_ZLIB_0077 data: " + JSON.stringify(data)); + console.info("compressFileTest data: " + JSON.stringify(data)); let zipStat = fileio.statSync(zipDest1); let isFile = zipStat.isFile(); expect(isFile).assertTrue(); @@ -1128,21 +1129,21 @@ export default function ActsZlibTest() { expect(srcSize > destSize).assertTrue(); expect(data).assertEqual(null); }).catch((err) => { - console.info("SUB_BMS_TOOL_ZLIB_0077 data: " + JSON.stringify(err)); + console.info("compressFileTest data: " + JSON.stringify(err)); expect(err).assertFail(); }) let fd2 = fileio.openSync(path2, 0o100 | 0o2, 0o666); await fileio.write(fd2, infos).then(function (number) { - console.info("SUB_BMS_TOOL_ZLIB_0077 write data to file successfully :" + number); + console.info("compressFileTest write data to file successfully :" + number); }).catch(function (err) { - console.info("SUB_BMS_TOOL_ZLIB_0077 write data to file failed with error:" + err); + console.info("compressFileTest write data to file failed with error:" + err); expect(err).assertFail(); }); zlib.compressFile(path2, zipDest2, { level: zlib.CompressLevel.COMPRESS_LEVEL_DEFAULT_COMPRESSION }, (err, data) => { - console.info("SUB_BMS_TOOL_ZLIB_0077 data2: " + JSON.stringify(data)); - console.info("SUB_BMS_TOOL_ZLIB_0077 err2: " + JSON.stringify(err)); + console.info("compressFileTest data2: " + JSON.stringify(data)); + console.info("compressFileTest err2: " + JSON.stringify(err)); let zipStat = fileio.statSync(zipDest2); let isFile = zipStat.isFile(); expect(isFile).assertTrue(); @@ -1156,47 +1157,217 @@ export default function ActsZlibTest() { }) /* - * @tc.number: SUB_BMS_TOOL_ZLIB_0077 - * @tc.name: compressFile src file is invalid - * @tc.desc: inFile is not exist + * @tc.number: SUB_BMS_TOOL_ZLIB_0078 + * @tc.name: compressFileInFileNotExist + * @tc.desc: test compressFile when inFile is not exist */ - it('SUB_BMS_TOOL_ZLIB_0078', 0, async function (done) { - console.log("==================SUB_BMS_TOOL_ZLIB_0078 start=================="); - var path = "nonexist.txt"; - var zipDest = dir + "/SUB_BMS_TOOL_ZLIB_0078.zip" + it('compressFileInFileNotExist', Level.LEVEL3, async function (done) { + console.log("==================compressFileInFileNotExist start=================="); + let path = "nonexist.txt"; + let zipDest = dir + "/compressFileInFileNotExist.zip"; await zlib.compressFile(path, zipDest, { level: zlib.CompressLevel.COMPRESS_LEVEL_NO_COMPRESSION }).then((data) => { - console.log("SUB_BMS_TOOL_ZLIB_0078 invalid src file success!") + console.log("compressFileInFileNotExist invalid src file success!"); expect(data).assertFail(); done(); }).catch((err) => { - console.log("SUB_BMS_TOOL_ZLIB_0078 zipFile fail: " + JSON.stringify(err)); + console.log("compressFileInFileNotExist zipFile fail: " + JSON.stringify(err)); + expect(err.code).assertEqual(SRC_FILE_INVALID); + done(); + }) + zlib.compressFile(path, zipDest, { + level: zlib.CompressLevel.COMPRESS_LEVEL_NO_COMPRESSION + }, (err, data) => { expect(err.code).assertEqual(SRC_FILE_INVALID); + expect(data).assertEqual(undefined); done(); }) - console.log("==================SUB_BMS_TOOL_ZLIB_0078 end=================="); + console.log("==================compressFileInFileNotExist end=================="); }) /* - * @tc.number: SUB_BMS_TOOL_ZLIB_0077 - * @tc.name: decompressFile success - * @tc.desc: inFile and out file is valid + * @tc.number: SUB_BMS_TOOL_ZLIB_0079 + * @tc.name: compressFileInFileNull + * @tc.desc: test compressFile when inFile is null + */ + it('compressFileInFileNull', Level.LEVEL3, async function (done) { + console.log("==================compressFileInFileNull start=================="); + let zipDest = dir + "/compressFileInFileNull.zip"; + try { + await zlib.compressFile(null, zipDest, { + level: zlib.CompressLevel.COMPRESS_LEVEL_NO_COMPRESSION + }).then((data) => { + console.log("compressFileInFileNull invalid src file success!"); + expect().assertFail(); + }).catch((err) => { + console.log("compressFileInFileNull zipFile fail: " + JSON.stringify(err)); + expect().assertFail(); + }) + } catch (err) { + expect(err.code).assertEqual(PARAM_ERROR); + } + try { + zlib.compressFile(null, zipDest, { + level: zlib.CompressLevel.COMPRESS_LEVEL_NO_COMPRESSION + }, (err, data) => { + console.log("compressFile result"); + expect().assertFail(); + done(); + }) + } catch (err) { + expect(err.code).assertEqual(PARAM_ERROR); + done(); + } + console.log("==================compressFileInFileNull end=================="); + }) + + /* + * @tc.number: SUB_BMS_TOOL_ZLIB_0081 + * @tc.name: compressFileOutFileNull + * @tc.desc: test compressFile when outFile is null */ - it('SUB_BMS_TOOL_ZLIB_0087', 0, async function (done) { - console.log("==================SUB_BMS_TOOL_ZLIB_0087 start=================="); - let path = dir + "/SUB_BMS_TOOL_ZLIB_0087.txt"; - let zipDest1 = dir + "/SUB_BMS_TOOL_ZLIB_00871.zip" - let zipDest2 = dir + "/SUB_BMS_TOOL_ZLIB_00872.zip" - let unzipdir1 = dir + "/SUB_BMS_TOOL_ZLIB_00871"; - let unzipdir2 = dir + "/SUB_BMS_TOOL_ZLIB_00872"; - let finalFile1 = unzipdir1 + "/SUB_BMS_TOOL_ZLIB_0087.txt"; - let finalFile2 = unzipdir2 + "/SUB_BMS_TOOL_ZLIB_0087.txt"; + it('compressFileOutFileNull', Level.LEVEL3, async function (done) { + console.log("==================compressFileOutFileNull start=================="); + let path1 = dir + "/compressFileOutFileNull.txt"; + let fd = fileio.openSync(path1, 0o100 | 0o2, 0o666); + await fileio.write(fd, infos).then(function (number) { + console.info("fileio write data to file successfully :" + number); + }).catch(function (err) { + console.info("fileio write data to file failed with error:" + err); + expect(err).assertFail(); + }); + try { + await zlib.compressFile(path1, null, { + level: zlib.CompressLevel.COMPRESS_LEVEL_NO_COMPRESSION + }).then((data) => { + console.log("compressFileOutFileNull invalid src file success!"); + expect().assertFail(); + }).catch((err) => { + console.log("compressFileOutFileNull zipFile fail: " + JSON.stringify(err)); + expect().assertFail(); + }) + } catch (err) { + expect(err.code).assertEqual(PARAM_ERROR); + } + try { + zlib.compressFile(path1, null, { + level: zlib.CompressLevel.COMPRESS_LEVEL_NO_COMPRESSION + }, (err, data) => { + console.log("compressFile result"); + expect().assertFail(); + done(); + }) + } catch (err) { + expect(err.code).assertEqual(PARAM_ERROR); + done(); + } + console.log("==================compressFileOutFileNull end=================="); + }) + + /* + * @tc.number: SUB_BMS_TOOL_ZLIB_0082 + * @tc.name: compressFileOptionNull + * @tc.desc: test compressFile when option is null + */ + it('compressFileOptionNull', Level.LEVEL3, async function (done) { + console.log("==================compressFileOptionNull start=================="); + let path1 = dir + "/compressFileOptionNull.txt"; + let zipDest1 = dir + "/compressFileOptionNull.zip"; + let fd = fileio.openSync(path1, 0o100 | 0o2, 0o666); + await fileio.write(fd, infos).then(function (number) { + console.info("fileio write data to file successfully :" + number); + }).catch(function (err) { + console.info("fileio write data to file failed with error:" + err); + expect(err).assertFail(); + }); + try { + await zlib.compressFile(path1, zipDest1, null).then((data) => { + console.log("compressFileOptionNull invalid src file success!"); + expect().assertFail(); + }).catch((err) => { + console.log("compressFileOptionNull zipFile fail: " + JSON.stringify(err)); + expect().assertFail(); + }) + } catch (err) { + expect(err.code).assertEqual(PARAM_ERROR); + } + try { + zlib.compressFile(path1, zipDest1, null, (err, data) => { + console.log("compressFile result"); + expect().assertFail(); + done(); + }) + } catch (err) { + expect(err.code).assertEqual(PARAM_ERROR); + done(); + } + console.log("==================compressFileOptionNull end=================="); + }) + + /* + * @tc.number: SUB_BMS_TOOL_ZLIB_0084 + * @tc.name: compressFileStrategyNull + * @tc.desc: test compressFile when strategy is null + */ + it('compressFileStrategyNull', Level.LEVEL3, async function (done) { + console.log("==================compressFileStrategyNull start=================="); + let path1 = dir + "/compressFileStrategyNull.txt"; + let zipDest1 = dir + "/compressFileStrategyNull.zip"; + let fd = fileio.openSync(path1, 0o100 | 0o2, 0o666); + await fileio.write(fd, infos).then(function (number) { + console.info("fileio write data to file successfully :" + number); + }).catch(function (err) { + console.info("fileio write data to file failed with error:" + err); + expect(err).assertFail(); + }); + try { + await zlib.compressFile(path1, zipDest1, { + strategy: null + }).then((data) => { + console.log("compressFileStrategyNull invalid src file success!"); + expect().assertFail(); + }).catch((err) => { + console.log("compressFileStrategyNull zipFile fail: " + JSON.stringify(err)); + expect().assertFail(); + }) + } catch (err) { + expect(err.code).assertEqual(PARAM_ERROR); + } + try { + zlib.compressFile(path1, zipDest1, { + strategy: null + }, (err, data) => { + console.log("compressFile result"); + expect().assertFail(); + done(); + }) + } catch (err) { + expect(err.code).assertEqual(PARAM_ERROR); + done(); + } + console.log("==================compressFileOutFileNull end=================="); + }) + + /* + * @tc.number: SUB_BMS_TOOL_ZLIB_0087 + * @tc.name: decompressFileTest + * @tc.desc: test decompressFile when inFile and out file is valid + */ + it('decompressFileTest', Level.LEVEL2, async function (done) { + console.log("==================decompressFileTest start=================="); + let path = dir + "/decompressFileTest.txt"; + let zipDest1 = dir + "/decompressFileTest1.zip"; + let zipDest2 = dir + "/decompressFileTest2.zip"; + let unzipdir1 = dir + "/decompressFileTest1"; + let unzipdir2 = dir + "/decompressFileTest2"; + let finalFile1 = unzipdir1 + "/decompressFileTest.txt"; + let finalFile2 = unzipdir2 + "/decompressFileTest.txt"; let fd = fileio.openSync(path, 0o100 | 0o2, 0o666); await fileio.write(fd, infos).then(function (number) { - console.info("SUB_BMS_TOOL_ZLIB_0087 write data to file success " + JSON.stringify(number)); + console.info("decompressFileTest write data to file success " + JSON.stringify(number)); }).catch(function (err) { - console.info("SUB_BMS_TOOL_ZLIB_0087 write data to file failed with error:" + err); + console.info("decompressFileTest write data to file failed with error:" + err); expect(err).assertFail(); }); await zlib.compressFile(path, zipDest1, { @@ -1230,9 +1401,9 @@ export default function ActsZlibTest() { expect(err).assertFail(); }) await fileio.mkdir(unzipdir1).then(function () { - console.info("SUB_BMS_TOOL_ZLIB_0087 mkdir successfully"); + console.info("decompressFileTest mkdir successfully"); }).catch(function (error) { - console.info("SUB_BMS_TOOL_ZLIB_0087 mkdir failed with error:" + error); + console.info("decompressFileTest mkdir failed with error:" + error); expect(error).assertFail(); }); await zlib.decompressFile(zipDest1, unzipdir1, { @@ -1248,9 +1419,9 @@ export default function ActsZlibTest() { expect(err).assertFail(); }) await fileio.mkdir(unzipdir2).then(function () { - console.info("SUB_BMS_TOOL_ZLIB_0087 mkdir successfully"); + console.info("decompressFileTest mkdir successfully"); }).catch(function (error) { - console.info("SUB_BMS_TOOL_ZLIB_0087 mkdir failed with error:" + error); + console.info("decompressFileTest mkdir failed with error:" + error); expect(error).assertFail(); }); zlib.decompressFile(zipDest2, unzipdir2, { @@ -1268,24 +1439,24 @@ export default function ActsZlibTest() { }) /* - * @tc.number: ACTS_decompressFile_0200 - * @tc.name: decompressFile src file invalid - * @tc.desc: inFile is empty + * @tc.number: SUB_BMS_TOOL_ZLIB_0088 + * @tc.name: decompressFileInFileNotExist + * @tc.desc: test decompressFile when inFile is not exist */ - it('SUB_BMS_TOOL_ZLIB_0088', 0, async function (done) { - console.log("==================SUB_BMS_TOOL_ZLIB_0088 start=================="); - var zipDest = dir + "/noneexist.zip" - var unzipdir = dir + "/SUB_BMS_TOOL_ZLIB_0088"; + it('decompressFileInFileNotExist', Level.LEVEL3, async function (done) { + console.log("==================decompressFileInFileNotExist start=================="); + let zipDest = dir + "/noneexist.zip"; + let unzipdir = dir + "/decompressFileInFileNotExist"; await fileio.mkdir(unzipdir).then(function () { - console.info("SUB_BMS_TOOL_ZLIB_0088 mkdir successfully"); + console.info("fileio mkdir successfully"); }).catch(function (error) { - console.info("SUB_BMS_TOOL_ZLIB_0088 mkdir failed with error:" + error); + console.info("fileio mkdir failed with error:" + error); expect(error).assertFail(); }); await zlib.decompressFile(zipDest, unzipdir, { strategy: zlib.CompressStrategy.COMPRESS_STRATEGY_FIXED }).then(data => { - console.log("SUB_BMS_TOOL_ZLIB_0088 data: " + data); + console.log("decompressFile data: " + data); expect(data).assertFail(null); done(); }).catch(err => { @@ -1293,9 +1464,248 @@ export default function ActsZlibTest() { expect(err.code).assertEqual(SRC_FILE_INVALID); done(); }) - console.log("==================SUB_BMS_TOOL_ZLIB_0088 end=================="); + zlib.decompressFile(zipDest, unzipdir, { + strategy: zlib.CompressStrategy.COMPRESS_STRATEGY_FIXED + }, (err, data) => { + expect(err.code).assertEqual(SRC_FILE_INVALID); + expect(data).assertEqual(undefined); + done(); + }) + console.log("==================decompressFileInFileNotExist end=================="); + }) + + /* + * @tc.number: SUB_BMS_TOOL_ZLIB_0089 + * @tc.name: decompressFileInFileNull + * @tc.desc: test decompressFile when inFile is null + */ + it('decompressFileInFileNull', Level.LEVEL3, async function (done) { + console.log("==================decompressFileInFileNull start=================="); + let unzipdir = dir + "/decompressFileInFileNull"; + await fileio.mkdir(unzipdir).then(function () { + console.info("fileio mkdir successfully"); + }).catch(function (error) { + console.info("fileio mkdir failed with error:" + error); + expect(error).assertFail(); + }); + try { + await zlib.decompressFile(null, unzipdir, { + strategy: zlib.CompressStrategy.COMPRESS_STRATEGY_FIXED + }).then(data => { + console.log("decompressFile data: " + data); + expect().assertFail(); + }).catch(err => { + console.log("decompress fail: " + JSON.stringify(err)); + expect().assertFail(); + }) + } catch (err) { + console.log("decompress fail: " + JSON.stringify(err)); + expect(err.code).assertEqual(PARAM_ERROR); + } + try { + zlib.decompressFile(null, unzipdir, { + strategy: zlib.CompressStrategy.COMPRESS_STRATEGY_FIXED + }, (err, data) => { + expect().assertFail(); + done(); + }) + } catch (err) { + console.log("decompress fail: " + JSON.stringify(err)); + expect(err.code).assertEqual(PARAM_ERROR); + done(); + } + console.log("==================decompressFileInFileNull end=================="); + }) + + /* + * @tc.number: SUB_BMS_TOOL_ZLIB_0091 + * @tc.name: decompressFileOutFileNull + * @tc.desc: test decompressFile when outFile is null + */ + it('decompressFileOutFileNull', Level.LEVEL3, async function (done) { + console.log("==================decompressFileOutFileNull start=================="); + let path = dir + "/decompressFileOutFileNull.txt"; + let zipDest1 = dir + "/decompressFileOutFileNull.zip"; + let fd = fileio.openSync(path, 0o100 | 0o2, 0o666); + await fileio.write(fd, infos).then(function (number) { + console.info("decompressFileOutFileNull write data to file success " + JSON.stringify(number)); + }).catch(function (err) { + console.info("decompressFileOutFileNull write data to file failed with error:" + err); + expect(err).assertFail(); + }); + await zlib.compressFile(path, zipDest1, { + level: zlib.CompressLevel.COMPRESS_LEVEL_DEFAULT_COMPRESSION + }).then(data => { + console.info("compressFile success " + JSON.stringify(data)); + let zipStat = fileio.statSync(zipDest1); + let isFile = zipStat.isFile(); + expect(isFile).assertTrue(); + let srcSize = fileio.statSync(path).size; + let destSize = zipStat.size; + expect(srcSize > destSize).assertTrue(); + expect(data).assertEqual(null); + }).catch(err => { + console.info("compressFile fail " + JSON.stringify(err)); + expect(err).assertFail(); + }) + try { + await zlib.decompressFile(zipDest1, null, { + strategy: zlib.CompressStrategy.COMPRESS_STRATEGY_FIXED + }).then(data => { + console.log("decompressFile data: " + data); + expect().assertFail(); + }).catch(err => { + console.log("decompress fail: " + JSON.stringify(err)); + expect().assertFail(); + }) + } catch (err) { + console.log("decompress fail: " + JSON.stringify(err)); + expect(err.code).assertEqual(PARAM_ERROR); + } + try { + zlib.decompressFile(zipDest1, null, { + strategy: zlib.CompressStrategy.COMPRESS_STRATEGY_FIXED + }, (err, data) => { + expect().assertFail(); + done(); + }) + } catch (err) { + console.log("decompress fail: " + JSON.stringify(err)); + expect(err.code).assertEqual(PARAM_ERROR); + done(); + } + console.log("==================decompressFileOutFileNull end=================="); + }) + + /* + * @tc.number: SUB_BMS_TOOL_ZLIB_0092 + * @tc.name: decompressFileOptionNull + * @tc.desc: test decompressFile when option is null + */ + it('decompressFileOptionNull', Level.LEVEL3, async function (done) { + console.log("==================decompressFileOptionNull start=================="); + let path = dir + "/decompressFileOptionNull.txt"; + let zipDest1 = dir + "/decompressFileOptionNull.zip"; + let fd = fileio.openSync(path, 0o100 | 0o2, 0o666); + await fileio.write(fd, infos).then(function (number) { + console.info("SUB_BMS_TOOL_ZLIB_0087 write data to file success " + JSON.stringify(number)); + }).catch(function (err) { + console.info("SUB_BMS_TOOL_ZLIB_0087 write data to file failed with error:" + err); + expect(err).assertFail(); + }); + await zlib.compressFile(path, zipDest1, { + level: zlib.CompressLevel.COMPRESS_LEVEL_DEFAULT_COMPRESSION + }).then(data => { + console.info("compressFile success " + JSON.stringify(data)); + let zipStat = fileio.statSync(zipDest1); + let isFile = zipStat.isFile(); + expect(isFile).assertTrue(); + let srcSize = fileio.statSync(path).size; + let destSize = zipStat.size; + expect(srcSize > destSize).assertTrue(); + expect(data).assertEqual(null); + }).catch(err => { + console.info("compressFile fail " + JSON.stringify(err)); + expect(err).assertFail(); + }) + let unzipdir = dir + "/decompressFileOptionNull"; + await fileio.mkdir(unzipdir).then(function () { + console.info("fileio mkdir successfully"); + }).catch(function (error) { + console.info("fileio mkdir failed with error:" + error); + expect(error).assertFail(); + }); + try { + await zlib.decompressFile(zipDest1, unzipdir, null).then(data => { + console.log("decompressFile data: " + data); + expect().assertFail(); + }).catch(err => { + console.log("decompress fail: " + JSON.stringify(err)); + expect().assertFail(); + }) + } catch (err) { + console.log("decompress fail: " + JSON.stringify(err)); + expect(err.code).assertEqual(PARAM_ERROR); + } + try { + zlib.decompressFile(zipDest1, unzipdir, null, (err, data) => { + expect().assertFail(); + done(); + }) + } catch (err) { + console.log("decompress fail: " + JSON.stringify(err)); + expect(err.code).assertEqual(PARAM_ERROR); + done(); + } + console.log("==================decompressFileOutFileNull end=================="); }) + /* + * @tc.number: SUB_BMS_TOOL_ZLIB_0094 + * @tc.name: decompressFileStrategyNull + * @tc.desc: test decompressFile when strategy is null + */ + it('decompressFileStrategyNull', Level.LEVEL3, async function (done) { + console.log("==================decompressFileStrategyNull start=================="); + let path = dir + "/decompressFileStrategyNull.txt"; + let zipDest1 = dir + "/decompressFileStrategyNull.zip"; + let fd = fileio.openSync(path, 0o100 | 0o2, 0o666); + await fileio.write(fd, infos).then(function (number) { + console.info("decompressFileStrategyNull write data to file success " + JSON.stringify(number)); + }).catch(function (err) { + console.info("decompressFileStrategyNull write data to file failed with error:" + err); + expect(err).assertFail(); + }); + await zlib.compressFile(path, zipDest1, { + level: zlib.CompressLevel.COMPRESS_LEVEL_DEFAULT_COMPRESSION + }).then(data => { + console.info("compressFile success " + JSON.stringify(data)); + let zipStat = fileio.statSync(zipDest1); + let isFile = zipStat.isFile(); + expect(isFile).assertTrue(); + let srcSize = fileio.statSync(path).size; + let destSize = zipStat.size; + expect(srcSize > destSize).assertTrue(); + expect(data).assertEqual(null); + }).catch(err => { + console.info("compressFile fail " + JSON.stringify(err)); + expect(err).assertFail(); + }) + let unzipdir = dir + "/decompressFileStrategyNull"; + await fileio.mkdir(unzipdir).then(function () { + console.info("fileio mkdir successfully"); + }).catch(function (error) { + console.info("fileio mkdir failed with error:" + error); + expect(error).assertFail(); + }); + try { + await zlib.decompressFile(zipDest1, unzipdir, { + strategy: null + }).then(data => { + console.log("decompressFile data: " + data); + expect().assertFail(); + }).catch(err => { + console.log("decompress fail: " + JSON.stringify(err)); + expect().assertFail(); + }) + } catch (err) { + console.log("decompress fail: " + JSON.stringify(err)); + expect(err.code).assertEqual(PARAM_ERROR); + } + try { + zlib.decompressFile(zipDest1, unzipdir, { + strategy: null + }, (err, data) => { + expect().assertFail(); + done(); + }) + } catch (err) { + console.log("decompress fail: " + JSON.stringify(err)); + expect(err.code).assertEqual(PARAM_ERROR); + done(); + } + console.log("==================decompressFileStrategyNull end=================="); + }) }) }