[asterisk-commits] jrose: testsuite/asterisk/trunk r5671 - in /asterisk/trunk/tests/channels/pjs...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Oct 3 09:55:44 CDT 2014
Author: jrose
Date: Fri Oct 3 09:55:36 2014
New Revision: 5671
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=5671
Log:
RLS Tests: off-nominal lists of lists tests
Adds the off nominal tests for lists of lists described here:
https://wiki.asterisk.org/wiki/display/AST/Resource+List+Subscription+Test+Plan
ASTERISK-23873 #close
Reported by: Mark Michelson
Review: https://reviewboard.asterisk.org/r/4020/
Added:
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/configs/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/configs/ast1/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/configs/ast1/pjsip.conf (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/sipp/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/sipp/list_subscribe.xml (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/test-config.yaml (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/configs/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/configs/ast1/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/configs/ast1/pjsip.conf (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/sipp/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/sipp/list_subscribe.xml (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/test-config.yaml (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/configs/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/configs/ast1/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/configs/ast1/pjsip.conf (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/sipp/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/sipp/mwi_subscription.xml (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/test-config.yaml (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/tests.yaml (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/configs/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/configs/ast1/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/configs/ast1/pjsip.conf (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/sipp/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/sipp/list_subscribe.xml (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/test-config.yaml (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_w_list_support/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_w_list_support/configs/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_w_list_support/configs/ast1/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_w_list_support/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_w_list_support/configs/ast1/pjsip.conf (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_w_list_support/sipp/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_w_list_support/sipp/list_subscribe.xml (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_w_list_support/test-config.yaml (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_wo_list_support/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_wo_list_support/configs/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_wo_list_support/configs/ast1/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_wo_list_support/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_wo_list_support/configs/ast1/pjsip.conf (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_wo_list_support/sipp/
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_wo_list_support/sipp/presence_subscription.xml (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/shared_name_wo_list_support/test-config.yaml (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/tests.yaml (with props)
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/tests.yaml (with props)
Modified:
asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/tests.yaml
Added: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/configs/ast1/pjsip.conf?view=auto&rev=5671
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/configs/ast1/pjsip.conf Fri Oct 3 09:55:36 2014
@@ -1,0 +1,42 @@
+[mail_list]
+type=resource_list
+event=message-summary
+list_item = carol
+list_item = mail_sublist
+full_state = yes
+
+[mail_sublist]
+type=resource_list
+event=message-summary
+list_item = alice
+list_item = bob
+list_item = carol ; duplicate entry
+full_state = yes
+
+[alice]
+type=aor
+mailboxes=alice at default
+
+[bob]
+type=aor
+mailboxes=bob at default
+
+[carol]
+type=aor
+mailboxes=carol at default
+
+[sipp]
+type=aor
+max_contacts=1
+contact=sip:sipp at 127.0.0.1:5061
+
+[sipp]
+type = endpoint
+context = default
+aors=sipp
+transport=local
+
+[local]
+type=transport
+protocol=udp
+bind=0.0.0.0:5060
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/sipp/list_subscribe.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/sipp/list_subscribe.xml?view=auto&rev=5671
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/sipp/list_subscribe.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/sipp/list_subscribe.xml Fri Oct 3 09:55:36 2014
@@ -1,0 +1,52 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Basic Sipstone UAC">
+ <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
+ Supported: eventlist
+ Accept: application/rlmi+xml
+ Accept: application/simple-message-summary
+ Accept: multipart/related
+ Expires: 3600
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+ <recv response="100"
+ optional="true">
+ </recv>
+
+ <recv response="200" rtd="true">
+ </recv>
+
+ <recv request="NOTIFY" crlf="true">
+ </recv>
+
+ <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>
+</scenario>
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/sipp/list_subscribe.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/sipp/list_subscribe.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/sipp/list_subscribe.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/test-config.yaml?view=auto&rev=5671
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/test-config.yaml Fri Oct 3 09:55:36 2014
@@ -1,0 +1,95 @@
+testinfo:
+ summary: 'Lists of Lists off-nominal: resource duplication.'
+ description: |
+ 'This test uses SIPp to establish a subscription to a resource list.
+ The resource list is an MWI list that contains two elements, carol and
+ a sublist containing alice, bob, and a duplicate entry for carol. Once
+ the subscription is established, a PCAP listner is used to ensure that
+ the NOTIFY body sent by Asterisk is what is expected. It checks the
+ following:
+ * That the multipart body contains three parts
+ * That the multipart body consists of one RLMI document, an MWI
+ document for carol, and a Multipart body that contains the
+ inner list (RLMI, and two MWI bodies for alice and bob) without
+ a duplicate entry for carol.
+ * That each Multipart document has the proper integrity
+ * Each multipart body has is only a single RLMI list element
+ * The version number is 0
+ * Each multipart body has the correct number of list elements
+ * Each resource element has an instance element with a cid
+ attribute corresponding to the Content-ID of its multipart body
+ part
+ * Each resource element has the expected name element present
+ * The MWI documents have proper integrity
+ * The reported unread messages/voice messages are correct for
+ each part
+ * The Content-ID header matches the corresponding cid attribute
+ from the instance element in the RLMI document.'
+
+properties:
+ minversion: '13.0.0'
+ dependencies:
+ - python: 'twisted'
+ - python: 'starpy'
+ - python: 'yappcap'
+ - python: 'pyxb'
+ - asterisk: 'res_pjsip'
+ - asterisk: 'res_pjsip_pubsub'
+ - asterisk: 'res_mwi_external'
+ tags:
+ - mwi
+ - rls
+ - pjsip
+
+test-modules:
+ add-to-search-path:
+ -
+ 'tests/channels/pjsip/subscriptions/rls/'
+ test-object:
+ config-section: 'test-case-config'
+ typename: 'sipp.SIPpTestCase'
+ modules:
+ -
+ config-section: 'test-config'
+ typename: 'rls_test.IntegrityCheck'
+
+test-case-config:
+ test-iterations:
+ -
+ scenarios:
+ - { 'key-args': {'scenario': 'list_subscribe.xml', '-i': '127.0.0.1', '-p': '5061', '-s': 'mail_list'} }
+
+test-config:
+ list_name: 'mail_list'
+ resources:
+ -
+ {
+ # Primary list carol wins because it was listed before mail_sublist
+ 'carol': {
+ 'type': 'MWI',
+ 'state': 'active',
+ 'voice_message': '0/0 (0/0)',
+ 'messages_waiting': 'no'
+ },
+ 'mail_sublist': {
+ 'type': 'Multipart',
+ 'state': 'active',
+ 'sublist': {
+ 'alice': {
+ 'type': 'MWI',
+ 'state': 'active',
+ 'voice_message': '0/0 (0/0)',
+ 'messages_waiting': 'no'
+ },
+ 'bob': {
+ 'type': 'MWI',
+ 'state': 'active',
+ 'voice_message': '0/0 (0/0)',
+ 'messages_waiting': 'no'
+ }
+ }
+ }
+ }
+ full_state:
+ -
+ True
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/test-config.yaml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/test-config.yaml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/resource_duplication/test-config.yaml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/configs/ast1/pjsip.conf?view=auto&rev=5671
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/configs/ast1/pjsip.conf Fri Oct 3 09:55:36 2014
@@ -1,0 +1,40 @@
+[carol] ;resource list has the same name as something that can be referred to as a list item
+type=resource_list
+event=message-summary
+list_item = alice
+list_item = mail_sublist
+full_state = yes
+
+[mail_sublist]
+type=resource_list
+event=message-summary
+list_item = bob
+full_state = yes
+
+[alice]
+type=aor
+mailboxes=alice at default
+
+[bob]
+type=aor
+mailboxes=bob at default
+
+[carol]
+type=aor
+mailboxes=carol at default
+
+[sipp]
+type=aor
+max_contacts=1
+contact=sip:sipp at 127.0.0.1:5061
+
+[sipp]
+type = endpoint
+context = default
+aors=sipp
+transport=local
+
+[local]
+type=transport
+protocol=udp
+bind=0.0.0.0:5060
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/sipp/list_subscribe.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/sipp/list_subscribe.xml?view=auto&rev=5671
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/sipp/list_subscribe.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/sipp/list_subscribe.xml Fri Oct 3 09:55:36 2014
@@ -1,0 +1,52 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Basic Sipstone UAC">
+ <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
+ Supported: eventlist
+ Accept: application/rlmi+xml
+ Accept: application/simple-message-summary
+ Accept: multipart/related
+ Expires: 3600
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+ <recv response="100"
+ optional="true">
+ </recv>
+
+ <recv response="200" rtd="true">
+ </recv>
+
+ <recv request="NOTIFY" crlf="true">
+ </recv>
+
+ <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>
+</scenario>
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/sipp/list_subscribe.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/sipp/list_subscribe.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/sipp/list_subscribe.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/test-config.yaml?view=auto&rev=5671
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/test-config.yaml Fri Oct 3 09:55:36 2014
@@ -1,0 +1,87 @@
+testinfo:
+ summary: 'Lists of Lists off-nominal: subscribing to a name that is for
+ both a list of lists and a stand alone resource.'
+ description: |
+ 'This test uses SIPp to establish a subscription to a resource list.
+ The resource list named carol is an MWI list that contains two
+ elements, alice and a sublist containing bob. Once the subscription
+ is established, a PCAP listner is used to ensure that the NOTIFY body
+ sent by Asterisk is what is expected. It checks the following:
+ * That the multipart body contains three parts
+ * That the multipart body consists of one RLMI document, an MWI
+ document for alice, and a Multipart body that contains the
+ inner list (RLMI, and one MWI body for alice)
+ * That each Multipart document has the proper integrity
+ * Each multipart body has is only a single RLMI list element
+ * The version number is 0
+ * Each multipart body has the correct number of list elements
+ * Each resource element has an instance element with a cid
+ attribute corresponding to the Content-ID of its multipart body
+ part
+ * Each resource element has the expected name element present
+ * The MWI documents have proper integrity
+ * The reported unread messages/voice messages are correct for
+ each part
+ * The Content-ID header matches the corresponding cid attribute
+ from the instance element in the RLMI document.'
+
+properties:
+ minversion: '13.0.0'
+ dependencies:
+ - python: 'twisted'
+ - python: 'starpy'
+ - python: 'yappcap'
+ - python: 'pyxb'
+ - asterisk: 'res_pjsip'
+ - asterisk: 'res_pjsip_pubsub'
+ - asterisk: 'res_mwi_external'
+ tags:
+ - mwi
+ - rls
+ - pjsip
+
+test-modules:
+ add-to-search-path:
+ -
+ 'tests/channels/pjsip/subscriptions/rls/'
+ test-object:
+ config-section: 'test-case-config'
+ typename: 'sipp.SIPpTestCase'
+ modules:
+ -
+ config-section: 'test-config'
+ typename: 'rls_test.IntegrityCheck'
+
+test-case-config:
+ test-iterations:
+ -
+ scenarios:
+ - { 'key-args': {'scenario': 'list_subscribe.xml', '-i': '127.0.0.1', '-p': '5061', '-s': 'carol'} }
+
+test-config:
+ list_name: 'carol'
+ resources:
+ -
+ {
+ 'alice': {
+ 'type': 'MWI',
+ 'state': 'active',
+ 'voice_message': '0/0 (0/0)',
+ 'messages_waiting': 'no'
+ },
+ 'mail_sublist': {
+ 'type': 'Multipart',
+ 'state': 'active',
+ 'sublist': {
+ 'bob': {
+ 'type': 'MWI',
+ 'state': 'active',
+ 'voice_message': '0/0 (0/0)',
+ 'messages_waiting': 'no'
+ }
+ }
+ }
+ }
+ full_state:
+ -
+ True
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/test-config.yaml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/test-config.yaml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_w_list_support/test-config.yaml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/configs/ast1/pjsip.conf?view=auto&rev=5671
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/configs/ast1/pjsip.conf Fri Oct 3 09:55:36 2014
@@ -1,0 +1,44 @@
+[global]
+type=global
+debug=yes
+
+[carol] ;resource list has the same name as something that can be referred to as a list item
+type=resource_list
+event=message-summary
+list_item = alice
+list_item = mail_sublist
+full_state = yes
+
+[mail_sublist]
+type=resource_list
+event=message-summary
+list_item = bob
+full_state = yes
+
+[alice]
+type=aor
+max_contacts=1
+
+[bob]
+type=aor
+mailboxes=bob at default
+
+[carol]
+type=aor
+mailboxes=carol at default
+
+[sipp]
+type=aor
+max_contacts=1
+contact=sip:sipp at 127.0.0.1:5061
+
+[sipp]
+type = endpoint
+context = default
+aors=sipp
+transport=local
+
+[local]
+type=transport
+protocol=udp
+bind=0.0.0.0:5060
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/sipp/mwi_subscription.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/sipp/mwi_subscription.xml?view=auto&rev=5671
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/sipp/mwi_subscription.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/sipp/mwi_subscription.xml Fri Oct 3 09:55:36 2014
@@ -1,0 +1,61 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Subscribe">
+ <!-- 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/rlmi+xml
+ Accept: application/simple-message-summary
+ Accept: multipart/related
+ Expires: 3600
+ Content-Length: 0
+
+ ]]>
+ </send>
+
+ <recv response="100"
+ optional="true">
+ </recv>
+
+ <recv response="200" rtd="true">
+ </recv>
+
+ <recv request="NOTIFY" crlf="true">
+ <action>
+ <ereg regexp="message-summary" check_it="true" search_in="hdr" header="Event" assign_to="subevent" />
+ <ereg regexp="no" check_it="true" search_in="hdr" header="Messages-Waiting" assign_to="messages_waiting" />
+ <!-- regexp below checks for: '0/0 (0/0)' -->
+ <ereg regexp="0\\/0 \\(0\\/0\\)" check_it="true" search_in="hdr" header="Voice-Message" assign_to="voice_message" />
+ <!-- This one makes sure we aren't looking at an event list -->
+ <ereg regexp="application\\/rlmi\\+xml" check_it_inverse="true" search_in="hdr" header="Content-Type" assign_to="not_eventlist" />
+ </action>
+ </recv>
+
+ <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>
+
+ <Reference variables="subevent,messages_waiting,voice_message,not_eventlist" />
+</scenario>
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/sipp/mwi_subscription.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/sipp/mwi_subscription.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/sipp/mwi_subscription.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/test-config.yaml?view=auto&rev=5671
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/test-config.yaml Fri Oct 3 09:55:36 2014
@@ -1,0 +1,36 @@
+testinfo:
+ summary: 'Lists of Lists off-nominal: subscribing to a name that is for
+ both a list of lists and a stand alone resource without event
+ list support.'
+ description: |
+ 'This test uses SIPp to establish a subscription to an MWI resource
+ named carol. The caveat is that a separate resource list exists with
+ the same name and we expect the MWI resource to be the resource
+ subscribed to since the subscription does not support eventlist type
+ NOTIFY messages.'
+
+properties:
+ minversion: '13.0.0'
+ dependencies:
+ - python: 'twisted'
+ - python: 'starpy'
+ - python: 'yappcap'
+ - python: 'pyxb'
+ - asterisk: 'res_pjsip'
+ - asterisk: 'res_pjsip_pubsub'
+ - asterisk: 'res_mwi_external'
+ tags:
+ - mwi
+ - rls
+ - pjsip
+
+test-modules:
+ test-object:
+ config-section: test-case-config
+ typename: 'sipp.SIPpTestCase'
+
+test-case-config:
+ test-iterations:
+ -
+ scenarios:
+ - { 'key-args': {'scenario': 'mwi_subscription.xml', '-i': '127.0.0.1', '-p': '5061', '-s': 'carol'} }
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/test-config.yaml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/test-config.yaml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/shared_name_wo_list_support/test-config.yaml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/tests.yaml?view=auto&rev=5671
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/tests.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/tests.yaml Fri Oct 3 09:55:36 2014
@@ -1,0 +1,4 @@
+tests:
+ - test: 'shared_name_w_list_support'
+ - test: 'shared_name_wo_list_support'
+ - test: 'resource_duplication'
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/tests.yaml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/tests.yaml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/mwi/tests.yaml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/configs/ast1/extensions.conf?view=auto&rev=5671
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/configs/ast1/extensions.conf Fri Oct 3 09:55:36 2014
@@ -1,0 +1,4 @@
+[default]
+exten => alice,hint,Custom:alice
+exten => bob,hint,Custom:bob
+exten => carol,hint,Custom:carol
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/configs/ast1/pjsip.conf?view=auto&rev=5671
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists_of_lists/off_nominal/presence/resource_duplication/configs/ast1/pjsip.conf Fri Oct 3 09:55:36 2014
@@ -1,0 +1,28 @@
+[pres_list]
+type = resource_list
+event = presence
+list_item = pres_sublist
+list_item = carol
+
+[pres_sublist]
+type = resource_list
+event = presence
+list_item = alice
+list_item = bob
+list_item = carol ; notice that this is a duplicate from pres_list -- this entry should prevail since pres_sublist is included before carol above
+
+[sipp]
+type=aor
+max_contacts=1
+contact=sip:sipp at 127.0.0.1:5061
+
+[sipp]
[... 670 lines stripped ...]
More information about the asterisk-commits
mailing list