提交 80019364 编写于 作者: Y yuanyuhang

111

Signed-off-by: Nyuanyuhang <yuanyuhang1@huawei.com>
上级 29cb30d4
......@@ -435,4 +435,12 @@ describe('SecurityHuksAccessControlJsunit', function () {
await deleteKeyFunc(srcKeyAlias, HuksOptions);
done();
});
it('HUKS_Basic_Capability_AccessControl_9000', 0, async function (done) {
expect(-126).assertEqual(huks.HuksErrorCode.HUKS_ERROR_INVALID_WRAPPED_FORMAT);
expect(-127).assertEqual(huks.HuksErrorCode.HUKS_ERROR_INVALID_USAGE_OF_KEY);
expect(0).assertEqual(huks.HuksImportKeyType.HUKS_KEY_TYPE_PUBLIC_KEY);
expect(1).assertEqual(huks.HuksImportKeyType.HUKS_KEY_TYPE_PRIVATE_KEY);
done();
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册