Skip to content

Commit a9c3932

Browse files
feat: chore: skip unsupported auth tests
1 parent d46030e commit a9c3932

File tree

3 files changed

+33
-17
lines changed

3 files changed

+33
-17
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: 1924
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6183ef87f1b8eea6ad4bae542bfde2ec23a5526ae2b7bacdf6c6a4c48d990995.yml
33
openapi_spec_hash: 9c8ac3d56571ebf1e170d993b71ccb4d
4-
config_hash: bfa05f973c1b1797df33a05f942d5fac
4+
config_hash: 745cc9ff3958fe0add73c24590ca0864

tests/api-resources/abuse-reports/abuse-reports.test.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ describe('resource abuseReports', () => {
6767
});
6868
});
6969

70-
test('list: only required params', async () => {
70+
// TODO: support api token auth scheme
71+
test.skip('list: only required params', async () => {
7172
const responsePromise = client.abuseReports.list({ account_id: '023e105f4ecef8ad9ca31a8372d0c353' });
7273
const rawResponse = await responsePromise.asResponse();
7374
expect(rawResponse).toBeInstanceOf(Response);
@@ -78,7 +79,8 @@ describe('resource abuseReports', () => {
7879
expect(dataAndResponse.response).toBe(rawResponse);
7980
});
8081

81-
test('list: required and optional params', async () => {
82+
// TODO: support api token auth scheme
83+
test.skip('list: required and optional params', async () => {
8284
const response = await client.abuseReports.list({
8385
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
8486
created_after: '2009-11-10T23:00:00Z',
@@ -93,7 +95,8 @@ describe('resource abuseReports', () => {
9395
});
9496
});
9597

96-
test('get: only required params', async () => {
98+
// TODO: support api token auth scheme
99+
test.skip('get: only required params', async () => {
97100
const responsePromise = client.abuseReports.get('report_param', {
98101
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
99102
});
@@ -106,7 +109,8 @@ describe('resource abuseReports', () => {
106109
expect(dataAndResponse.response).toBe(rawResponse);
107110
});
108111

109-
test('get: required and optional params', async () => {
112+
// TODO: support api token auth scheme
113+
test.skip('get: required and optional params', async () => {
110114
const response = await client.abuseReports.get('report_param', {
111115
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
112116
});

tests/api-resources/iam/sso.test.ts

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

1212
describe('resource sso', () => {
13-
test('create: only required params', async () => {
13+
// TODO: HTTP 401 from prism, support api tokens
14+
test.skip('create: only required params', async () => {
1415
const responsePromise = client.iam.sso.create({
1516
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
1617
email_domain: 'example.com',
@@ -24,7 +25,8 @@ describe('resource sso', () => {
2425
expect(dataAndResponse.response).toBe(rawResponse);
2526
});
2627

27-
test('create: required and optional params', async () => {
28+
// TODO: HTTP 401 from prism, support api tokens
29+
test.skip('create: required and optional params', async () => {
2830
const response = await client.iam.sso.create({
2931
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
3032
email_domain: 'example.com',
@@ -33,7 +35,8 @@ describe('resource sso', () => {
3335
});
3436
});
3537

36-
test('update: only required params', async () => {
38+
// TODO: HTTP 401 from prism, support api tokens
39+
test.skip('update: only required params', async () => {
3740
const responsePromise = client.iam.sso.update('023e105f4ecef8ad9ca31a8372d0c353', {
3841
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
3942
});
@@ -46,15 +49,17 @@ describe('resource sso', () => {
4649
expect(dataAndResponse.response).toBe(rawResponse);
4750
});
4851

49-
test('update: required and optional params', async () => {
52+
// TODO: HTTP 401 from prism, support api tokens
53+
test.skip('update: required and optional params', async () => {
5054
const response = await client.iam.sso.update('023e105f4ecef8ad9ca31a8372d0c353', {
5155
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
5256
enabled: true,
5357
use_fedramp_language: false,
5458
});
5559
});
5660

57-
test('list: only required params', async () => {
61+
// TODO: HTTP 401 from prism, support api tokens
62+
test.skip('list: only required params', async () => {
5863
const responsePromise = client.iam.sso.list({ account_id: '023e105f4ecef8ad9ca31a8372d0c353' });
5964
const rawResponse = await responsePromise.asResponse();
6065
expect(rawResponse).toBeInstanceOf(Response);
@@ -65,11 +70,13 @@ describe('resource sso', () => {
6570
expect(dataAndResponse.response).toBe(rawResponse);
6671
});
6772

68-
test('list: required and optional params', async () => {
73+
// TODO: HTTP 401 from prism, support api tokens
74+
test.skip('list: required and optional params', async () => {
6975
const response = await client.iam.sso.list({ account_id: '023e105f4ecef8ad9ca31a8372d0c353' });
7076
});
7177

72-
test('delete: only required params', async () => {
78+
// TODO: HTTP 401 from prism, support api tokens
79+
test.skip('delete: only required params', async () => {
7380
const responsePromise = client.iam.sso.delete('023e105f4ecef8ad9ca31a8372d0c353', {
7481
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
7582
});
@@ -82,13 +89,15 @@ describe('resource sso', () => {
8289
expect(dataAndResponse.response).toBe(rawResponse);
8390
});
8491

85-
test('delete: required and optional params', async () => {
92+
// TODO: HTTP 401 from prism, support api tokens
93+
test.skip('delete: required and optional params', async () => {
8694
const response = await client.iam.sso.delete('023e105f4ecef8ad9ca31a8372d0c353', {
8795
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
8896
});
8997
});
9098

91-
test('beginVerification: only required params', async () => {
99+
// TODO: HTTP 401 from prism, support api tokens
100+
test.skip('beginVerification: only required params', async () => {
92101
const responsePromise = client.iam.sso.beginVerification('023e105f4ecef8ad9ca31a8372d0c353', {
93102
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
94103
});
@@ -101,13 +110,15 @@ describe('resource sso', () => {
101110
expect(dataAndResponse.response).toBe(rawResponse);
102111
});
103112

104-
test('beginVerification: required and optional params', async () => {
113+
// TODO: HTTP 401 from prism, support api tokens
114+
test.skip('beginVerification: required and optional params', async () => {
105115
const response = await client.iam.sso.beginVerification('023e105f4ecef8ad9ca31a8372d0c353', {
106116
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
107117
});
108118
});
109119

110-
test('get: only required params', async () => {
120+
// TODO: HTTP 401 from prism, support api tokens
121+
test.skip('get: only required params', async () => {
111122
const responsePromise = client.iam.sso.get('023e105f4ecef8ad9ca31a8372d0c353', {
112123
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
113124
});
@@ -120,7 +131,8 @@ describe('resource sso', () => {
120131
expect(dataAndResponse.response).toBe(rawResponse);
121132
});
122133

123-
test('get: required and optional params', async () => {
134+
// TODO: HTTP 401 from prism, support api tokens
135+
test.skip('get: required and optional params', async () => {
124136
const response = await client.iam.sso.get('023e105f4ecef8ad9ca31a8372d0c353', {
125137
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
126138
});

0 commit comments

Comments
 (0)