We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e4d0b0 commit a99f057Copy full SHA for a99f057
1 file changed
gateway-api/tests/contract/test_provider_contract.py
@@ -11,12 +11,17 @@
11
12
13
@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
- )
+class TestProviderContract:
+ """Provider contract tests to verify the API implementation."""
+
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)
23
- verifier.add_transport(url=mtls_proxy)
24
+ verifier.add_transport(url=base_url)
25
26
# So the Verifier can authenticate with the APIM proxy
27
verifier.add_custom_headers(get_headers)
0 commit comments