[Asterisk-code-review] pjsip/ami/show subscriptions: Fill out SIPp scenario more. (testsuite[master])

Joshua Colp asteriskteam at digium.com
Thu Mar 31 10:42:07 CDT 2016


Joshua Colp has uploaded a new change for review.

  https://gerrit.asterisk.org/2518

Change subject: pjsip/ami/show_subscriptions: Fill out SIPp scenario more.
......................................................................

pjsip/ami/show_subscriptions: Fill out SIPp scenario more.

In some situations it was possible for the SIPp scenario to end
before the test had really finished, causing Asterisk to shutdown
and the test to fail.

This change fills out the SIPp scenario more to expect another
NOTIFY message and also adds a pause to give the test time to
get inbound subscription details.

Change-Id: I429855159c9f01105c5cc1c111e7c9009fc37d55
---
M tests/channels/pjsip/ami/show_subscriptions/sipp/subscribe.xml
1 file changed, 19 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/testsuite refs/changes/18/2518/1

diff --git a/tests/channels/pjsip/ami/show_subscriptions/sipp/subscribe.xml b/tests/channels/pjsip/ami/show_subscriptions/sipp/subscribe.xml
index c2ef4a6..328b378 100644
--- a/tests/channels/pjsip/ami/show_subscriptions/sipp/subscribe.xml
+++ b/tests/channels/pjsip/ami/show_subscriptions/sipp/subscribe.xml
@@ -58,4 +58,23 @@
   </send>
 
   <recv response="200" rtd="true" />
+
+  <recv request="NOTIFY" crlf="true" />
+
+  <send>
+    <![CDATA[
+
+      SIP/2.0 200 OK
+      [last_Via:]
+      [last_From:]
+      [last_To:]
+      [last_Call-ID:]
+      [last_CSeq:]
+      Contact: <sip:[local_ip]:[local_port];transport=[transport]>
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <pause milliseconds="4000" />
 </scenario>

-- 
To view, visit https://gerrit.asterisk.org/2518
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I429855159c9f01105c5cc1c111e7c9009fc37d55
Gerrit-PatchSet: 1
Gerrit-Project: testsuite
Gerrit-Branch: master
Gerrit-Owner: Joshua Colp <jcolp at digium.com>



More information about the asterisk-code-review mailing list