[asterisk-dev] [Code Review] Add CEL testing to the testsuite

Terry Wilson reviewboard at asterisk.org
Mon May 7 16:43:49 CDT 2012


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

(Updated May 7, 2012, 4:43 p.m.)


Review request for Asterisk Developers and Matt Jordan.


Changes
-------

Back out the changes to CDRTestCase as it really isn't particularly beneficial to have a CEL version of it.


Summary
-------

This moves the CSV processing out of cdr.py into astcsv.py. CDR and CEL inherit from there. CDRTestCase is modified to allow passing expectations for CEL as well. When using CDRTestCase, one has to put in entries for *all* expected CDR or CEL entries. For CEL, that is a *lot* of entries. Instead of using CDRTestcCase to just test CDR/CELs (and only test them with Local channels), just adding a few lines of code to other existing tests might really be the best use of the CDR/CEL modules since we want to make sure CDR/CELs are correct for a wide array of situations.


Diffs (updated)
-----

  /asterisk/trunk/configs/cel.conf PRE-CREATION 
  /asterisk/trunk/configs/cel_custom.conf PRE-CREATION 
  /asterisk/trunk/lib/python/asterisk/astcsv.py PRE-CREATION 
  /asterisk/trunk/lib/python/asterisk/cdr.py 3204 
  /asterisk/trunk/lib/python/asterisk/cel.py PRE-CREATION 
  /asterisk/trunk/lib/python/asterisk/self_test/CELMaster1.csv PRE-CREATION 
  /asterisk/trunk/lib/python/asterisk/self_test/CELMaster2.csv PRE-CREATION 
  /asterisk/trunk/runtests.py 3204 
  /asterisk/trunk/tests/iax2/basic-call/run-test 3204 

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


Testing
-------


Thanks,

Terry

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120507/1889ffbe/attachment.htm>


More information about the asterisk-dev mailing list