[asterisk-commits] mmichelson: testsuite/asterisk/trunk r5577 - in /asterisk/trunk/tests/channel...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Sep 10 10:44:58 CDT 2014


Author: mmichelson
Date: Wed Sep 10 10:44:53 2014
New Revision: 5577

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=5577
Log:
Add a test that ensures Asterisk can send large RLS NOTIFY requests.

A SIPp scenario subscribes to a list of 20 presence resources. The resulting
notification that Asterisk sends is ~17500 bytes in size. The test does not
check the integrity of the NOTIFY, only that Asterisk successfully sent it.

Review: https://reviewboard.asterisk.org/r/3978


Added:
    asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/
    asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/
    asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/
    asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/pjsip.conf   (with props)
    asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/sipp/
    asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/sipp/subscribe.xml   (with props)
    asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/test-config.yaml   (with props)
Modified:
    asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/tests.yaml

Added: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/extensions.conf?view=auto&rev=5577
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/extensions.conf Wed Sep 10 10:44:53 2014
@@ -1,0 +1,2 @@
+[default]
+exten => _2XX,hint,Custom:${EXTEN}

Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/pjsip.conf?view=auto&rev=5577
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/pjsip.conf Wed Sep 10 10:44:53 2014
@@ -1,0 +1,37 @@
+[global]
+type=global
+debug=yes
+
+[pres_list]
+type=resource_list
+event=presence
+list_item=200
+list_item=201
+list_item=202
+list_item=203
+list_item=204
+list_item=205
+list_item=206
+list_item=207
+list_item=208
+list_item=209
+list_item=210
+list_item=211
+list_item=212
+list_item=213
+list_item=214
+list_item=215
+list_item=216
+list_item=217
+list_item=218
+list_item=219
+list_item=220
+
+[main-transport]
+type=transport
+protocol=tcp
+bind=127.0.0.1
+
+[sipp]
+type=endpoint
+context=default

Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/sipp/subscribe.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/sipp/subscribe.xml?view=auto&rev=5577
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/sipp/subscribe.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/sipp/subscribe.xml Wed Sep 10 10:44:53 2014
@@ -1,0 +1,61 @@
+<?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: presence
+      Supported: eventlist
+      User-Agent: Digium Salad Panther
+      Accept: application/rlmi+xml
+      Accept: application/pidf+xml
+      Accept: multipart/related
+      Expires: 3600
+      Content-Length: 0
+
+    ]]>
+  </send>
+
+  <recv response="100"
+        optional="true">
+  </recv>
+
+  <recv response="200" rtd="true">
+      <action>
+          <ereg regexp="eventlist" search_in="hdr" header="Require:" check_it="true" assign_to="1" />
+      </action>
+  </recv>
+
+  <recv request="NOTIFY" crlf="true">
+      <action>
+          <ereg regexp="eventlist" search_in="hdr" header="Require:" check_it="true" assign_to="1" />
+      </action>
+  </recv>
+
+  <Reference variables="1" />
+
+  <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/off_nominal/large_notify/sipp/subscribe.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/sipp/subscribe.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/sipp/subscribe.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/test-config.yaml?view=auto&rev=5577
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/test-config.yaml Wed Sep 10 10:44:53 2014
@@ -1,0 +1,30 @@
+testinfo:
+    summary: 'Ensure that Asterisk is capable of sending large NOTIFY requests for RLS'
+    description: |
+        'For this test, a SIPp scenario subscribes to a presence list that contains
+        twenty resources. The initial full state NOTIFY that Asterisk sends in response
+        to the SUBSCRIBE is quite large. We ensure that Asterisk does not encounter any
+        errors when attempting to send this large message.'
+
+properties:
+    minversion: '13.0.0'
+    dependencies:
+        - python: 'twisted'
+        - python: 'starpy'
+        - asterisk: 'res_pjsip'
+        - asterisk: 'res_pjsip_pubsub'
+        - asterisk: 'res_pjsip_exten_state'
+    tags:
+        - rls
+        - pjsip
+
+test-modules:
+    test-object:
+        config-section: 'sipp-config'
+        typename: 'sipp.SIPpTestCase'
+
+sipp-config:
+    test-iterations:
+        -
+            scenarios:
+                - { 'key-args': {'scenario': 'subscribe.xml', '-i': '127.0.0.1', '-p': '5061', '-s': 'pres_list', '-t': 't1'} }

Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/large_notify/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/tests.yaml?view=diff&rev=5577&r1=5576&r2=5577
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/tests.yaml (original)
+++ asterisk/trunk/tests/channels/pjsip/subscriptions/rls/lists/off_nominal/tests.yaml Wed Sep 10 10:44:53 2014
@@ -1,4 +1,5 @@
 tests:
+    - test: 'large_notify'
     - dir: 'presence'
     - dir: 'mwi'
 




More information about the asterisk-commits mailing list