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

!7927 【OpenHarmony 4.0.3.3】【安全子系统】useriam用例接口返回值适配

Merge pull request !7927 from qiaozzzh/0313_1
......@@ -166,27 +166,6 @@ describe('userAuthTestExecute', function () {
done();
})
/*
* @tc.number : Security_IAM_Nopermission_API9_Func_0101
* @tc.name : Kit interface get version
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level 0
*/
it('Security_IAM_Nopermission_API9_Func_0101', 0, async function (done) {
try {
let getversionresult = userAuth.getVersion();
console.info('Security_IAM_Nopermission_API9_Func_0101 getversionresult = ' + getversionresult);
// no permission
expect(getversionresult).assertEqual(201);
done();
} catch (e) {
console.log("testFace GetVersionTest_0101 fail " + e.code);
expect(e.code).assertEqual(201);
done();
}
})
/*
* @tc.number : Security_IAM_Nopermisson_Func_0104
* @tc.name : getAvailabeStatus invalid parameters
......
......@@ -19,25 +19,6 @@ import userAuthNorth from '@ohos.userIAM.userAuth'
export default function userauthTest() {
describe('userauthTest_API9', function () {
/*
* @tc.number : Security_IAM_Func_0101
* @tc.name : Kit interface get version
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level 0
*/
it('Security_IAM_Func_0101', 0, async function (done) {
try {
let getversionresult = userAuthNorth.getVersion();
console.info('GetVersionTest_0101 getversionresult = ' + getversionresult);
expect(getversionresult).assertEqual(0);
done();
} catch (e) {
console.log("testFace GetVersionTest_0101 fail " + e.code);
expect(null).assertFail();
}
})
/*
* @tc.number : Security_IAM_Func_0102
* @tc.name : Kit interface get AvailabeStatus
......
......@@ -33,7 +33,7 @@ export default function userauthTest() {
let getversionresult = null;
getversionresult = UserAuthKit.getVersion();
console.info('GetVersionTest_0101 getversionresult = ' + getversionresult);
expect(getversionresult).assertEqual(0);
expect(getversionresult).assertEqual(1);
done();
} catch (e) {
console.log("testFace GetVersionTest_0101 fail " + e.code);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册