40 lines
1.5 KiB
JSON
40 lines
1.5 KiB
JSON
{
|
|
"tests": [
|
|
{
|
|
"desc": "Hermes snap shell script (not JSON)",
|
|
"files": [
|
|
"/root/.hermes/profiles/spark/cache/scratch/hermes-snap-82499c7d6a2e.sh"
|
|
],
|
|
"exit_code": 1,
|
|
"stdout": "\n\u2717 INVALID: /root/.hermes/profiles/spark/cache/scratch/hermes-snap-82499c7d6a2e.sh\n Error: Line 1, Column 1: Expecting value\n",
|
|
"expected": "invalid",
|
|
"correct": true
|
|
},
|
|
{
|
|
"desc": "Valid JSON file",
|
|
"files": [
|
|
"/root/.hermes/profiles/spark/cache/scratch/tmpnx0d8oia.json"
|
|
],
|
|
"exit_code": 0,
|
|
"stdout": "\n\u2713 VALID: /root/.hermes/profiles/spark/cache/scratch/tmpnx0d8oia.json\n Type: dict\n Structure: Object with 3 keys\n Size: 75 bytes, 1 lines\n",
|
|
"expected": "valid",
|
|
"correct": true
|
|
},
|
|
{
|
|
"desc": "Multiple files (mixed validity)",
|
|
"files": [
|
|
"/root/.hermes/profiles/spark/cache/scratch/hermes-snap-82499c7d6a2e.sh",
|
|
"/root/.hermes/profiles/spark/cache/scratch/tmpnx0d8oia.json"
|
|
],
|
|
"exit_code": 1,
|
|
"stdout": "\n\u2717 INVALID: /root/.hermes/profiles/spark/cache/scratch/hermes-snap-82499c7d6a2e.sh\n Error: Line 1, Column 1: Expecting value\n\n\u2713 VALID: /root/.hermes/profiles/spark/cache/scratch/tmpnx0d8oia.json\n Type: dict\n Structure: Object with 3 keys\n Size: 75 bytes, 1 lines\n",
|
|
"expected": "mixed",
|
|
"correct": true
|
|
}
|
|
],
|
|
"summary": {
|
|
"passed": 3,
|
|
"total": 3,
|
|
"all_correct": true
|
|
}
|
|
} |