Allow to test if the service is running.
Send a GET /status request and check the service replies with a 200.
Differential D1293
Add /status entry point dereckson on Feb 15 2018, 10:48. Authored by Tags None Referenced Files
Subscribers None
Details
Allow to test if the service is running. Send a GET /status request and check the service replies with a 200. 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 To use PSR messages interfaces should be considered a good idea to
Diff Detail
|