[asterisk-dev] Change in testsuite[master]: stasis: set a channel variable on websocket disconnect error
Ashley Sanders (Code Review)
asteriskteam at digium.com
Wed Apr 8 15:21:29 CDT 2015
Hello Mark Michelson, Matt Jordan,
I'd like you to reexamine a change. Please visit
https://gerrit.asterisk.org/18
to look at the new patch set (#9).
Change subject: stasis: set a channel variable on websocket disconnect error
......................................................................
stasis: set a channel variable on websocket disconnect error
This test is to ensure Asterisk applies the correct state to the channel
variable, STASISSTATUS. STASISSTATUS was introduced as a means for Stasis
applications to have context when errors occur in Stasis that disrupt normal
processing.
The test scenarios:
1. The 'Babs' scenario:
a. A channel is originated through ARI referencing a subscribed app (Babs)
that was registered in Stasis during startup.
b. After Stasis is started, the channel is then hungup.
c. A check is made to ensure that the value of STASISSTATUS is SUCCESS.
2. The 'Bugs' scenario:
a. A channel is originated through ARI referencing a subscribed app
(BugsAlt) that was never registered in Stasis.
b. A check is then made to ensure that the value of STASISSTATUS is FAILED.
3. The 'Buster' scenario:
a. A channel is originated through ARI referencing a subscribed app
(Buster) that was registered in Stasis during startup.
b. While the channel from step 'a' is still active, the websocket is then
disconnected out from underneath ARI.
c. A new channel is originated through ARI, also referencing the subscribed
app (Buster) that was registered in Stasis during startup.
d. A check is then made to ensure that the value of STASISSTATUS is FAILED.
ASTERISK-24802
Reported By: Kevin Harwell
Change-Id: I0f7dadfd429bd30e9f07a531f47884d8c923fc13
---
A tests/rest_api/applications/stasisstatus/__init__.py
A tests/rest_api/applications/stasisstatus/ari_client.py
A tests/rest_api/applications/stasisstatus/configs/ast1/extensions.conf
A tests/rest_api/applications/stasisstatus/monitor.py
A tests/rest_api/applications/stasisstatus/observable_object.py
A tests/rest_api/applications/stasisstatus/run-test
A tests/rest_api/applications/stasisstatus/test-config.yaml
A tests/rest_api/applications/stasisstatus/test_case.py
A tests/rest_api/applications/stasisstatus/test_scenario.py
M tests/rest_api/applications/tests.yaml
10 files changed, 1,454 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/18/18/9
--
To view, visit https://gerrit.asterisk.org/18
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I0f7dadfd429bd30e9f07a531f47884d8c923fc13
Gerrit-PatchSet: 9
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Ashley Sanders <asanders at digium.com>
Gerrit-Reviewer: Ashley Sanders <asanders at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>
More information about the asterisk-dev
mailing list