feat(api): OpenAPI spec update via Stainless API (#537)

This commit is contained in:
stainless-app[bot] 2024-05-16 13:20:13 +00:00 committed by stainless-bot
parent aa8eab15fd
commit ae8abbd460
2 changed files with 3 additions and 1 deletions

View file

@ -1,2 +1,2 @@
configured_endpoints: 1286
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8ed1feaaa675343ade60163c51b1b39494c9bff519d1b15fa00c5ec0fe182abf.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-03573240641a2c0ec81ecd650a4e8be921d8cf797acfa5bcb504300e254a9ce3.yml

View file

@ -372,6 +372,7 @@ class TestCloudflare:
assert request.headers.get("X-Auth-Key") == api_key
client2 = Cloudflare(base_url=base_url, api_key=None, api_email=None, _strict_response_validation=True)
with pytest.raises(
TypeError,
match="Could not resolve authentication method. Expected one of api_email, api_key, api_token or user_service_key to be set. Or for one of the `X-Auth-Email`, `X-Auth-Key`, `Authorization` or `X-Auth-User-Service-Key` headers to be explicitly omitted",
@ -1142,6 +1143,7 @@ class TestAsyncCloudflare:
assert request.headers.get("X-Auth-Key") == api_key
client2 = AsyncCloudflare(base_url=base_url, api_key=None, api_email=None, _strict_response_validation=True)
with pytest.raises(
TypeError,
match="Could not resolve authentication method. Expected one of api_email, api_key, api_token or user_service_key to be set. Or for one of the `X-Auth-Email`, `X-Auth-Key`, `Authorization` or `X-Auth-User-Service-Key` headers to be explicitly omitted",