Skip to content

Commit 47a0b63

Browse files
chore(internal): codegen related update
1 parent 74d97f5 commit 47a0b63

File tree

7 files changed

+52
-54
lines changed

7 files changed

+52
-54
lines changed

tests/api-resources/apps.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const client = new Kernel({
88
});
99

1010
describe('resource apps', () => {
11-
// skipped: tests are disabled for the time being
11+
// Prism tests are disabled
1212
test.skip('list', async () => {
1313
const responsePromise = client.apps.list();
1414
const rawResponse = await responsePromise.asResponse();
@@ -20,7 +20,7 @@ describe('resource apps', () => {
2020
expect(dataAndResponse.response).toBe(rawResponse);
2121
});
2222

23-
// skipped: tests are disabled for the time being
23+
// Prism tests are disabled
2424
test.skip('list: request options and params are passed correctly', async () => {
2525
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
2626
await expect(

tests/api-resources/browsers/browsers.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const client = new Kernel({
88
});
99

1010
describe('resource browsers', () => {
11-
// skipped: tests are disabled for the time being
11+
// Prism tests are disabled
1212
test.skip('create', async () => {
1313
const responsePromise = client.browsers.create();
1414
const rawResponse = await responsePromise.asResponse();
@@ -20,7 +20,7 @@ describe('resource browsers', () => {
2020
expect(dataAndResponse.response).toBe(rawResponse);
2121
});
2222

23-
// skipped: tests are disabled for the time being
23+
// Prism tests are disabled
2424
test.skip('create: request options and params are passed correctly', async () => {
2525
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
2626
await expect(
@@ -37,7 +37,7 @@ describe('resource browsers', () => {
3737
).rejects.toThrow(Kernel.NotFoundError);
3838
});
3939

40-
// skipped: tests are disabled for the time being
40+
// Prism tests are disabled
4141
test.skip('retrieve', async () => {
4242
const responsePromise = client.browsers.retrieve('htzv5orfit78e1m2biiifpbv');
4343
const rawResponse = await responsePromise.asResponse();
@@ -49,7 +49,7 @@ describe('resource browsers', () => {
4949
expect(dataAndResponse.response).toBe(rawResponse);
5050
});
5151

52-
// skipped: tests are disabled for the time being
52+
// Prism tests are disabled
5353
test.skip('list', async () => {
5454
const responsePromise = client.browsers.list();
5555
const rawResponse = await responsePromise.asResponse();
@@ -61,7 +61,7 @@ describe('resource browsers', () => {
6161
expect(dataAndResponse.response).toBe(rawResponse);
6262
});
6363

64-
// skipped: tests are disabled for the time being
64+
// Prism tests are disabled
6565
test.skip('delete: only required params', async () => {
6666
const responsePromise = client.browsers.delete({ persistent_id: 'persistent_id' });
6767
const rawResponse = await responsePromise.asResponse();
@@ -73,12 +73,12 @@ describe('resource browsers', () => {
7373
expect(dataAndResponse.response).toBe(rawResponse);
7474
});
7575

76-
// skipped: tests are disabled for the time being
76+
// Prism tests are disabled
7777
test.skip('delete: required and optional params', async () => {
7878
const response = await client.browsers.delete({ persistent_id: 'persistent_id' });
7979
});
8080

81-
// skipped: tests are disabled for the time being
81+
// Prism tests are disabled
8282
test.skip('deleteByID', async () => {
8383
const responsePromise = client.browsers.deleteByID('htzv5orfit78e1m2biiifpbv');
8484
const rawResponse = await responsePromise.asResponse();

tests/api-resources/browsers/fs/fs.test.ts

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const client = new Kernel({
88
});
99

1010
describe('resource fs', () => {
11-
// skipped: tests are disabled for the time being
11+
// Prism tests are disabled
1212
test.skip('createDirectory: only required params', async () => {
1313
const responsePromise = client.browsers.fs.createDirectory('id', { path: '/J!' });
1414
const rawResponse = await responsePromise.asResponse();
@@ -20,12 +20,12 @@ describe('resource fs', () => {
2020
expect(dataAndResponse.response).toBe(rawResponse);
2121
});
2222

23-
// skipped: tests are disabled for the time being
23+
// Prism tests are disabled
2424
test.skip('createDirectory: required and optional params', async () => {
2525
const response = await client.browsers.fs.createDirectory('id', { path: '/J!', mode: '0611' });
2626
});
2727

28-
// skipped: tests are disabled for the time being
28+
// Prism tests are disabled
2929
test.skip('deleteDirectory: only required params', async () => {
3030
const responsePromise = client.browsers.fs.deleteDirectory('id', { path: '/J!' });
3131
const rawResponse = await responsePromise.asResponse();
@@ -37,12 +37,12 @@ describe('resource fs', () => {
3737
expect(dataAndResponse.response).toBe(rawResponse);
3838
});
3939

40-
// skipped: tests are disabled for the time being
40+
// Prism tests are disabled
4141
test.skip('deleteDirectory: required and optional params', async () => {
4242
const response = await client.browsers.fs.deleteDirectory('id', { path: '/J!' });
4343
});
4444

45-
// skipped: tests are disabled for the time being
45+
// Prism tests are disabled
4646
test.skip('deleteFile: only required params', async () => {
4747
const responsePromise = client.browsers.fs.deleteFile('id', { path: '/J!' });
4848
const rawResponse = await responsePromise.asResponse();
@@ -54,12 +54,12 @@ describe('resource fs', () => {
5454
expect(dataAndResponse.response).toBe(rawResponse);
5555
});
5656

57-
// skipped: tests are disabled for the time being
57+
// Prism tests are disabled
5858
test.skip('deleteFile: required and optional params', async () => {
5959
const response = await client.browsers.fs.deleteFile('id', { path: '/J!' });
6060
});
6161

62-
// skipped: tests are disabled for the time being
62+
// Prism tests are disabled
6363
test.skip('fileInfo: only required params', async () => {
6464
const responsePromise = client.browsers.fs.fileInfo('id', { path: '/J!' });
6565
const rawResponse = await responsePromise.asResponse();
@@ -71,12 +71,12 @@ describe('resource fs', () => {
7171
expect(dataAndResponse.response).toBe(rawResponse);
7272
});
7373

74-
// skipped: tests are disabled for the time being
74+
// Prism tests are disabled
7575
test.skip('fileInfo: required and optional params', async () => {
7676
const response = await client.browsers.fs.fileInfo('id', { path: '/J!' });
7777
});
7878

79-
// skipped: tests are disabled for the time being
79+
// Prism tests are disabled
8080
test.skip('listFiles: only required params', async () => {
8181
const responsePromise = client.browsers.fs.listFiles('id', { path: '/J!' });
8282
const rawResponse = await responsePromise.asResponse();
@@ -88,12 +88,12 @@ describe('resource fs', () => {
8888
expect(dataAndResponse.response).toBe(rawResponse);
8989
});
9090

91-
// skipped: tests are disabled for the time being
91+
// Prism tests are disabled
9292
test.skip('listFiles: required and optional params', async () => {
9393
const response = await client.browsers.fs.listFiles('id', { path: '/J!' });
9494
});
9595

96-
// skipped: tests are disabled for the time being
96+
// Prism tests are disabled
9797
test.skip('move: only required params', async () => {
9898
const responsePromise = client.browsers.fs.move('id', { dest_path: '/J!', src_path: '/J!' });
9999
const rawResponse = await responsePromise.asResponse();
@@ -105,17 +105,16 @@ describe('resource fs', () => {
105105
expect(dataAndResponse.response).toBe(rawResponse);
106106
});
107107

108-
// skipped: tests are disabled for the time being
108+
// Prism tests are disabled
109109
test.skip('move: required and optional params', async () => {
110110
const response = await client.browsers.fs.move('id', { dest_path: '/J!', src_path: '/J!' });
111111
});
112112

113-
// skipped: tests are disabled for the time being
114-
test.skip('readFile: required and optional params', async () => {
113+
test('readFile: required and optional params', async () => {
115114
const response = await client.browsers.fs.readFile('id', { path: '/J!' });
116115
});
117116

118-
// skipped: tests are disabled for the time being
117+
// Prism tests are disabled
119118
test.skip('setFilePermissions: only required params', async () => {
120119
const responsePromise = client.browsers.fs.setFilePermissions('id', { mode: '0611', path: '/J!' });
121120
const rawResponse = await responsePromise.asResponse();
@@ -127,7 +126,7 @@ describe('resource fs', () => {
127126
expect(dataAndResponse.response).toBe(rawResponse);
128127
});
129128

130-
// skipped: tests are disabled for the time being
129+
// Prism tests are disabled
131130
test.skip('setFilePermissions: required and optional params', async () => {
132131
const response = await client.browsers.fs.setFilePermissions('id', {
133132
mode: '0611',
@@ -137,7 +136,7 @@ describe('resource fs', () => {
137136
});
138137
});
139138

140-
// skipped: tests are disabled for the time being
139+
// Prism tests are disabled
141140
test.skip('writeFile: only required params', async () => {
142141
const responsePromise = client.browsers.fs.writeFile(
143142
'id',
@@ -153,7 +152,7 @@ describe('resource fs', () => {
153152
expect(dataAndResponse.response).toBe(rawResponse);
154153
});
155154

156-
// skipped: tests are disabled for the time being
155+
// Prism tests are disabled
157156
test.skip('writeFile: required and optional params', async () => {
158157
const response = await client.browsers.fs.writeFile(
159158
'id',

tests/api-resources/browsers/fs/watch.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const client = new Kernel({
88
});
99

1010
describe('resource watch', () => {
11-
// skipped: currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail
11+
// Prism doesn't support text/event-stream responses
1212
test.skip('events: only required params', async () => {
1313
const responsePromise = client.browsers.fs.watch.events('watch_id', { id: 'id' });
1414
const rawResponse = await responsePromise.asResponse();
@@ -20,12 +20,12 @@ describe('resource watch', () => {
2020
expect(dataAndResponse.response).toBe(rawResponse);
2121
});
2222

23-
// skipped: currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail
23+
// Prism doesn't support text/event-stream responses
2424
test.skip('events: required and optional params', async () => {
2525
const response = await client.browsers.fs.watch.events('watch_id', { id: 'id' });
2626
});
2727

28-
// skipped: tests are disabled for the time being
28+
// Prism tests are disabled
2929
test.skip('start: only required params', async () => {
3030
const responsePromise = client.browsers.fs.watch.start('id', { path: 'path' });
3131
const rawResponse = await responsePromise.asResponse();
@@ -37,12 +37,12 @@ describe('resource watch', () => {
3737
expect(dataAndResponse.response).toBe(rawResponse);
3838
});
3939

40-
// skipped: tests are disabled for the time being
40+
// Prism tests are disabled
4141
test.skip('start: required and optional params', async () => {
4242
const response = await client.browsers.fs.watch.start('id', { path: 'path', recursive: true });
4343
});
4444

45-
// skipped: tests are disabled for the time being
45+
// Prism tests are disabled
4646
test.skip('stop: only required params', async () => {
4747
const responsePromise = client.browsers.fs.watch.stop('watch_id', { id: 'id' });
4848
const rawResponse = await responsePromise.asResponse();
@@ -54,7 +54,7 @@ describe('resource watch', () => {
5454
expect(dataAndResponse.response).toBe(rawResponse);
5555
});
5656

57-
// skipped: tests are disabled for the time being
57+
// Prism tests are disabled
5858
test.skip('stop: required and optional params', async () => {
5959
const response = await client.browsers.fs.watch.stop('watch_id', { id: 'id' });
6060
});

tests/api-resources/browsers/replays.test.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const client = new Kernel({
88
});
99

1010
describe('resource replays', () => {
11-
// skipped: tests are disabled for the time being
11+
// Prism tests are disabled
1212
test.skip('list', async () => {
1313
const responsePromise = client.browsers.replays.list('id');
1414
const rawResponse = await responsePromise.asResponse();
@@ -20,12 +20,11 @@ describe('resource replays', () => {
2020
expect(dataAndResponse.response).toBe(rawResponse);
2121
});
2222

23-
// skipped: tests are disabled for the time being
24-
test.skip('download: required and optional params', async () => {
23+
test('download: required and optional params', async () => {
2524
const response = await client.browsers.replays.download('replay_id', { id: 'id' });
2625
});
2726

28-
// skipped: tests are disabled for the time being
27+
// Prism tests are disabled
2928
test.skip('start', async () => {
3029
const responsePromise = client.browsers.replays.start('id');
3130
const rawResponse = await responsePromise.asResponse();
@@ -37,7 +36,7 @@ describe('resource replays', () => {
3736
expect(dataAndResponse.response).toBe(rawResponse);
3837
});
3938

40-
// skipped: tests are disabled for the time being
39+
// Prism tests are disabled
4140
test.skip('start: request options and params are passed correctly', async () => {
4241
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
4342
await expect(
@@ -49,7 +48,7 @@ describe('resource replays', () => {
4948
).rejects.toThrow(Kernel.NotFoundError);
5049
});
5150

52-
// skipped: tests are disabled for the time being
51+
// Prism tests are disabled
5352
test.skip('stop: only required params', async () => {
5453
const responsePromise = client.browsers.replays.stop('replay_id', { id: 'id' });
5554
const rawResponse = await responsePromise.asResponse();
@@ -61,7 +60,7 @@ describe('resource replays', () => {
6160
expect(dataAndResponse.response).toBe(rawResponse);
6261
});
6362

64-
// skipped: tests are disabled for the time being
63+
// Prism tests are disabled
6564
test.skip('stop: required and optional params', async () => {
6665
const response = await client.browsers.replays.stop('replay_id', { id: 'id' });
6766
});

tests/api-resources/deployments.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const client = new Kernel({
88
});
99

1010
describe('resource deployments', () => {
11-
// skipped: tests are disabled for the time being
11+
// Prism tests are disabled
1212
test.skip('create: only required params', async () => {
1313
const responsePromise = client.deployments.create({
1414
entrypoint_rel_path: 'src/app.py',
@@ -23,7 +23,7 @@ describe('resource deployments', () => {
2323
expect(dataAndResponse.response).toBe(rawResponse);
2424
});
2525

26-
// skipped: tests are disabled for the time being
26+
// Prism tests are disabled
2727
test.skip('create: required and optional params', async () => {
2828
const response = await client.deployments.create({
2929
entrypoint_rel_path: 'src/app.py',
@@ -35,7 +35,7 @@ describe('resource deployments', () => {
3535
});
3636
});
3737

38-
// skipped: tests are disabled for the time being
38+
// Prism tests are disabled
3939
test.skip('retrieve', async () => {
4040
const responsePromise = client.deployments.retrieve('id');
4141
const rawResponse = await responsePromise.asResponse();
@@ -47,7 +47,7 @@ describe('resource deployments', () => {
4747
expect(dataAndResponse.response).toBe(rawResponse);
4848
});
4949

50-
// skipped: tests are disabled for the time being
50+
// Prism tests are disabled
5151
test.skip('list', async () => {
5252
const responsePromise = client.deployments.list();
5353
const rawResponse = await responsePromise.asResponse();
@@ -59,15 +59,15 @@ describe('resource deployments', () => {
5959
expect(dataAndResponse.response).toBe(rawResponse);
6060
});
6161

62-
// skipped: tests are disabled for the time being
62+
// Prism tests are disabled
6363
test.skip('list: request options and params are passed correctly', async () => {
6464
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
6565
await expect(
6666
client.deployments.list({ app_name: 'app_name' }, { path: '/_stainless_unknown_path' }),
6767
).rejects.toThrow(Kernel.NotFoundError);
6868
});
6969

70-
// skipped: currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail
70+
// Prism doesn't support text/event-stream responses
7171
test.skip('follow', async () => {
7272
const responsePromise = client.deployments.follow('id');
7373
const rawResponse = await responsePromise.asResponse();
@@ -79,7 +79,7 @@ describe('resource deployments', () => {
7979
expect(dataAndResponse.response).toBe(rawResponse);
8080
});
8181

82-
// skipped: currently no good way to test endpoints with content type text/event-stream, Prism mock server will fail
82+
// Prism doesn't support text/event-stream responses
8383
test.skip('follow: request options and params are passed correctly', async () => {
8484
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
8585
await expect(

0 commit comments

Comments
 (0)