Skip to content

Commit c705bbb

Browse files
feat: chore: skip failing Go SDK tests for workers bulk secret update
* chore: skip failing Go SDK tests for workers bulk secret update Skip workers.scripts.secrets.bulk_update and workers_for_platforms.dispatch.namespaces.scripts.secrets.bulk_update. Both fail with HTTP 422 from prism due to bulk secret update request shape mismatch. Matches inline t.Skip() annotations in cloudflare-go sync PR cloudflare/cloudflare-go#4317.
1 parent f314578 commit c705bbb

3 files changed

Lines changed: 21 additions & 1 deletion

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2283
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
33
openapi_spec_hash: 57877498326f4d42df3a07aa14c272a1
4-
config_hash: ba6cf073c640c5e37cacad354448483c
4+
config_hash: af64aebd155c327064f15fb62f55c6fc

tests/api_resources/workers/scripts/test_secrets.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
292292
script_name="this-is_my_script-01",
293293
)
294294

295+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
295296
@parametrize
296297
def test_method_bulk_update(self, client: Cloudflare) -> None:
297298
secret = client.workers.scripts.secrets.bulk_update(
@@ -300,6 +301,7 @@ def test_method_bulk_update(self, client: Cloudflare) -> None:
300301
)
301302
assert_matches_type(Optional[SecretBulkUpdateResponse], secret, path=["response"])
302303

304+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
303305
@parametrize
304306
def test_method_bulk_update_with_all_params(self, client: Cloudflare) -> None:
305307
secret = client.workers.scripts.secrets.bulk_update(
@@ -316,6 +318,7 @@ def test_method_bulk_update_with_all_params(self, client: Cloudflare) -> None:
316318
)
317319
assert_matches_type(Optional[SecretBulkUpdateResponse], secret, path=["response"])
318320

321+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
319322
@parametrize
320323
def test_raw_response_bulk_update(self, client: Cloudflare) -> None:
321324
response = client.workers.scripts.secrets.with_raw_response.bulk_update(
@@ -328,6 +331,7 @@ def test_raw_response_bulk_update(self, client: Cloudflare) -> None:
328331
secret = response.parse()
329332
assert_matches_type(Optional[SecretBulkUpdateResponse], secret, path=["response"])
330333

334+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
331335
@parametrize
332336
def test_streaming_response_bulk_update(self, client: Cloudflare) -> None:
333337
with client.workers.scripts.secrets.with_streaming_response.bulk_update(
@@ -342,6 +346,7 @@ def test_streaming_response_bulk_update(self, client: Cloudflare) -> None:
342346

343347
assert cast(Any, response.is_closed) is True
344348

349+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
345350
@parametrize
346351
def test_path_params_bulk_update(self, client: Cloudflare) -> None:
347352
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -701,6 +706,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
701706
script_name="this-is_my_script-01",
702707
)
703708

709+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
704710
@parametrize
705711
async def test_method_bulk_update(self, async_client: AsyncCloudflare) -> None:
706712
secret = await async_client.workers.scripts.secrets.bulk_update(
@@ -709,6 +715,7 @@ async def test_method_bulk_update(self, async_client: AsyncCloudflare) -> None:
709715
)
710716
assert_matches_type(Optional[SecretBulkUpdateResponse], secret, path=["response"])
711717

718+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
712719
@parametrize
713720
async def test_method_bulk_update_with_all_params(self, async_client: AsyncCloudflare) -> None:
714721
secret = await async_client.workers.scripts.secrets.bulk_update(
@@ -725,6 +732,7 @@ async def test_method_bulk_update_with_all_params(self, async_client: AsyncCloud
725732
)
726733
assert_matches_type(Optional[SecretBulkUpdateResponse], secret, path=["response"])
727734

735+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
728736
@parametrize
729737
async def test_raw_response_bulk_update(self, async_client: AsyncCloudflare) -> None:
730738
response = await async_client.workers.scripts.secrets.with_raw_response.bulk_update(
@@ -737,6 +745,7 @@ async def test_raw_response_bulk_update(self, async_client: AsyncCloudflare) ->
737745
secret = await response.parse()
738746
assert_matches_type(Optional[SecretBulkUpdateResponse], secret, path=["response"])
739747

748+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
740749
@parametrize
741750
async def test_streaming_response_bulk_update(self, async_client: AsyncCloudflare) -> None:
742751
async with async_client.workers.scripts.secrets.with_streaming_response.bulk_update(
@@ -751,6 +760,7 @@ async def test_streaming_response_bulk_update(self, async_client: AsyncCloudflar
751760

752761
assert cast(Any, response.is_closed) is True
753762

763+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
754764
@parametrize
755765
async def test_path_params_bulk_update(self, async_client: AsyncCloudflare) -> None:
756766
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):

tests/api_resources/workers_for_platforms/dispatch/namespaces/scripts/test_secrets.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
352352
script_name="this-is_my_script-01",
353353
)
354354

355+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
355356
@parametrize
356357
def test_method_bulk_update(self, client: Cloudflare) -> None:
357358
secret = client.workers_for_platforms.dispatch.namespaces.scripts.secrets.bulk_update(
@@ -361,6 +362,7 @@ def test_method_bulk_update(self, client: Cloudflare) -> None:
361362
)
362363
assert_matches_type(SecretBulkUpdateResponse, secret, path=["response"])
363364

365+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
364366
@parametrize
365367
def test_method_bulk_update_with_all_params(self, client: Cloudflare) -> None:
366368
secret = client.workers_for_platforms.dispatch.namespaces.scripts.secrets.bulk_update(
@@ -378,6 +380,7 @@ def test_method_bulk_update_with_all_params(self, client: Cloudflare) -> None:
378380
)
379381
assert_matches_type(SecretBulkUpdateResponse, secret, path=["response"])
380382

383+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
381384
@parametrize
382385
def test_raw_response_bulk_update(self, client: Cloudflare) -> None:
383386
response = client.workers_for_platforms.dispatch.namespaces.scripts.secrets.with_raw_response.bulk_update(
@@ -391,6 +394,7 @@ def test_raw_response_bulk_update(self, client: Cloudflare) -> None:
391394
secret = response.parse()
392395
assert_matches_type(SecretBulkUpdateResponse, secret, path=["response"])
393396

397+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
394398
@parametrize
395399
def test_streaming_response_bulk_update(self, client: Cloudflare) -> None:
396400
with client.workers_for_platforms.dispatch.namespaces.scripts.secrets.with_streaming_response.bulk_update(
@@ -406,6 +410,7 @@ def test_streaming_response_bulk_update(self, client: Cloudflare) -> None:
406410

407411
assert cast(Any, response.is_closed) is True
408412

413+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
409414
@parametrize
410415
def test_path_params_bulk_update(self, client: Cloudflare) -> None:
411416
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -861,6 +866,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
861866
script_name="this-is_my_script-01",
862867
)
863868

869+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
864870
@parametrize
865871
async def test_method_bulk_update(self, async_client: AsyncCloudflare) -> None:
866872
secret = await async_client.workers_for_platforms.dispatch.namespaces.scripts.secrets.bulk_update(
@@ -870,6 +876,7 @@ async def test_method_bulk_update(self, async_client: AsyncCloudflare) -> None:
870876
)
871877
assert_matches_type(SecretBulkUpdateResponse, secret, path=["response"])
872878

879+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
873880
@parametrize
874881
async def test_method_bulk_update_with_all_params(self, async_client: AsyncCloudflare) -> None:
875882
secret = await async_client.workers_for_platforms.dispatch.namespaces.scripts.secrets.bulk_update(
@@ -887,6 +894,7 @@ async def test_method_bulk_update_with_all_params(self, async_client: AsyncCloud
887894
)
888895
assert_matches_type(SecretBulkUpdateResponse, secret, path=["response"])
889896

897+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
890898
@parametrize
891899
async def test_raw_response_bulk_update(self, async_client: AsyncCloudflare) -> None:
892900
response = (
@@ -902,6 +910,7 @@ async def test_raw_response_bulk_update(self, async_client: AsyncCloudflare) ->
902910
secret = await response.parse()
903911
assert_matches_type(SecretBulkUpdateResponse, secret, path=["response"])
904912

913+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
905914
@parametrize
906915
async def test_streaming_response_bulk_update(self, async_client: AsyncCloudflare) -> None:
907916
async with (
@@ -919,6 +928,7 @@ async def test_streaming_response_bulk_update(self, async_client: AsyncCloudflar
919928

920929
assert cast(Any, response.is_closed) is True
921930

931+
@pytest.mark.skip(reason="prism returns HTTP 422 for bulk secret update request shape")
922932
@parametrize
923933
async def test_path_params_bulk_update(self, async_client: AsyncCloudflare) -> None:
924934
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):

0 commit comments

Comments
 (0)