mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor: remove obsolete status check tests for ProbeIngest and IncomingRequestIngest
This commit is contained in:
@@ -1,50 +0,0 @@
|
||||
import { BASE_URL } from "../../Config";
|
||||
import { Page, expect, test } from "@playwright/test";
|
||||
import URL from "Common/Types/API/URL";
|
||||
|
||||
test.describe("check live and health check of the incoming request ingest", () => {
|
||||
test("check if incoming request ingest status is ok", async ({
|
||||
page,
|
||||
}: {
|
||||
page: Page;
|
||||
}) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/incoming-request-ingest/status")
|
||||
.toString()}`,
|
||||
);
|
||||
const content: string = await page.content();
|
||||
expect(content).toContain('{"status":"ok"}');
|
||||
});
|
||||
|
||||
test("check if incoming request ingest is ready", async ({
|
||||
page,
|
||||
}: {
|
||||
page: Page;
|
||||
}) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/incoming-request-ingest/status/ready")
|
||||
.toString()}`,
|
||||
);
|
||||
const content: string = await page.content();
|
||||
expect(content).toContain('{"status":"ok"}');
|
||||
});
|
||||
|
||||
test("check if incoming request ingest is live", async ({
|
||||
page,
|
||||
}: {
|
||||
page: Page;
|
||||
}) => {
|
||||
page.setDefaultNavigationTimeout(120000); // 2 minutes
|
||||
await page.goto(
|
||||
`${URL.fromString(BASE_URL.toString())
|
||||
.addRoute("/incoming-request-ingest/status/live")
|
||||
.toString()}`,
|
||||
);
|
||||
const content: string = await page.content();
|
||||
expect(content).toContain('{"status":"ok"}');
|
||||
});
|
||||
});
|
||||
@@ -1,38 +0,0 @@
|
||||
import { BASE_URL } from "../../Config";
|
||||
import { Page, expect, test } from "@playwright/test";
|
||||
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")
|
||||
.toString()}`,
|
||||
);
|
||||
const content: string = await page.content();
|
||||
expect(content).toContain('{"status":"ok"}');
|
||||
});
|
||||
|
||||
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")
|
||||
.toString()}`,
|
||||
);
|
||||
const content: string = await page.content();
|
||||
expect(content).toContain('{"status":"ok"}');
|
||||
});
|
||||
|
||||
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")
|
||||
.toString()}`,
|
||||
);
|
||||
const content: string = await page.content();
|
||||
expect(content).toContain('{"status":"ok"}');
|
||||
});
|
||||
});
|
||||
@@ -33,12 +33,6 @@ bash $scriptDir/endpoint-status.sh "Telemetry (Status Check)" $HOST_TO_CHECK/tel
|
||||
|
||||
bash $scriptDir/endpoint-status.sh "Telemetry (Ready Check)" $HOST_TO_CHECK/telemetry/status/ready
|
||||
|
||||
bash $scriptDir/endpoint-status.sh "ProbeIngest (Status Check)" $HOST_TO_CHECK/probe-ingest/status
|
||||
|
||||
bash $scriptDir/endpoint-status.sh "ProbeIngest (Ready Check)" $HOST_TO_CHECK/probe-ingest/status/ready
|
||||
|
||||
bash $scriptDir/endpoint-status.sh "IncomingRequestIngest (Ready Check)" $HOST_TO_CHECK/incoming-request-ingest/status/ready
|
||||
|
||||
echo "🚀 OneUptime is up! 🚀"
|
||||
echo ""
|
||||
echo "🎉🎉🎉 Done! 🎉🎉🎉"
|
||||
|
||||
Reference in New Issue
Block a user