Skip to content

Commit 94536a0

Browse files
feat: chore: skip failing tests for email_security.settings and workers.observability.telemetry
* chore: skip failing tests for email_security.settings and workers.observability.telemetry - email_security.settings.allow_policies.edit: HTTP 422 from prism - email_security.settings.block_senders.edit: HTTP 422 from prism - email_security.settings.impersonation_registry.edit: HTTP 422 from prism - email_security.settings.trusted_domains.edit: HTTP 422 from prism - workers.observability.telemetry.keys: HTTP 400 from prism - workers.observability.telemetry.query: HTTP 400 from prism - workers.observability.telemetry.values: HTTP 400 from prism Failures observed in CI run 25132870851 on cloudflare-typescript PR #2743.
1 parent 434e873 commit 94536a0

7 files changed

Lines changed: 1307 additions & 9 deletions

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: 2195
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
33
openapi_spec_hash: ffe469d5b0b3f29c20ccb91c0a2862e7
4-
config_hash: 21f60bdd0f0b7d52ffabed72d0fd2020
4+
config_hash: a83bae9f0be0219cfe77d38d5af60d4a

tests/api_resources/email_security/settings/test_allow_policies.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
212212
account_id="023e105f4ecef8ad9ca31a8372d0c353",
213213
)
214214

215+
@pytest.mark.skip(reason="HTTP 422 error from prism")
215216
@parametrize
216217
def test_method_edit(self, client: Cloudflare) -> None:
217218
allow_policy = client.email_security.settings.allow_policies.edit(
@@ -220,6 +221,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
220221
)
221222
assert_matches_type(Optional[AllowPolicyEditResponse], allow_policy, path=["response"])
222223

224+
@pytest.mark.skip(reason="HTTP 422 error from prism")
223225
@parametrize
224226
def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
225227
allow_policy = client.email_security.settings.allow_policies.edit(
@@ -239,6 +241,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
239241
)
240242
assert_matches_type(Optional[AllowPolicyEditResponse], allow_policy, path=["response"])
241243

244+
@pytest.mark.skip(reason="HTTP 422 error from prism")
242245
@parametrize
243246
def test_raw_response_edit(self, client: Cloudflare) -> None:
244247
response = client.email_security.settings.allow_policies.with_raw_response.edit(
@@ -251,6 +254,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
251254
allow_policy = response.parse()
252255
assert_matches_type(Optional[AllowPolicyEditResponse], allow_policy, path=["response"])
253256

257+
@pytest.mark.skip(reason="HTTP 422 error from prism")
254258
@parametrize
255259
def test_streaming_response_edit(self, client: Cloudflare) -> None:
256260
with client.email_security.settings.allow_policies.with_streaming_response.edit(
@@ -265,6 +269,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
265269

266270
assert cast(Any, response.is_closed) is True
267271

272+
@pytest.mark.skip(reason="HTTP 422 error from prism")
268273
@parametrize
269274
def test_path_params_edit(self, client: Cloudflare) -> None:
270275
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -521,6 +526,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
521526
account_id="023e105f4ecef8ad9ca31a8372d0c353",
522527
)
523528

529+
@pytest.mark.skip(reason="HTTP 422 error from prism")
524530
@parametrize
525531
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
526532
allow_policy = await async_client.email_security.settings.allow_policies.edit(
@@ -529,6 +535,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
529535
)
530536
assert_matches_type(Optional[AllowPolicyEditResponse], allow_policy, path=["response"])
531537

538+
@pytest.mark.skip(reason="HTTP 422 error from prism")
532539
@parametrize
533540
async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare) -> None:
534541
allow_policy = await async_client.email_security.settings.allow_policies.edit(
@@ -548,6 +555,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
548555
)
549556
assert_matches_type(Optional[AllowPolicyEditResponse], allow_policy, path=["response"])
550557

558+
@pytest.mark.skip(reason="HTTP 422 error from prism")
551559
@parametrize
552560
async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
553561
response = await async_client.email_security.settings.allow_policies.with_raw_response.edit(
@@ -560,6 +568,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
560568
allow_policy = await response.parse()
561569
assert_matches_type(Optional[AllowPolicyEditResponse], allow_policy, path=["response"])
562570

571+
@pytest.mark.skip(reason="HTTP 422 error from prism")
563572
@parametrize
564573
async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> None:
565574
async with async_client.email_security.settings.allow_policies.with_streaming_response.edit(
@@ -574,6 +583,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
574583

575584
assert cast(Any, response.is_closed) is True
576585

586+
@pytest.mark.skip(reason="HTTP 422 error from prism")
577587
@parametrize
578588
async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
579589
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):

tests/api_resources/email_security/settings/test_block_senders.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
185185
account_id="023e105f4ecef8ad9ca31a8372d0c353",
186186
)
187187

188+
@pytest.mark.skip(reason="HTTP 422 error from prism")
188189
@parametrize
189190
def test_method_edit(self, client: Cloudflare) -> None:
190191
block_sender = client.email_security.settings.block_senders.edit(
@@ -193,6 +194,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
193194
)
194195
assert_matches_type(Optional[BlockSenderEditResponse], block_sender, path=["response"])
195196

197+
@pytest.mark.skip(reason="HTTP 422 error from prism")
196198
@parametrize
197199
def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
198200
block_sender = client.email_security.settings.block_senders.edit(
@@ -205,6 +207,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
205207
)
206208
assert_matches_type(Optional[BlockSenderEditResponse], block_sender, path=["response"])
207209

210+
@pytest.mark.skip(reason="HTTP 422 error from prism")
208211
@parametrize
209212
def test_raw_response_edit(self, client: Cloudflare) -> None:
210213
response = client.email_security.settings.block_senders.with_raw_response.edit(
@@ -217,6 +220,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
217220
block_sender = response.parse()
218221
assert_matches_type(Optional[BlockSenderEditResponse], block_sender, path=["response"])
219222

223+
@pytest.mark.skip(reason="HTTP 422 error from prism")
220224
@parametrize
221225
def test_streaming_response_edit(self, client: Cloudflare) -> None:
222226
with client.email_security.settings.block_senders.with_streaming_response.edit(
@@ -231,6 +235,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
231235

232236
assert cast(Any, response.is_closed) is True
233237

238+
@pytest.mark.skip(reason="HTTP 422 error from prism")
234239
@parametrize
235240
def test_path_params_edit(self, client: Cloudflare) -> None:
236241
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -460,6 +465,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
460465
account_id="023e105f4ecef8ad9ca31a8372d0c353",
461466
)
462467

468+
@pytest.mark.skip(reason="HTTP 422 error from prism")
463469
@parametrize
464470
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
465471
block_sender = await async_client.email_security.settings.block_senders.edit(
@@ -468,6 +474,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
468474
)
469475
assert_matches_type(Optional[BlockSenderEditResponse], block_sender, path=["response"])
470476

477+
@pytest.mark.skip(reason="HTTP 422 error from prism")
471478
@parametrize
472479
async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare) -> None:
473480
block_sender = await async_client.email_security.settings.block_senders.edit(
@@ -480,6 +487,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
480487
)
481488
assert_matches_type(Optional[BlockSenderEditResponse], block_sender, path=["response"])
482489

490+
@pytest.mark.skip(reason="HTTP 422 error from prism")
483491
@parametrize
484492
async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
485493
response = await async_client.email_security.settings.block_senders.with_raw_response.edit(
@@ -492,6 +500,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
492500
block_sender = await response.parse()
493501
assert_matches_type(Optional[BlockSenderEditResponse], block_sender, path=["response"])
494502

503+
@pytest.mark.skip(reason="HTTP 422 error from prism")
495504
@parametrize
496505
async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> None:
497506
async with async_client.email_security.settings.block_senders.with_streaming_response.edit(
@@ -506,6 +515,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
506515

507516
assert cast(Any, response.is_closed) is True
508517

518+
@pytest.mark.skip(reason="HTTP 422 error from prism")
509519
@parametrize
510520
async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
511521
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):

tests/api_resources/email_security/settings/test_impersonation_registry.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
202202
account_id="023e105f4ecef8ad9ca31a8372d0c353",
203203
)
204204

205+
@pytest.mark.skip(reason="HTTP 422 error from prism")
205206
@parametrize
206207
def test_method_edit(self, client: Cloudflare) -> None:
207208
impersonation_registry = client.email_security.settings.impersonation_registry.edit(
@@ -210,6 +211,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
210211
)
211212
assert_matches_type(Optional[ImpersonationRegistryEditResponse], impersonation_registry, path=["response"])
212213

214+
@pytest.mark.skip(reason="HTTP 422 error from prism")
213215
@parametrize
214216
def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
215217
impersonation_registry = client.email_security.settings.impersonation_registry.edit(
@@ -226,6 +228,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
226228
)
227229
assert_matches_type(Optional[ImpersonationRegistryEditResponse], impersonation_registry, path=["response"])
228230

231+
@pytest.mark.skip(reason="HTTP 422 error from prism")
229232
@parametrize
230233
def test_raw_response_edit(self, client: Cloudflare) -> None:
231234
response = client.email_security.settings.impersonation_registry.with_raw_response.edit(
@@ -238,6 +241,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
238241
impersonation_registry = response.parse()
239242
assert_matches_type(Optional[ImpersonationRegistryEditResponse], impersonation_registry, path=["response"])
240243

244+
@pytest.mark.skip(reason="HTTP 422 error from prism")
241245
@parametrize
242246
def test_streaming_response_edit(self, client: Cloudflare) -> None:
243247
with client.email_security.settings.impersonation_registry.with_streaming_response.edit(
@@ -252,6 +256,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
252256

253257
assert cast(Any, response.is_closed) is True
254258

259+
@pytest.mark.skip(reason="HTTP 422 error from prism")
255260
@parametrize
256261
def test_path_params_edit(self, client: Cloudflare) -> None:
257262
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -502,6 +507,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
502507
account_id="023e105f4ecef8ad9ca31a8372d0c353",
503508
)
504509

510+
@pytest.mark.skip(reason="HTTP 422 error from prism")
505511
@parametrize
506512
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
507513
impersonation_registry = await async_client.email_security.settings.impersonation_registry.edit(
@@ -510,6 +516,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
510516
)
511517
assert_matches_type(Optional[ImpersonationRegistryEditResponse], impersonation_registry, path=["response"])
512518

519+
@pytest.mark.skip(reason="HTTP 422 error from prism")
513520
@parametrize
514521
async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare) -> None:
515522
impersonation_registry = await async_client.email_security.settings.impersonation_registry.edit(
@@ -526,6 +533,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
526533
)
527534
assert_matches_type(Optional[ImpersonationRegistryEditResponse], impersonation_registry, path=["response"])
528535

536+
@pytest.mark.skip(reason="HTTP 422 error from prism")
529537
@parametrize
530538
async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
531539
response = await async_client.email_security.settings.impersonation_registry.with_raw_response.edit(
@@ -538,6 +546,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
538546
impersonation_registry = await response.parse()
539547
assert_matches_type(Optional[ImpersonationRegistryEditResponse], impersonation_registry, path=["response"])
540548

549+
@pytest.mark.skip(reason="HTTP 422 error from prism")
541550
@parametrize
542551
async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> None:
543552
async with async_client.email_security.settings.impersonation_registry.with_streaming_response.edit(
@@ -552,6 +561,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
552561

553562
assert cast(Any, response.is_closed) is True
554563

564+
@pytest.mark.skip(reason="HTTP 422 error from prism")
555565
@parametrize
556566
async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
557567
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):

tests/api_resources/email_security/settings/test_trusted_domains.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ def test_path_params_delete(self, client: Cloudflare) -> None:
196196
account_id="023e105f4ecef8ad9ca31a8372d0c353",
197197
)
198198

199+
@pytest.mark.skip(reason="HTTP 422 error from prism")
199200
@parametrize
200201
def test_method_edit(self, client: Cloudflare) -> None:
201202
trusted_domain = client.email_security.settings.trusted_domains.edit(
@@ -204,6 +205,7 @@ def test_method_edit(self, client: Cloudflare) -> None:
204205
)
205206
assert_matches_type(Optional[TrustedDomainEditResponse], trusted_domain, path=["response"])
206207

208+
@pytest.mark.skip(reason="HTTP 422 error from prism")
207209
@parametrize
208210
def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
209211
trusted_domain = client.email_security.settings.trusted_domains.edit(
@@ -217,6 +219,7 @@ def test_method_edit_with_all_params(self, client: Cloudflare) -> None:
217219
)
218220
assert_matches_type(Optional[TrustedDomainEditResponse], trusted_domain, path=["response"])
219221

222+
@pytest.mark.skip(reason="HTTP 422 error from prism")
220223
@parametrize
221224
def test_raw_response_edit(self, client: Cloudflare) -> None:
222225
response = client.email_security.settings.trusted_domains.with_raw_response.edit(
@@ -229,6 +232,7 @@ def test_raw_response_edit(self, client: Cloudflare) -> None:
229232
trusted_domain = response.parse()
230233
assert_matches_type(Optional[TrustedDomainEditResponse], trusted_domain, path=["response"])
231234

235+
@pytest.mark.skip(reason="HTTP 422 error from prism")
232236
@parametrize
233237
def test_streaming_response_edit(self, client: Cloudflare) -> None:
234238
with client.email_security.settings.trusted_domains.with_streaming_response.edit(
@@ -243,6 +247,7 @@ def test_streaming_response_edit(self, client: Cloudflare) -> None:
243247

244248
assert cast(Any, response.is_closed) is True
245249

250+
@pytest.mark.skip(reason="HTTP 422 error from prism")
246251
@parametrize
247252
def test_path_params_edit(self, client: Cloudflare) -> None:
248253
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):
@@ -485,6 +490,7 @@ async def test_path_params_delete(self, async_client: AsyncCloudflare) -> None:
485490
account_id="023e105f4ecef8ad9ca31a8372d0c353",
486491
)
487492

493+
@pytest.mark.skip(reason="HTTP 422 error from prism")
488494
@parametrize
489495
async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
490496
trusted_domain = await async_client.email_security.settings.trusted_domains.edit(
@@ -493,6 +499,7 @@ async def test_method_edit(self, async_client: AsyncCloudflare) -> None:
493499
)
494500
assert_matches_type(Optional[TrustedDomainEditResponse], trusted_domain, path=["response"])
495501

502+
@pytest.mark.skip(reason="HTTP 422 error from prism")
496503
@parametrize
497504
async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare) -> None:
498505
trusted_domain = await async_client.email_security.settings.trusted_domains.edit(
@@ -506,6 +513,7 @@ async def test_method_edit_with_all_params(self, async_client: AsyncCloudflare)
506513
)
507514
assert_matches_type(Optional[TrustedDomainEditResponse], trusted_domain, path=["response"])
508515

516+
@pytest.mark.skip(reason="HTTP 422 error from prism")
509517
@parametrize
510518
async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
511519
response = await async_client.email_security.settings.trusted_domains.with_raw_response.edit(
@@ -518,6 +526,7 @@ async def test_raw_response_edit(self, async_client: AsyncCloudflare) -> None:
518526
trusted_domain = await response.parse()
519527
assert_matches_type(Optional[TrustedDomainEditResponse], trusted_domain, path=["response"])
520528

529+
@pytest.mark.skip(reason="HTTP 422 error from prism")
521530
@parametrize
522531
async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> None:
523532
async with async_client.email_security.settings.trusted_domains.with_streaming_response.edit(
@@ -532,6 +541,7 @@ async def test_streaming_response_edit(self, async_client: AsyncCloudflare) -> N
532541

533542
assert cast(Any, response.is_closed) is True
534543

544+
@pytest.mark.skip(reason="HTTP 422 error from prism")
535545
@parametrize
536546
async def test_path_params_edit(self, async_client: AsyncCloudflare) -> None:
537547
with pytest.raises(ValueError, match=r"Expected a non-empty value for `account_id` but received ''"):

0 commit comments

Comments
 (0)