Skip to content

Commit 7cdb9cc

Browse files
authored
chore: Delete non-streaming mock serial console (#2753)
delete non-streaming mock serial console
1 parent 27cf679 commit 7cdb9cc

File tree

2 files changed

+1
-3493
lines changed

2 files changed

+1
-3493
lines changed

mock-api/msw/handlers.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import { commaSeries } from '~/util/str'
3030
import { GiB } from '~/util/units'
3131

3232
import { genCumulativeI64Data } from '../metrics'
33-
import { serial } from '../serial'
3433
import { defaultSilo, toIdp } from '../silo'
3534
import { getTimestamps } from '../util'
3635
import { defaultFirewallRules } from '../vpc'
@@ -838,10 +837,6 @@ export const handlers = makeHandlers({
838837

839838
return json(instance, { status: 202 })
840839
},
841-
async instanceSerialConsole(_params) {
842-
await delay(3000)
843-
return json(serial)
844-
},
845840
instanceStart({ path, query }) {
846841
const instance = lookup.instance({ ...path, ...query })
847842
instance.run_state = 'starting'
@@ -1630,6 +1625,7 @@ export const handlers = makeHandlers({
16301625
certificateDelete: NotImplemented,
16311626
certificateList: NotImplemented,
16321627
certificateView: NotImplemented,
1628+
instanceSerialConsole: NotImplemented,
16331629
instanceSerialConsoleStream: NotImplemented,
16341630
instanceSshPublicKeyList: NotImplemented,
16351631
internetGatewayCreate: NotImplemented,

0 commit comments

Comments
 (0)