From f55009d627e46d74ec20dd151bbb7ba2f020c977 Mon Sep 17 00:00:00 2001 From: Hydraallen Date: Fri, 3 May 2024 23:33:37 +0800 Subject: [PATCH] fix: json --- expected.json | 40 +++++++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/expected.json b/expected.json index 25045c6..aeb069d 100644 --- a/expected.json +++ b/expected.json @@ -9,31 +9,23 @@ { "name of check": "forbiddenFile", "stdout": "Checking forbidden files: Failed", - "exit code": 1, - "stderr": "", - "errorLog": { - "Op": "lstat", - "Path": "./examples/healthcheck/asciimsg", - "Err": 2 - } + "exit code": 101, + "stderr": "103the following forbidden files were found: examples/healthcheck/asciimsg/conf.toml, \n\nTo fix it, first make a backup of your repository and then run the following commands:\nfor i in examples/healthcheck/asciimsg/conf.toml ; do git filter-repo --force --invert-paths --path \\\"\\$i\\\"; done\ngit remote add origin \ngit push --set-upstream origin --force", + "errorLog": null }, { "name of check": "metaFile", - "stdout": "Checking the existence of meta file: ", - "exit code": 1, + "stdout": "Checking the existence of meta file: OK", + "exit code": 0, "stderr": "", - "errorLog": {} + "errorLog": null }, { "name of check": "NonAsciiFiles", "stdout": "Checking for non-ascii files: Failed", - "exit code": 1, - "stderr": "", - "errorLog": { - "Op": "lstat", - "Path": "./examples/healthcheck/asciimsg", - "Err": 2 - } + "exit code": 105, + "stderr": "Non-ASCII characters found in the following files:\n\texamples/healthcheck/asciimsg/nonascii.txt", + "errorLog": null }, { "name of check": "NonAsciiMsg", @@ -41,5 +33,19 @@ "exit code": 0, "stderr": "", "errorLog": null + }, + { + "name of check": "ReleaseCheck", + "stdout": "Failed", + "exit code": 107, + "stderr": "wrong release tag, please use one of aborting", + "errorLog": null + }, + { + "name of check": "verifyFile", + "stdout": "Checking files to be verified: FailedFailedFailedFailedFailed!", + "exit code": 101, + "stderr": "File missingFile missingFile missingFile missing", + "errorLog": null } ] \ No newline at end of file