[asterisk-dev] [Code Review] Testsuite AMI Event Module - add ordered expectation lists to facilitate call ID testing

Mark Michelson reviewboard at asterisk.org
Thu Jul 19 14:16:15 CDT 2012


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

Ship it!


Regarding the actual new AMI instance type, it's great.

I'm not sure if the modifications for the existing test should necessarily go in. The test is aimed to check ForkCDR, and having it fail due to unexpected callIDs would be odd, if you ask me.


/asterisk/trunk/sample-yaml/ami-config.yaml.sample
<https://reviewboard.asterisk.org/r/2056/#comment12801>

    Forgot to close your quotes here.


- Mark


On July 18, 2012, 2:43 p.m., jrose wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/2056/
> -----------------------------------------------------------
> 
> (Updated July 18, 2012, 2:43 p.m.)
> 
> 
> Review request for Asterisk Developers, Mark Michelson and Matt Jordan.
> 
> 
> Summary
> -------
> 
> This patch adds a new type to the AMI Event Module which allows requirements to be specified in a list format which creates a list of ordered expectations for events. This is useful for testing Call ID stuff like in the example (modified console_fork_after_busy_forward)
> 
> The actual test included doesn't necessarily need to be included, and the primary purpose of this review is to examine the format and the changes to the AMI Event Module.
> 
> Also, some changes are made to fix some problems that were noticed during development like a missed include in the ForkCDRModule and a missed return in TestCase.
> 
> 
> Diffs
> -----
> 
>   /asterisk/trunk/lib/python/asterisk/TestCase.py 3330 
>   /asterisk/trunk/lib/python/asterisk/ami.py 3330 
>   /asterisk/trunk/sample-yaml/ami-config.yaml.sample 3330 
>   /asterisk/trunk/tests/cdr/ForkCdrModule.py 3330 
>   /asterisk/trunk/tests/cdr/console_fork_after_busy_forward/test-config.yaml 3330 
> 
> Diff: https://reviewboard.asterisk.org/r/2056/diff
> 
> 
> Testing
> -------
> 
> Mostly I just tested different configurations in the included example test.  Events in the requirements not matching, nomatch conditions not being met properly, having too many events come in, not having enough events come in, differing allowable numbers of events (set via 'count') from the expected events set and stuff like that.
> 
> 
> Thanks,
> 
> jrose
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120719/5fe4741b/attachment.htm>


More information about the asterisk-dev mailing list