[asterisk-dev] [Code Review] 3015: Testsuite: CONFBRIDGE_RESULT test

Mark Michelson reviewboard at asterisk.org
Wed Nov 20 11:35:49 CST 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3015/
-----------------------------------------------------------

(Updated Nov. 20, 2013, 5:35 p.m.)


Review request for Asterisk Developers.


Changes
-------

Account for the fact that the channel variable is now set to "FAILED" on a failure as opposed to "ERROR".


Repository: testsuite


Description
-------

This creates a test scenario that ensures that the five different CONFBRIDGE_RESULT values are set correctly upon exit. The test sets up a conference with five participants: Alice, Bob, Carol, Darnell, and Egbert.

Alice, Bob, and Carol enter initially. Alice has the "end_marked" option set on her user profile. Bob attempts to use a nonexistent user profile "sausage" to enter the conference, and Carol has access to a basic user DTMF menu. When Carol enters, this triggers Darnell to enter the conference. Darnell has access to a basic admin menu and is a marked user. It also triggers Carol to enter a DTMF sequence to leave the conference. When Darnell enters, this triggers Egbert to enter the conference. When Egbert enters, this triggers Darnell to press a DTMF sequence to kick Egbert out. When Egbert exits the conference, this triggers Darnell to hang up. Since Darnell is the final marked user in the conference, this should result in Alice being ejected from the conference.

Under this scenario, the CONFBRIDGE_RESULT variables should be as follows:
Alice: ENDMARKED
Bob: ERROR
Carol: DTMF
Darnell: HANGUP
Egbert: KICKED


Diffs (updated)
-----

  /asterisk/trunk/tests/apps/confbridge/tests.yaml 4331 
  /asterisk/trunk/lib/python/asterisk/apptest.py 4331 

Diff: https://reviewboard.asterisk.org/r/3015/diff/


Testing
-------

Ran the test in a while loop and ensured that in 30+ executions, the test passed each time.


Thanks,

Mark Michelson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20131120/0f915c01/attachment-0001.html>


More information about the asterisk-dev mailing list