mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Increase default navigation timeout for status checks and add new probe ingest tests
This commit is contained in:
@@ -4,6 +4,7 @@ import URL from "Common/Types/API/URL";
|
||||
|
||||
test.describe("check live and health check of the app", () => {
|
||||
test("check if app status is ok", async ({ page }: { page: Page }) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString()).addRoute("/status").toString()}`,
|
||||
);
|
||||
@@ -12,6 +13,7 @@ test.describe("check live and health check of the app", () => {
|
||||
});
|
||||
|
||||
test("check if app is ready", async ({ page }: { page: Page }) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/status/ready")
|
||||
@@ -22,6 +24,7 @@ test.describe("check live and health check of the app", () => {
|
||||
});
|
||||
|
||||
test("check if app is live", async ({ page }: { page: Page }) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/status/live")
|
||||
|
||||
@@ -8,6 +8,7 @@ test.describe("check live and health check of the fluent ingest", () => {
|
||||
}: {
|
||||
page: Page;
|
||||
}) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/fluent-ingest/status")
|
||||
@@ -18,6 +19,7 @@ test.describe("check live and health check of the fluent ingest", () => {
|
||||
});
|
||||
|
||||
test("check if fluent ingest is ready", async ({ page }: { page: Page }) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/fluent-ingest/status/ready")
|
||||
@@ -28,6 +30,7 @@ test.describe("check live and health check of the fluent ingest", () => {
|
||||
});
|
||||
|
||||
test("check if fluent ingest is live", async ({ page }: { page: Page }) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/fluent-ingest/status/live")
|
||||
|
||||
@@ -6,7 +6,7 @@ test.beforeEach(async ({ page }: { page: Page }) => {
|
||||
if (!IS_BILLING_ENABLED) {
|
||||
return;
|
||||
}
|
||||
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(URL.fromString(BASE_URL.toString()).toString());
|
||||
});
|
||||
test.describe("check if pages loades with its title", () => {
|
||||
|
||||
@@ -8,6 +8,7 @@ test.describe("check live and health check of the incoming request ingest", () =
|
||||
}: {
|
||||
page: Page;
|
||||
}) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/incoming-request-ingest/status")
|
||||
@@ -22,6 +23,7 @@ test.describe("check live and health check of the incoming request ingest", () =
|
||||
}: {
|
||||
page: Page;
|
||||
}) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/incoming-request-ingest/status/ready")
|
||||
@@ -36,6 +38,7 @@ test.describe("check live and health check of the incoming request ingest", () =
|
||||
}: {
|
||||
page: Page;
|
||||
}) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/incoming-request-ingest/status/live")
|
||||
|
||||
@@ -8,6 +8,7 @@ test.describe("check live and health check of the open-telemetry-ingest", () =>
|
||||
}: {
|
||||
page: Page;
|
||||
}) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/open-telemetry-ingest/status")
|
||||
@@ -22,6 +23,7 @@ test.describe("check live and health check of the open-telemetry-ingest", () =>
|
||||
}: {
|
||||
page: Page;
|
||||
}) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/open-telemetry-ingest/status/ready")
|
||||
@@ -36,6 +38,7 @@ test.describe("check live and health check of the open-telemetry-ingest", () =>
|
||||
}: {
|
||||
page: Page;
|
||||
}) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/open-telemetry-ingest/status/live")
|
||||
|
||||
@@ -4,6 +4,7 @@ import URL from "Common/Types/API/URL";
|
||||
|
||||
test.describe("check live and health check of the app", () => {
|
||||
test("check if app status is ok", async ({ page }: { page: Page }) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/probe-ingest/status")
|
||||
@@ -14,6 +15,7 @@ test.describe("check live and health check of the app", () => {
|
||||
});
|
||||
|
||||
test("check if app is ready", async ({ page }: { page: Page }) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/probe-ingest/status/ready")
|
||||
@@ -24,6 +26,7 @@ test.describe("check live and health check of the app", () => {
|
||||
});
|
||||
|
||||
test("check if app is live", async ({ page }: { page: Page }) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/probe-ingest/status/live")
|
||||
@@ -12,7 +12,7 @@ test.describe("Basic Status Page", () => {
|
||||
// pass this test if the user is not registered
|
||||
return;
|
||||
}
|
||||
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
// go to login page
|
||||
await page.goto(URL.fromString(STATUS_PAGE_URL.toString()).toString());
|
||||
|
||||
|
||||
@@ -388,17 +388,17 @@ notifications:
|
||||
|
||||
startupProbe: # Startup probe configuration
|
||||
enabled: true
|
||||
periodSeconds: 10
|
||||
periodSeconds: 30
|
||||
failureThreshold: 18
|
||||
|
||||
livenessProbe: # Liveness probe configuration
|
||||
enabled: true
|
||||
periodSeconds: 10
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 120
|
||||
initialDelaySeconds: 10
|
||||
|
||||
readinessProbe: # Readiness probe configuration
|
||||
enabled: true
|
||||
periodSeconds: 10
|
||||
periodSeconds: 30
|
||||
initialDelaySeconds: 10
|
||||
timeoutSeconds: 120
|
||||
|
||||
Reference in New Issue
Block a user