Skip to content

Commit 274efe2

Browse files
authored
Include success message in smoke test body (#459)
When loading a smoke test URL in a browser (e.g. from a Datadog synthetics alert) it's impossible to tell a 2xx from a 5xx. This includes a simple message to indicate the smoke test is happy.
1 parent c97bb91 commit 274efe2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/curly-deers-sort.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'skuba': patch
3+
---
4+
5+
**template/koa-rest-api:** Include success message in smoke test body

template/koa-rest-api/src/api/smokeTest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ import { Middleware } from 'src/types/koa';
77
export const smokeTestHandler: Middleware = async (ctx) => {
88
await Promise.all([smokeTestJobStorage()]);
99

10-
ctx.body = '';
10+
ctx.body = 'Smoke test passed';
1111
};

0 commit comments

Comments
 (0)