Increase default navigation timeout for status checks and add new probe ingest tests

This commit is contained in:
Simon Larsen
2024-11-25 14:00:53 +00:00
parent 2ff9b47f1c
commit d091c93bfc
8 changed files with 20 additions and 5 deletions

View File

@@ -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")

View File

@@ -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")

View File

@@ -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", () => {

View File

@@ -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")

View File

@@ -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")

View File

@@ -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")

View File

@@ -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());

View File

@@ -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