Page MenuHomeDevCentral

Add /status entry point
ClosedPublic

Authored by dereckson on Feb 15 2018, 10:48.
Tags
None
Referenced Files
F34917626: D1293.id3325.diff
Fri, Jul 3, 23:30
F34906381: D1293.id.diff
Fri, Jul 3, 21:06
Unknown Object (File)
Thu, Jul 2, 11:29
Unknown Object (File)
Thu, Jul 2, 08:52
Unknown Object (File)
Thu, Jul 2, 07:09
Unknown Object (File)
Tue, Jun 30, 16:22
Unknown Object (File)
Sun, Jun 28, 13:38
Unknown Object (File)
Thu, Jun 25, 23:28
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
Lint Not Applicable
Unit
Tests Not Applicable

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.