Merge pull request #19270 from overleaf/jpa-faster-e2e-in-ci

[server-pro] faster e2e test CI wall time

GitOrigin-RevId: eeb6d3044d888acd4d52919507c0bc566d7e0b46
This commit is contained in:
Jakob Ackermann
2024-07-15 09:03:49 +00:00
committed by Copybot
parent c3ed95bc48
commit eb32d3c8be
21 changed files with 154 additions and 103 deletions
+2 -12
View File
@@ -9,23 +9,12 @@ export async function dockerCompose(cmd: string, ...args: string[]) {
})
}
export async function mongoInit() {
return await fetchJSON(`${hostAdminUrl}/mongo/init`, {
method: 'POST',
})
}
export async function resetData() {
return await fetchJSON(`${hostAdminUrl}/reset/data`, {
method: 'POST',
})
}
export async function reconfigure({
pro = false,
version = 'latest',
vars = {},
withDataDir = false,
resetData = false,
}) {
return await fetchJSON(`${hostAdminUrl}/reconfigure`, {
method: 'POST',
@@ -34,6 +23,7 @@ export async function reconfigure({
version,
vars,
withDataDir,
resetData,
}),
})
}