[asterisk-dev] [Code Review]: SIP Dialog pre- / post-test condition checking

mjordan reviewboard at asterisk.org
Wed Sep 14 15:02:32 CDT 2011



> On Sept. 14, 2011, 2:41 p.m., Paul Belanger wrote:
> > Again, if you are happy with this, feel free to commit it.

I will after I make the history checking part of the test-config.  That'll get posted up as a diff for this, as it looks to be a bit of work.


> On Sept. 14, 2011, 2:41 p.m., Paul Belanger wrote:
> > /asterisk/team/mjordan/test_conditions/trunk/lib/python/asterisk/SipDialogTestCondition.py, line 66
> > <https://reviewboard.asterisk.org/r/1437/diff/1/?file=20594#file20594line66>
> >
> >     Guess we don't turn this off?

Nope - you need the history turned on in order to do the checking in the post-test.  This only applies to whatever tests use the SIP dialog checking, so it shouldn't add additional overhead to tests that don't want it.


- mjordan


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


On Sept. 14, 2011, 1:46 p.m., mjordan wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1437/
> -----------------------------------------------------------
> 
> (Updated Sept. 14, 2011, 1:46 p.m.)
> 
> 
> Review request for Asterisk Developers and Paul Belanger.
> 
> 
> Summary
> -------
> 
> This adds the ability to check for SIP dialogs before and after a test run.  Before a test run, the presence of any SIP dialogs is treated as a test failure.  After a test run, SIP dialogs are allowed to exist, as they will most likely be scheduled for deletion (which could be up to 32 seconds after the test has completed executing).  However, the SIP history is checked for each present dialog to ensure that the SIP dialog includes a hangup, and that it was scheduled for destruction with the scheduler.
> 
> 
> Diffs
> -----
> 
>   /asterisk/team/mjordan/test_conditions/trunk/lib/python/asterisk/SipDialogTestCondition.py PRE-CREATION 
>   /asterisk/team/mjordan/test_conditions/trunk/tests/apps/voicemail/authenticate_nominal/test-config.yaml 2207 
>   /asterisk/team/mjordan/test_conditions/trunk/tests/apps/voicemail/check_voicemail_new_user/test-config.yaml 2207 
>   /asterisk/team/mjordan/test_conditions/trunk/tests/apps/voicemail/check_voicemail_nominal/test-config.yaml 2207 
>   /asterisk/team/mjordan/test_conditions/trunk/tests/apps/voicemail/leave_voicemail_nominal/test-config.yaml 2207 
> 
> Diff: https://reviewboard.asterisk.org/r/1437/diff
> 
> 
> Testing
> -------
> 
> Local machine, including unit tests for parsing of Asterisk CLI responses.
> 
> 
> Thanks,
> 
> mjordan
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20110914/19edd8e4/attachment.htm>


More information about the asterisk-dev mailing list