Skip to content

Commit a99f057

Browse files
test-suite
1 parent 7e4d0b0 commit a99f057

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

gateway-api/tests/contract/test_provider_contract.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,17 @@
1111

1212

1313
@pytest.mark.remote_only
14-
def test_provider_honors_consumer_contract(mtls_proxy: str, get_headers: Any) -> None:
15-
verifier = Verifier(
16-
name="GatewayAPIProvider",
17-
)
14+
class TestProviderContract:
15+
"""Provider contract tests to verify the API implementation."""
16+
17+
18+
def test_provider_honors_consumer_contract(
19+
base_url: str, hostname: str, get_headers: Any
20+
) -> None:
21+
22+
verifier = Verifier(name="GatewayAPIProvider", host=hostname)
1823

19-
verifier.add_transport(url=mtls_proxy)
24+
verifier.add_transport(url=base_url)
2025

2126
# So the Verifier can authenticate with the APIM proxy
2227
verifier.add_custom_headers(get_headers)

0 commit comments

Comments
 (0)