[svn-commits] mmichelson: testsuite/asterisk/trunk r5335 - /asterisk/trunk/tests/channels/p...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Aug 5 11:59:25 CDT 2014


Author: mmichelson
Date: Tue Aug  5 11:59:19 2014
New Revision: 5335

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=5335
Log:
Get the show_endpoint test passing again.

Adding ContactStatusDetail caused the test not to pass because
the number of list items reported was inaccurate.

Note that there is a XXX comment added into the test-config.yaml
file because the number of list items is not necessarily what
you might expect for it to be.


Modified:
    asterisk/trunk/tests/channels/pjsip/ami/show_endpoint/test-config.yaml

Modified: asterisk/trunk/tests/channels/pjsip/ami/show_endpoint/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/ami/show_endpoint/test-config.yaml?view=diff&rev=5335&r1=5334&r2=5335
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/ami/show_endpoint/test-config.yaml (original)
+++ asterisk/trunk/tests/channels/pjsip/ami/show_endpoint/test-config.yaml Tue Aug  5 11:59:19 2014
@@ -208,10 +208,25 @@
             type: 'headermatch'
             conditions:
                 match:
+                    Event: 'ContactStatusDetail'
+            requirements:
+                match:
+                    AOR: 'user1'
+                    URI: '(sip:user1 at 127.0.0.1:5062|sip:user1 at 127.0.0.2:5063)'
+                    Status: 'Unknown'
+                    RoundtripUsec: 'N/A'
+                    EndpointName: 'user1'
+            count: 2
+        -
+            type: 'headermatch'
+            conditions:
+                match:
                     Event: 'EndpointDetailComplete'
             requirements:
                 match:
                     ActionID: '12345'
                     EventList: 'Complete'
-                    ListItems: '5'
-            count: 1
+                    # XXX The ListItems here is the number of distinct events, not the actual number of list items.
+                    # This may need to be altered if the number of ListItems reported gets altered.
+                    ListItems: '6'
+            count: 1




More information about the svn-commits mailing list