Skip to content

Commit 707c314

Browse files
authored
Merge pull request #50 from NHSDigital/mm-apm-1717-add-api-monitoring
apm-1717: status requires a 'status: pass' for compatibility
2 parents dfb1d4a + c1c0561 commit 707c314

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

docker/sync-wrap/src/app.postman.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ describe("express with postman-echo", function () {
5757
request(server)
5858
.get("/_status")
5959
.expect(200, {
60+
status: "pass",
6061
ping: "pong",
6162
service: "sync-wrap",
6263
_version: {}

docker/sync-wrap/src/app.slowapp.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ describe("express with slowapp no insecure", function () {
3535
request(server)
3636
.get("/_status")
3737
.expect(200, {
38+
status: "pass",
3839
ping: "pong",
3940
service: "sync-wrap",
4041
_version: {}
@@ -81,6 +82,7 @@ describe("express with slowap", function () {
8182
request(server)
8283
.get("/_status")
8384
.expect(200, {
85+
status: "pass",
8486
ping: "pong",
8587
service: "sync-wrap",
8688
_version: {}
@@ -171,6 +173,7 @@ describe("express with slowap with sub path", function () {
171173
request(server)
172174
.get("/_status")
173175
.expect(200, {
176+
status: "pass",
174177
ping: "pong",
175178
service: "sync-wrap",
176179
_version: {test: 123}

docker/sync-wrap/src/handlers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ const sleep = (delay) => {
249249

250250
function ping_response(req) {
251251
return {
252+
status: "pass",
252253
ping: "pong",
253254
service: req.app.locals.app_name,
254255
_version: req.app.locals.version_info

0 commit comments

Comments
 (0)