From ea691d1c4b371815f99a9b9e3ac1aadf9868c4ba Mon Sep 17 00:00:00 2001 From: Kevin Morris Date: Thu, 25 Oct 2018 08:50:00 -0700 Subject: [PATCH] Check that 403 is returned when DIAL launch of the System app is attempted. --- server/tests/js_tests/tests/checkStatusofSystemApp.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/tests/js_tests/tests/checkStatusofSystemApp.js b/server/tests/js_tests/tests/checkStatusofSystemApp.js index 5a8a1ad..6a8239f 100644 --- a/server/tests/js_tests/tests/checkStatusofSystemApp.js +++ b/server/tests/js_tests/tests/checkStatusofSystemApp.js @@ -65,6 +65,14 @@ function test() { if(response.statusCode !== 403) { throw new Error(`Tried to stop ${systemApp}. Expected statusCode: 403 but got ${response.statusCode}`); } + utils.printDebug(`Confirmed response to stop request is 403 as expected.`); + }) + .then(dial.launchApplication.bind(null, host, systemApp)) + .then((response) => { + if(response.statusCode !== 403) { + throw new Error(`Tried to launch ${systemApp}. Expected statusCode: 403 but got ${response.statusCode}`); + } + utils.printDebug(`Confirmed response to launch request is 403 as expected.`); }) .then(() => { utils.printTestSuccess()