未验证 提交 367cf816 编写于 作者: O openharmony_ci 提交者: Gitee

!3408 huks异常系用例删除

Merge pull request !3408 from 胡吉翔/xly_20220601_1
......@@ -1456,19 +1456,6 @@ describe('Hks_Abnormal_Callback_Part2', function () {
});
/**
* @tc.number HUKS_ABNORMAL_CALLBACK_21200
* @tc.name InvalidPurposeUnwrapAlgEccForGenerateGKeyCallback
* @tc.desc Invalid purpose unwrap alg ecc for generate key callback.
*/
it('HUKS_ABNORMAL_CALLBACK_21200', 0, async function (done) {
var option = eccGenerateKeyInvalidPurposeOption(hks.HuksKeyPurpose.HUKS_KEY_PURPOSE_UNWRAP);
hks.generateKey(alias, option, function (err, data) {
expect(data.errorCode).assertEqual(hks.HuksErrorCode.HUKS_ERROR_INVALID_PURPOSE);
done();
});
});
/**
* @tc.number HUKS_ABNORMAL_CALLBACK_21300
* @tc.name InvalidPurposeencryptAlgEccForGenerateGKeyCallback
......@@ -1950,19 +1937,6 @@ describe('Hks_Abnormal_Callback_Part2', function () {
});
});
/**
* @tc.number HUKS_ABNORMAL_CALLBACK_25000
* @tc.name InvalidPurposeUnwrapAlgDhForGenerateKeyCallback
* @tc.desc Invalid purpose unwrap alg dh for generate key callback.
*/
it('HUKS_ABNORMAL_CALLBACK_25000', 0, async function (done) {
var option = dhGenerateKeyInvalidPurposeOption(hks.HuksKeyPurpose.HUKS_KEY_PURPOSE_UNWRAP);
hks.generateKey(alias, option, function (err, data) {
expect(data.errorCode).assertEqual(hks.HuksErrorCode.HUKS_ERROR_INVALID_PURPOSE);
done();
});
});
/**
* @tc.number HUKS_ABNORMAL_CALLBACK_25100
* @tc.name InvalidPurposeEncryptAlgDhForGenerateKeyCallback
......
......@@ -1353,18 +1353,6 @@ describe('Hks_Abnormal_Promise_Part2', function () {
done();
});
/**
* @tc.number HUKS_ABNORMAL_CALLBACK_21200
* @tc.name InvalidPurposeUnwrapAlgEccForGenerateGKeyPromise
* @tc.desc Invalid purpose unwrap alg ecc for generate key promise.
*/
it('HUKS_ABNORMAL_PROMISE_21200', 0, async function (done) {
var option = eccGenerateKeyInvalidPurposeOption(hks.HuksKeyPurpose.HUKS_KEY_PURPOSE_UNWRAP);
var result = await hks.generateKey(alias, option);
expect(result.errorCode).assertEqual(hks.HuksErrorCode.HUKS_ERROR_INVALID_PURPOSE);
done();
});
/**
* @tc.number HUKS_ABNORMAL_CALLBACK_21300
* @tc.name InvalidPurposeencryptAlgEccForGenerateGKeyPromise
......@@ -1809,18 +1797,6 @@ describe('Hks_Abnormal_Promise_Part2', function () {
done();
});
/**
* @tc.number HUKS_ABNORMAL_CALLBACK_25000
* @tc.name InvalidPurposeUnwrapAlgDhForGenerateKeyPromise
* @tc.desc Invalid purpose unwrap alg dh for generate key promise.
*/
it('HUKS_ABNORMAL_PROMISE_25000', 0, async function (done) {
var option = dhGenerateKeyInvalidPurposeOption(hks.HuksKeyPurpose.HUKS_KEY_PURPOSE_UNWRAP);
var result = await hks.generateKey(alias, option);
expect(result.errorCode).assertEqual(hks.HuksErrorCode.HUKS_ERROR_INVALID_PURPOSE);
done();
});
/**
* @tc.number HUKS_ABNORMAL_CALLBACK_25100
* @tc.name InvalidPurposeEncryptAlgDhForGenerateKeyPromise
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册