Ship production deployment and runtime observability
This commit is contained in:
parent
267665bb35
commit
775dd61963
1 changed files with 3712 additions and 175 deletions
|
|
@ -17,7 +17,7 @@ const result: MockResult = {
|
|||
}
|
||||
|
||||
test.beforeEach(async ({ page }) => {
|
||||
await page.routeWebSocket(/\/api\/v1\/events/, () => {})
|
||||
await page.routeWebSocket(/\/v1\/events/, () => {})
|
||||
})
|
||||
|
||||
test('completes credential, submission, result, history, and lifecycle workflows', async ({
|
||||
|
|
@ -162,10 +162,10 @@ async function mockApi(page: Page): Promise<{
|
|||
}
|
||||
let credential = sourceCredential('active')
|
||||
let currentJob = job('Existing archive')
|
||||
await page.route(/\/api\/v1\//, async (route) => {
|
||||
await page.route(/\/v1\//, async (route) => {
|
||||
const request = route.request()
|
||||
const url = new URL(request.url())
|
||||
const path = url.pathname.replace('/api/v1/', '')
|
||||
const path = url.pathname.replace('/v1/', '')
|
||||
state.paths.push(path)
|
||||
if (
|
||||
path === 'jobs' &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue