Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ coverage/
.idea/
src/scripts/*.py
.claude/
swagger-ui/
swagger-ui/
# local bench script with embedded credentials — never commit
benchmarks/bench.ts
37 changes: 0 additions & 37 deletions acceptance/specs/admin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,6 @@ describeAcceptance(
})
expect(migrations.json).toBeTruthy()

await client.request('GET', '/migrations/failed?cursor=not-a-number', {
expectedStatus: 400,
headers,
})

await client.request('POST', '/migrations/reset/fleet', {
body: {
untilMigration: 'not-a-migration',
Expand Down Expand Up @@ -465,38 +460,6 @@ describeAcceptance(
)
expect(upsertedTenant.json?.fileSizeLimit).toBe(4_194_304)

const migrationJobs = await client.request<unknown[] | MessageResponse>(
'GET',
`/tenants/${createdTenantId}/migrations/jobs`,
{
expectedStatus: [200, 400],
headers,
}
)
if (migrationJobs.status === 200) {
expect(Array.isArray(migrationJobs.json)).toBe(true)
} else {
expect((migrationJobs.json as MessageResponse | undefined)?.message).toBe(
'Queue is not enabled'
)
}

const deletedMigrationJobs = await client.request<number | MessageResponse>(
'DELETE',
`/tenants/${createdTenantId}/migrations/jobs`,
{
expectedStatus: [200, 400],
headers,
}
)
if (deletedMigrationJobs.status === 200) {
expect(typeof deletedMigrationJobs.json).toBe('number')
} else {
expect((deletedMigrationJobs.json as MessageResponse | undefined)?.message).toBe(
'Queue is not enabled'
)
}

await client.request('DELETE', `/tenants/${createdTenantId}`, {
expectedStatus: 204,
headers,
Expand Down
Loading