[asterisk-dev] [Code Review] 4077: Test Suite: Unregister registered outbound registrations

jbigelow reviewboard at asterisk.org
Tue Oct 14 11:03:55 CDT 2014


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

Review request for Asterisk Developers.


Repository: testsuite


Description
-------

This tests unregistering outbound registrations that are registered using the PJSIPUnregister AMI action. It ensures that Asterisk sends a REGISTER message with an Expires header of '0' upon executing the PJSIPUnregister AMI action and that AMI Registry events are present with a status of "Unregistered". The test uses all combinations of IPv4/IPv6 and UDP/TCP.

Upon an outbound registration registering, the PJSIPUnregister action is executed to unregister it. SIPp is used as the registrar to respond when Asterisk registers and unregisters where the Expires header is checked. 

Note: This test currently fails due to the following Asterisk bugs:
* https://issues.asterisk.org/jira/browse/ASTERISK-24411
* https://issues.asterisk.org/jira/browse/ASTERISK-24414

The SIPp scenario contains a pause at the end to work around ASTERISK-24414 for the time being. The 'expectedResult' property is set within the YAML file to expect the test to fail (and thus pass) while ASTERISK-24411 is unresolved however there appears to be a bug in testsuite as it's still marked as failed.


Diffs
-----

  /asterisk/trunk/tests/channels/pjsip/registration/outbound/unregister/unauthed/test-config.yaml PRE-CREATION 
  /asterisk/trunk/tests/channels/pjsip/registration/outbound/unregister/unauthed/sipp/unregister.xml PRE-CREATION 
  /asterisk/trunk/tests/channels/pjsip/registration/outbound/unregister/unauthed/configs/ast1/pjsip.conf PRE-CREATION 
  /asterisk/trunk/tests/channels/pjsip/registration/outbound/unregister/tests.yaml PRE-CREATION 
  /asterisk/trunk/tests/channels/pjsip/registration/outbound/tests.yaml 5726 

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


Testing
-------

* Ran test in a shell loop 300 times without failure (with patch for Asterisk applied from ASTERISK-24411 and work around for ASTERISK-24414)
* Ran test several times without patch applied from ASTERISK-24411 which constantly failed as expected.
* Ran test several times without work around for ASTERISK-24414 which frequently failed as expected.


Thanks,

jbigelow

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


More information about the asterisk-dev mailing list