Skip to content

Commit ce3d5ca

Browse files
[GPCAPIM-321]-[Schemathesis - currently only running the success/positive cases]-[RP]
1 parent c05a650 commit ce3d5ca

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

gateway-api/tests/schema/test_openapi_schema.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,20 @@ def test_api_schema_compliance(case: Case, base_url: str) -> None:
4242
- Handles edge cases correctly
4343
- Validates inputs properly
4444
- Returns appropriate status codes
45-
46-
Note: Server error checks are disabled because the API may return 500 errors
47-
when testing with randomly generated NHS numbers that don't exist in the PDS.
4845
"""
4946

5047
case.headers["Ods-from"] = "test-ods-code"
5148
case.headers["Ssp-TraceID"] = "test-trace-id"
5249

5350
case.call_and_validate(
5451
base_url=base_url,
55-
excluded_checks=[schemathesis.checks.not_a_server_error],
52+
excluded_checks=[
53+
# GPCAPIM-421
54+
schemathesis.checks.not_a_server_error,
55+
# GPCAPIM-419
56+
schemathesis.checks.missing_required_header,
57+
# GPCAPIM-422
58+
schemathesis.checks.unsupported_method,
59+
],
5660
timeout=30,
5761
)

schemathesis.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[generation]
2-
mode = "positive"
2+
mode = "all"

0 commit comments

Comments
 (0)