Skip to content

Commit 0f0ba6e

Browse files
chore(api): skip broken prism tests
Skips codegen'd tests that aren't working right. - connector tests need an schema tweak to express mutually exclusive properties - cf-one is referencing an invalid security scheme, will also need a schema update
1 parent 4e89649 commit 0f0ba6e

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1769
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-22bd279cee32addc645f421ef52b9cc207ec998f883e77e580f7be79950833b4.yml
33
openapi_spec_hash: 3e0f59ac2722028954566a4c850e8849
4-
config_hash: 18e6b76de8b719dd7c9c28614ac32643
4+
config_hash: 70c445587de6c1089e4d0eadb6eb9d9a

tests/api-resources/cloudforce-one/threat-events/datasets/health.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const client = new Cloudflare({
1010
});
1111

1212
describe('resource health', () => {
13-
test('get: only required params', async () => {
13+
// TODO: HTTP 401 from prism
14+
test.skip('get: only required params', async () => {
1415
const responsePromise = client.cloudforceOne.threatEvents.datasets.health.get(
1516
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
1617
{ account_id: 'account_id' },
@@ -24,7 +25,8 @@ describe('resource health', () => {
2425
expect(dataAndResponse.response).toBe(rawResponse);
2526
});
2627

27-
test('get: required and optional params', async () => {
28+
// TODO: HTTP 401 from prism
29+
test.skip('get: required and optional params', async () => {
2830
const response = await client.cloudforceOne.threatEvents.datasets.health.get(
2931
'182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
3032
{ account_id: 'account_id' },

tests/api-resources/magic-transit/connectors/connectors.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const client = new Cloudflare({
1010
});
1111

1212
describe('resource connectors', () => {
13-
test('create: only required params', async () => {
13+
// TODO: consider oneOf instead of maxProperties to indicate that this can be either id or serial_number
14+
test.skip('create: only required params', async () => {
1415
const responsePromise = client.magicTransit.connectors.create({
1516
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
1617
device: {},
@@ -24,7 +25,8 @@ describe('resource connectors', () => {
2425
expect(dataAndResponse.response).toBe(rawResponse);
2526
});
2627

27-
test('create: required and optional params', async () => {
28+
// TODO: consider oneOf instead of maxProperties to indicate that this can be either id or serial_number
29+
test.skip('create: required and optional params', async () => {
2830
const response = await client.magicTransit.connectors.create({
2931
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
3032
device: { id: 'id', serial_number: 'serial_number' },

0 commit comments

Comments
 (0)