40 lines
1.4 KiB
JSON
40 lines
1.4 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": "\u2717 INVALID: /root/.hermes/profiles/spark/cache/scratch/hermes-snap-82499c7d6a2e.sh - Error: File not found: /root/.hermes/profiles/spark/cache/scratch/hermes-snap-82499c7d6a2e.sh\n",
|
|
"expected": "invalid",
|
|
"correct": true
|
|
},
|
|
{
|
|
"desc": "Valid JSON file",
|
|
"files": [
|
|
"/root/.hermes/cache/scratch/tmpg1cuo6p5.json"
|
|
],
|
|
"exit_code": 0,
|
|
"stdout": "\u2713 VALID: /root/.hermes/cache/scratch/tmpg1cuo6p5.json\n",
|
|
"expected": "valid",
|
|
"correct": true
|
|
},
|
|
{
|
|
"desc": "Multiple files (mixed validity)",
|
|
"files": [
|
|
"/root/.hermes/profiles/spark/cache/scratch/hermes-snap-82499c7d6a2e.sh",
|
|
"/root/.hermes/cache/scratch/tmpg1cuo6p5.json"
|
|
],
|
|
"exit_code": 1,
|
|
"stdout": "\u2717 INVALID: /root/.hermes/profiles/spark/cache/scratch/hermes-snap-82499c7d6a2e.sh - Error: File not found: /root/.hermes/profiles/spark/cache/scratch/hermes-snap-82499c7d6a2e.sh\n\u2713 VALID: /root/.hermes/cache/scratch/tmpg1cuo6p5.json\n",
|
|
"expected": "mixed",
|
|
"correct": true
|
|
}
|
|
],
|
|
"summary": {
|
|
"passed": 3,
|
|
"total": 3,
|
|
"all_correct": true
|
|
}
|
|
} |