[asterisk-commits] mmichelson: testsuite/asterisk/trunk r4841 - in /asterisk/trunk/tests/channel...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Mar 14 13:06:31 CDT 2014
Author: mmichelson
Date: Fri Mar 14 13:06:25 2014
New Revision: 4841
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4841
Log:
Test for conflicts in unsolicited and solicited MWI.
This adds a test where an endpoint that receives unsolicited MWI attempts
to subscribe to an AOR that provides MWI for the same mailbox. The subscription
attempt fails.
Review: https://reviewboard.asterisk.org/r/3344
Added:
asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/
asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/configs/
asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/configs/ast1/
asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/configs/ast1/pjsip.conf (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/sipp/
asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/sipp/bad_subscribe.xml (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/test-config.yaml (with props)
Added: asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/configs/ast1/pjsip.conf?view=auto&rev=4841
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/configs/ast1/pjsip.conf Fri Mar 14 13:06:25 2014
@@ -1,0 +1,11 @@
+[main-transport]
+type = transport
+bind = 127.0.0.1
+
+[sipp]
+type = endpoint
+mailboxes = mailbox_a
+
+[mwi-aor]
+type = aor
+mailboxes = mailbox_a
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/sipp/bad_subscribe.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/sipp/bad_subscribe.xml?view=auto&rev=4841
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/sipp/bad_subscribe.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/sipp/bad_subscribe.xml Fri Mar 14 13:06:25 2014
@@ -1,0 +1,26 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Bad Subscribe">
+ <send retrans="500">
+ <![CDATA[
+
+ SUBSCRIBE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
+ Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+ From: sipp <sip:sipp@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
+ To: sut <sip:[service]@[remote_ip]:[remote_port]>
+ Call-ID: [call_id]
+ CSeq: 1 SUBSCRIBE
+ Contact: sip:sipp@[local_ip]:[local_port]
+ Max-Forwards: 70
+ Subject: Performance Test
+ Event: message-summary
+ Accept: application/simple-message-summary
+ Expires: 3600
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+ <recv response="500" />
+</scenario>
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/sipp/bad_subscribe.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/sipp/bad_subscribe.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/sipp/bad_subscribe.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/test-config.yaml?view=auto&rev=4841
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/test-config.yaml Fri Mar 14 13:06:25 2014
@@ -1,0 +1,28 @@
+testinfo:
+ summary: 'Try a subscription to MWI that conflicts with endpoint settings'
+ description: |
+ 'For this test, we create an endpoint that receives unsolicited MWI
+ for mailbox_a. The endpoint then attempts to SUBSCRIBE to an AoR
+ that provides MWI for mailbox_a. The SUBSCRIBE should be rejected
+ since settings conflict with each other.'
+
+test-modules:
+ test-object:
+ config-section: test-object-config
+ typename: 'sipp.SIPpTestCase'
+
+test-object-config:
+ test-iterations:
+ -
+ scenarios:
+ - { 'key-args': {'scenario': 'bad_subscribe.xml', '-i': '127.0.0.1', '-p': '5061', '-s': 'mwi-aor'} }
+
+properties:
+ minversion: '12.2.0'
+ dependencies:
+ - sipp :
+ version : 'v3.0'
+ - asterisk : 'res_pjsip'
+ - asterisk : 'res_pjsip_mwi'
+ tags:
+ - pjsip
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/test-config.yaml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/test-config.yaml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/mwi/conflict/test-config.yaml
------------------------------------------------------------------------------
svn:mime-type = text/plain
More information about the asterisk-commits
mailing list