feat: testcase for whitelisted chars
This commit is contained in:
parent
ed253f3f05
commit
bb9bc06fd5
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
nonascii.txt text
|
||||||
20
conf.json
Normal file
20
conf.json
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{
|
||||||
|
"stages": [
|
||||||
|
{
|
||||||
|
"name": "healthcheck",
|
||||||
|
"executor": {
|
||||||
|
"name": "sandbox",
|
||||||
|
"with": {
|
||||||
|
"default": {
|
||||||
|
"args": [
|
||||||
|
"/tmp/repo-health-checker",
|
||||||
|
"-root=.",
|
||||||
|
"-allowedDomainList=example.com",
|
||||||
|
"-whitelistedChars=\u6d4b"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
10
expected.json
Normal file
10
expected.json
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"failed": false,
|
||||||
|
"msgContains": [
|
||||||
|
"### Non-ASCII Characters File Check Passed"
|
||||||
|
],
|
||||||
|
"msgNotContains": [
|
||||||
|
"### Non-ASCII Characters File Check Failed"
|
||||||
|
],
|
||||||
|
"stderrContains": []
|
||||||
|
}
|
||||||
1
nonascii.txt
Normal file
1
nonascii.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Allowed non-ASCII: 测
|
||||||
Loading…
Reference in New Issue
Block a user