HomeDevCentral

Add /status entry point

Description

Add /status entry point

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.

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D1293

Details

Provenance
derecksonAuthored on Feb 15 2018, 10:46
derecksonPushed on Feb 15 2018, 12:51
Reviewer
dereckson
Differential Revision
D1293: Add /status entry point
Parents
rAPISRVLOGS738d7478ff78: Initial revision
Branches
Unknown
Tags
Unknown