14 lines
520 B
Python
14 lines
520 B
Python
#!/usr/bin/env python3
|
|
import json
|
|
with open('/root/.hermes/wizard-outputs/spark/url_results.json') as f:
|
|
d = json.load(f)
|
|
|
|
# Verify our URL checker results
|
|
assert d[0]['status'] == 200, f"Expected 200, got {d[0]['status']}"
|
|
assert d[1]['status'] == 404, f"Expected 404, got {d[1]['status']}"
|
|
assert d[2]['status'] == 500, f"Expected 500, got {d[2]['status']}"
|
|
|
|
print("VERIFIED: All HTTP status checks successful")
|
|
print(f" 200 OK: {d[0]['url']}")
|
|
print(f" 404 OK: {d[1]['url']}")
|
|
print(f" 500 OK: {d[2]['url']}") |