test: execute the HTTP scenario catalog

This commit is contained in:
DongHyeonka
2026-08-02 11:17:28 +09:00
parent 76bf9f1aa3
commit abdd90ad5d
21 changed files with 2255 additions and 157 deletions
+36
View File
@@ -0,0 +1,36 @@
{
"HTTP_SCENARIO_EXPECTATIONS": [
{
"executionId": "FIXTURE_OPERATION::declared-and-executed",
"operationId": "FIXTURE_OPERATION",
"scenarioId": "declared-and-executed",
"expected": {
"status": { "attempts": [200], "final": 200 },
"outcome": { "kind": "SUCCESS", "detail": null },
"effect": { "outcome": "NOT_APPLICABLE", "observer": "NOT_APPLICABLE" },
"retry": { "count": 0, "reasons": [] },
"fetch": { "count": 1, "observerAttempts": 1, "agrees": true },
"media": { "attempts": ["application/json"], "final": "application/json" },
"body": { "attempts": [{ "disposition": "FULLY_READ_WITHIN_BOUND", "pulledBytes": 2, "ceiling": 16 }] },
"scope": { "start": "CURRENT", "end": "CURRENT", "signal": "ACTIVE", "cancellationOwner": "NONE" }
},
"testDeadlineOverrideMs": null
},
{
"executionId": "FIXTURE_OPERATION::declared-but-unexecuted",
"operationId": "FIXTURE_OPERATION",
"scenarioId": "declared-but-unexecuted",
"expected": {
"status": { "attempts": [503], "final": 503 },
"outcome": { "kind": "PROBLEM", "detail": "503" },
"effect": { "outcome": "NOT_APPLIED", "observer": "NOT_STARTED" },
"retry": { "count": 0, "reasons": [] },
"fetch": { "count": 1, "observerAttempts": 1, "agrees": true },
"media": { "attempts": ["application/json"], "final": "application/json" },
"body": { "attempts": [{ "disposition": "FULLY_READ_WITHIN_BOUND", "pulledBytes": 64, "ceiling": 65536 }] },
"scope": { "start": "CURRENT", "end": "CURRENT", "signal": "ACTIVE", "cancellationOwner": "NONE" }
},
"testDeadlineOverrideMs": null
}
]
}
+13
View File
@@ -0,0 +1,13 @@
{
"schemaVersion": 2,
"scenarioCatalogs": [
{
"owner": "fixture-owner",
"path": "tests/fixtures/test-evidence/scenarios/catalog.json",
"expectationExport": "HTTP_SCENARIO_EXPECTATIONS",
"receiptPath": "tests/fixtures/test-evidence/scenarios/receipt.json",
"receiptSchemaVersion": 1
}
],
"sourceContracts": []
}
@@ -0,0 +1,59 @@
{
"schemaVersion": 1,
"catalogDigest": "sha256:87779c47f0042025edf18e148f86c29e5d219f7010cf7effeb69d29059420841",
"catalogTotal": 2,
"executedIds": [
"FIXTURE_OPERATION::declared-and-executed",
"FIXTURE_OPERATION::declared-but-unexecuted"
],
"rows": [
{
"executionId": "FIXTURE_OPERATION::declared-and-executed",
"expected": {
"status": { "attempts": [200], "final": 200 },
"outcome": { "kind": "SUCCESS", "detail": null },
"effect": { "outcome": "NOT_APPLICABLE", "observer": "NOT_APPLICABLE" },
"retry": { "count": 0, "reasons": [] },
"fetch": { "count": 1, "observerAttempts": 1, "agrees": false },
"media": { "attempts": ["application/json"], "final": "application/json" },
"body": { "attempts": [{ "disposition": "FULLY_READ_WITHIN_BOUND", "pulledBytes": 2, "ceiling": 16 }] },
"scope": { "start": "CURRENT", "end": "CURRENT", "signal": "ACTIVE", "cancellationOwner": "NONE" }
},
"observed": {
"status": { "attempts": [200], "final": 200 },
"outcome": { "kind": "SUCCESS", "detail": null },
"effect": { "outcome": "NOT_APPLICABLE", "observer": "NOT_APPLICABLE" },
"retry": { "count": 0, "reasons": [] },
"fetch": { "count": 1, "observerAttempts": 1, "agrees": false },
"media": { "attempts": ["application/json"], "final": "application/json" },
"body": { "attempts": [{ "disposition": "FULLY_READ_WITHIN_BOUND", "pulledBytes": 2, "ceiling": 16 }] },
"scope": { "start": "CURRENT", "end": "CURRENT", "signal": "ACTIVE", "cancellationOwner": "NONE" }
},
"testDeadlineOverrideMs": null
},
{
"executionId": "FIXTURE_OPERATION::declared-but-unexecuted",
"expected": {
"status": { "attempts": [503], "final": 503 },
"outcome": { "kind": "PROBLEM", "detail": "503" },
"effect": { "outcome": "NOT_APPLIED", "observer": "NOT_STARTED" },
"retry": { "count": 0, "reasons": [] },
"fetch": { "count": 1, "observerAttempts": 1, "agrees": true },
"media": { "attempts": ["application/json"], "final": "application/json" },
"body": { "attempts": [{ "disposition": "FULLY_READ_WITHIN_BOUND", "pulledBytes": 64, "ceiling": 65536 }] },
"scope": { "start": "CURRENT", "end": "CURRENT", "signal": "ACTIVE", "cancellationOwner": "NONE" }
},
"observed": {
"status": { "attempts": [503], "final": 503 },
"outcome": { "kind": "PROBLEM", "detail": "503" },
"effect": { "outcome": "NOT_APPLIED", "observer": "NOT_STARTED" },
"retry": { "count": 0, "reasons": [] },
"fetch": { "count": 1, "observerAttempts": 1, "agrees": true },
"media": { "attempts": ["application/json"], "final": "application/json" },
"body": { "attempts": [{ "disposition": "FULLY_READ_WITHIN_BOUND", "pulledBytes": 64, "ceiling": 65536 }] },
"scope": { "start": "CURRENT", "end": "CURRENT", "signal": "ACTIVE", "cancellationOwner": "NONE" }
},
"testDeadlineOverrideMs": null
}
]
}
+32
View File
@@ -0,0 +1,32 @@
{
"schemaVersion": 1,
"catalogDigest": "sha256:87779c47f0042025edf18e148f86c29e5d219f7010cf7effeb69d29059420841",
"catalogTotal": 2,
"executedIds": ["FIXTURE_OPERATION::declared-and-executed"],
"rows": [
{
"executionId": "FIXTURE_OPERATION::declared-and-executed",
"expected": {
"status": { "attempts": [200], "final": 200 },
"outcome": { "kind": "SUCCESS", "detail": null },
"effect": { "outcome": "NOT_APPLICABLE", "observer": "NOT_APPLICABLE" },
"retry": { "count": 0, "reasons": [] },
"fetch": { "count": 1, "observerAttempts": 1, "agrees": true },
"media": { "attempts": ["application/json"], "final": "application/json" },
"body": { "attempts": [{ "disposition": "FULLY_READ_WITHIN_BOUND", "pulledBytes": 2, "ceiling": 16 }] },
"scope": { "start": "CURRENT", "end": "CURRENT", "signal": "ACTIVE", "cancellationOwner": "NONE" }
},
"observed": {
"status": { "attempts": [200], "final": 200 },
"outcome": { "kind": "SUCCESS", "detail": null },
"effect": { "outcome": "NOT_APPLICABLE", "observer": "NOT_APPLICABLE" },
"retry": { "count": 0, "reasons": [] },
"fetch": { "count": 1, "observerAttempts": 1, "agrees": true },
"media": { "attempts": ["application/json"], "final": "application/json" },
"body": { "attempts": [{ "disposition": "FULLY_READ_WITHIN_BOUND", "pulledBytes": 2, "ceiling": 16 }] },
"scope": { "start": "CURRENT", "end": "CURRENT", "signal": "ACTIVE", "cancellationOwner": "NONE" }
},
"testDeadlineOverrideMs": null
}
]
}