feat(core): Add health endpoint for task broker server (no-changelog) (#11920)

This commit is contained in:
Tomi Turtiainen
2024-11-27 14:50:41 +02:00
committed by GitHub
parent a8df221bfb
commit 9669380097
5 changed files with 70 additions and 11 deletions

View File

@@ -0,0 +1,22 @@
import { setupBrokerTestServer } from '@test-integration/utils/task-broker-test-server';
describe('TaskRunnerServer', () => {
const { agent, server } = setupBrokerTestServer({
authToken: 'token',
mode: 'external',
});
beforeAll(async () => {
await server.start();
});
afterAll(async () => {
await server.stop();
});
describe('/healthz', () => {
it('should return 200', async () => {
await agent.get('/healthz').expect(200);
});
});
});