Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
285742c8
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
285742c8
编写于
10月 26, 2022
作者:
O
openharmony_ci
提交者:
Gitee
10月 26, 2022
浏览文件
操作
浏览文件
下载
差异文件
!6137 【OpenHarmony 3.2.8.1】【安全子系统】【monthly_20221018】API9接口测试套适配
Merge pull request !6137 from qiaozzzh/cherry-pick-1666751086
上级
02598f7f
dac88140
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
507 addition
and
76 deletion
+507
-76
useriam/face_auth/js_api_test/function_test/userauthpart2/src/main/js/test/List.test.js
...function_test/userauthpart2/src/main/js/test/List.test.js
+2
-0
useriam/face_auth/js_api_test/function_test/userauthpart2/src/main/js/test/Security_IAM_FUNC_Jsunit.test.js
...thpart2/src/main/js/test/Security_IAM_FUNC_Jsunit.test.js
+503
-0
useriam/face_auth/js_api_test/function_test/userauthpart2/src/main/js/test/Security_IAM_PIN_Kit_CallbackJsunit.test.js
.../main/js/test/Security_IAM_PIN_Kit_CallbackJsunit.test.js
+2
-76
未找到文件。
useriam/face_auth/js_api_test/function_test/userauthpart2/src/main/js/test/List.test.js
浏览文件 @
285742c8
...
@@ -13,6 +13,8 @@
...
@@ -13,6 +13,8 @@
* limitations under the License.
* limitations under the License.
*/
*/
import
userauthTest
from
'
./Security_IAM_PIN_Kit_CallbackJsunit.test.js
'
import
userauthTest
from
'
./Security_IAM_PIN_Kit_CallbackJsunit.test.js
'
import
userauthTest_API9
from
'
./Security_IAM_FUNC_Jsunit.test.js
'
export
default
function
testsuite
()
{
export
default
function
testsuite
()
{
userauthTest
()
userauthTest
()
userauthTest_API9
()
}
}
useriam/face_auth/js_api_test/function_test/userauthpart2/src/main/js/test/Security_IAM_FUNC_Jsunit.test.js
0 → 100644
浏览文件 @
285742c8
此差异已折叠。
点击以展开。
useriam/face_auth/js_api_test/function_test/userauthpart2/src/main/js/test/Security_IAM_PIN_Kit_CallbackJsunit.test.js
浏览文件 @
285742c8
...
@@ -73,7 +73,7 @@ describe('userauthTest', function () {
...
@@ -73,7 +73,7 @@ describe('userauthTest', function () {
*/
*/
it
(
'
Security_IAM_PIN_Kit_Func_0103
'
,
0
,
async
function
(
done
)
{
it
(
'
Security_IAM_PIN_Kit_Func_0103
'
,
0
,
async
function
(
done
)
{
let
contextID1
=
null
let
contextID1
=
null
let
challenge
=
[
253
,
19
,
58
,
160
,
67
,
200
,
247
,
37
]
let
challenge
=
new
Uint8Array
([
253
,
19
,
58
,
160
,
67
,
200
,
247
,
37
])
let
onresult
=
{
let
onresult
=
{
authresult
:
null
,
authresult
:
null
,
authextr
:
null
,
authextr
:
null
,
...
@@ -108,62 +108,6 @@ describe('userauthTest', function () {
...
@@ -108,62 +108,6 @@ describe('userauthTest', function () {
})
})
/*
* @tc.number : Security_IAM_PIN_Kit_Func_0104
* @tc.name : Kit interface enum AuthTrustLevel
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
Security_IAM_PIN_Kit_Func_0104
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testFace Security_IAM_PIN_Kit_Func_0104 start
'
);
expect
(
10000
).
assertEqual
(
userAuthNorth
.
AuthTrustLevel
.
ATL1
);
expect
(
20000
).
assertEqual
(
userAuthNorth
.
AuthTrustLevel
.
ATL2
);
expect
(
30000
).
assertEqual
(
userAuthNorth
.
AuthTrustLevel
.
ATL3
);
expect
(
40000
).
assertEqual
(
userAuthNorth
.
AuthTrustLevel
.
ATL4
);
console
.
info
(
'
testFace Security_IAM_PIN_Kit_Func_0104 end
'
);
done
();
})
/*
* @tc.number : Security_IAM_PIN_Kit_Func_0105
* @tc.name : Kit interface enum FaceTips
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
Security_IAM_PIN_Kit_Func_0105
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testFace Security_IAM_PIN_Kit_Func_0105 start
'
);
expect
(
1
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_BRIGHT
);
expect
(
2
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_DARK
);
expect
(
3
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_CLOSE
);
expect
(
4
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_FAR
);
expect
(
5
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_HIGH
);
expect
(
6
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_LOW
);
expect
(
7
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_RIGHT
);
expect
(
8
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_LEFT
);
expect
(
9
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_TOO_MUCH_MOTION
);
expect
(
10
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_POOR_GAZE
);
expect
(
11
).
assertEqual
(
userAuthNorth
.
FaceTips
.
FACE_AUTH_TIP_NOT_DETECTED
);
console
.
info
(
'
testFace Security_IAM_PIN_Kit_Func_0105 end
'
);
done
();
})
/*
* @tc.number : Security_IAM_PIN_Kit_Func_0106
* @tc.name : Kit interface enum UserAuthType
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
Security_IAM_PIN_Kit_Func_0106
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testFace Security_IAM_PIN_Kit_Func_0106 start
'
);
expect
(
2
).
assertEqual
(
userAuthNorth
.
UserAuthType
.
FACE
);
expect
(
4
).
assertEqual
(
userAuthNorth
.
UserAuthType
.
FINGERPRINT
);
console
.
info
(
'
testFace Security_IAM_PIN_Kit_Func_0106 end
'
);
done
();
})
/*
/*
* @tc.number : Security_IAM_PIN_Kit_Func_0107
* @tc.number : Security_IAM_PIN_Kit_Func_0107
* @tc.name : Kit interface enum ResultCode
* @tc.name : Kit interface enum ResultCode
...
@@ -188,25 +132,7 @@ describe('userauthTest', function () {
...
@@ -188,25 +132,7 @@ describe('userauthTest', function () {
done
();
done
();
})
})
/*
* @tc.number : Security_IAM_PIN_Kit_Func_0108
* @tc.name : Kit interface enum FingerprintTips
* @tc.size : MediumTest
* @tc.type : Function
* @tc.level : Level 0
*/
it
(
'
Security_IAM_PIN_Kit_Func_0108
'
,
0
,
async
function
(
done
)
{
console
.
info
(
'
testFace Security_IAM_PIN_Kit_Func_0108 start
'
);
expect
(
0
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_AUTH_TIP_GOOD
);
expect
(
1
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_AUTH_TIP_DIRTY
);
expect
(
2
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_AUTH_TIP_INSUFFICIENT
);
expect
(
3
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_AUTH_TIP_PARTIAL
);
expect
(
4
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_AUTH_TIP_TOO_FAST
);
expect
(
5
).
assertEqual
(
userAuthNorth
.
FingerprintTips
.
FINGERPRINT_AUTH_TIP_TOO_SLOW
);
console
.
info
(
'
testFace Security_IAM_PIN_Kit_Func_0108 end
'
);
done
();
})
})
})
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录