提交 896b4cd5 编写于 作者: 耿文广

新增校验fingerprint字段的XTS用例

Signed-off-by: N耿文广 <gengwenguang@huawei.com>
上级 d7307120
......@@ -396,13 +396,13 @@ export default function applicationBundleJsunit() {
it('getApplicationInfo_1800', 0, async function (done) {
await Bundle.getApplicationInfo(BUNDLE_NAME,
Bundle.BundleFlag.GET_APPLICATION_INFO_WITH_CERTIFICATE_FINGERPRINT).then((data) => {
expect(data.fingerprint).assertFail("8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5");
expect(data.fingerprint).assertEqual("8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5");
}).catch((error) => {
expect(error).assertEqual(1);
});
Bundle.getApplicationInfo(BUNDLE_NAME,
Bundle.BundleFlag.GET_APPLICATION_INFO_WITH_CERTIFICATE_FINGERPRINT, (error, data) => {
expect(data.fingerprint).assertFail("8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5");
expect(data.fingerprint).assertEqual("8E93863FC32EE238060BF69A9B37E2608FFFB21F93C862DD511CBAC9F30024B5");
if(error){
expect(err).assertEqual(1);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册