From 08aaaf1c3ab5863cc53475d8cbca0d668d6a8a1d Mon Sep 17 00:00:00 2001 From: Mack Wang Date: Tue, 7 Apr 2026 22:59:21 -0700 Subject: [PATCH] fix: bad testcase for whitelisted chars --- conf.json | 44 ++++++++++++++++++++++++++++++++++++++++---- expected.json | 11 +---------- 2 files changed, 41 insertions(+), 14 deletions(-) diff --git a/conf.json b/conf.json index 10836a3..dcf310f 100644 --- a/conf.json +++ b/conf.json @@ -9,12 +9,48 @@ "args": [ "/tmp/repo-health-checker", "-root=.", - "-allowedDomainList=example.com", + "-allowedDomainList=outlook.com", "-whitelistedChars=\u6d4b" - ] + ], + "env": [ + "PATH=/usr/bin:/bin" + ], + "cpuLimit": 10000000000, + "memoryLimit": 104857600, + "procLimit": 50, + "copyInDir": ".", + "copyIn": { + "/tmp/repo-health-checker": { + "src": "./../../../../../../build/repo-health-checker" + } + }, + "copyOut": [ + "stdout", + "stderr" + ], + "stdin": { + "content": "" + }, + "stdout": { + "name": "stdout", + "max": 4096 + }, + "stderr": { + "name": "stderr", + "max": 4096 + } } } - } + }, + "parsers": [ + { + "name": "healthcheck", + "with": { + "score": 10, + "comment": " + comment from toml conf" + } + } + ] } ] -} +} \ No newline at end of file diff --git a/expected.json b/expected.json index 0b0f7ee..65ad93d 100644 --- a/expected.json +++ b/expected.json @@ -1,10 +1 @@ -{ - "failed": false, - "msgContains": [ - "### Non-ASCII Characters File Check Passed" - ], - "msgNotContains": [ - "### Non-ASCII Characters File Check Failed" - ], - "stderrContains": [] -} +[{"name":"healthcheck","results":[{"score":10,"comment":"### Repo Size Check Passed\n### Repo LFS Check Passed\n### Forbidden File Check Passed\n### Meta File Check Passed\n### Non-ASCII Characters File Check Passed\n### Non-ASCII Characters Commit Message Check Passed\n### Repo File Check Passed\n### Author Email Check Passed\n"}],"force_quit":false}]