mirror of
https://github.com/Netflix/dial-reference.git
synced 2026-06-08 10:59:59 +00:00
Check that 403 is returned when DIAL launch of the System app is attempted.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user