Page MenuHomeDevCentral

Add /status entry point
ClosedPublic

Authored by dereckson on Feb 15 2018, 10:48.
Tags
None
Referenced Files
F24582724: D1293.id3321.diff
Sat, Feb 28, 09:49
F24582583: D1293.id3321.diff
Sat, Feb 28, 09:38
F24577008: D1293.id3321.diff
Sat, Feb 28, 02:56
F24571241: D1293.id3325.diff
Fri, Feb 27, 20:25
F24571146: D1293.id3325.diff
Fri, Feb 27, 20:19
F24571144: D1293.id3325.diff
Fri, Feb 27, 20:19
F24569381: D1293.diff
Fri, Feb 27, 18:38
F24565778: D1293.id3324.diff
Fri, Feb 27, 14:05
Subscribers
None

Details

Summary

Allow to test if the service is running.

Send a GET /status request and check the service replies with a 200.

Test Plan

Tested through Postman.

Testing code
pm.test("Status code is 200", function () {
    pm.response.to.have.status(200);
});

pm.test("Body matches string", function () {
    pm.expect(pm.response.text()).to.include("ALIVE");
});

An unit test for the Service isn't possible right now, as the service
is a god object handling reading the web request and providing output.

To use PSR messages interfaces should be considered a good idea to
separate concerns.

Diff Detail

Repository
rAPISRVLOGS Servers log :: Add new entries API
Lint
No Lint Coverage
Unit
No Test Coverage
Branch
alive (branched from master)
Build Status
Buildable 2050
Build 2298: arc lint + arc unit

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Feb 15 2018, 10:49
This revision was automatically updated to reflect the committed changes.