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

!8112 【OpenHarmony 4.0.3.3】【安全子系统】3.2 release分支useriam用例接口返回值适配

Merge pull request !8112 from qiaozzzh/cherry-pick-1679365992
...@@ -166,27 +166,6 @@ describe('userAuthTestExecute', function () { ...@@ -166,27 +166,6 @@ describe('userAuthTestExecute', function () {
done(); 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.number : Security_IAM_Nopermisson_Func_0104
* @tc.name : getAvailabeStatus invalid parameters * @tc.name : getAvailabeStatus invalid parameters
......
...@@ -19,25 +19,6 @@ import userAuthNorth from '@ohos.userIAM.userAuth' ...@@ -19,25 +19,6 @@ import userAuthNorth from '@ohos.userIAM.userAuth'
export default function userauthTest() { export default function userauthTest() {
describe('userauthTest_API9', function () { 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.number : Security_IAM_Func_0102
* @tc.name : Kit interface get AvailabeStatus * @tc.name : Kit interface get AvailabeStatus
......
...@@ -33,7 +33,7 @@ export default function userauthTest() { ...@@ -33,7 +33,7 @@ export default function userauthTest() {
let getversionresult = null; let getversionresult = null;
getversionresult = UserAuthKit.getVersion(); getversionresult = UserAuthKit.getVersion();
console.info('GetVersionTest_0101 getversionresult = ' + getversionresult); console.info('GetVersionTest_0101 getversionresult = ' + getversionresult);
expect(getversionresult).assertEqual(0); expect(getversionresult).assertEqual(1);
done(); done();
} catch (e) { } catch (e) {
console.log("testFace GetVersionTest_0101 fail " + e.code); 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.
先完成此消息的编辑!
想要评论请 注册