@@ -126,28 +126,28 @@ jobs:
126126 --data-binary "@$payload_file"
127127 )"
128128 python3 - "$label" "$status_code" "$body_file" <<'PY'
129- import json
130- import sys
131-
132- label, status, body_path = sys.argv[1:4]
133- try:
134- with open(body_path, encoding="utf-8") as file:
135- body = json.load(file)
136- except Exception:
137- body = {}
138-
139- summary = {
140- "edge": label,
141- "status": int(status),
142- "purged": len(body.get("purged") or []),
143- "missing": len(body.get("missing") or []),
144- "rejected": len(body.get("rejected") or []),
145- "errors": len(body.get("errors") or []),
146- }
147- print(json.dumps(summary, sort_keys=True))
148- if summary["status"] != 200 or summary["rejected"] or summary["errors"]:
149- raise SystemExit(1)
150- PY
129+ import json
130+ import sys
131+
132+ label, status, body_path = sys.argv[1:4]
133+ try:
134+ with open(body_path, encoding="utf-8") as file:
135+ body = json.load(file)
136+ except Exception:
137+ body = {}
138+
139+ summary = {
140+ "edge": label,
141+ "status": int(status),
142+ "purged": len(body.get("purged") or []),
143+ "missing": len(body.get("missing") or []),
144+ "rejected": len(body.get("rejected") or []),
145+ "errors": len(body.get("errors") or []),
146+ }
147+ print(json.dumps(summary, sort_keys=True))
148+ if summary["status"] != 200 or summary["rejected"] or summary["errors"]:
149+ raise SystemExit(1)
150+ PY
151151 }
152152
153153 purge_edge "ash" "http://127.0.0.1:14100"
0 commit comments