[asterisk-commits] jrose: testsuite/asterisk/trunk r5317 - in /asterisk/trunk/tests/channels/pjs...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jul 31 11:21:29 CDT 2014
Author: jrose
Date: Thu Jul 31 11:21:24 2014
New Revision: 5317
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=5317
Log:
Testsuite: Test usage of PJSIPNotify AMI command when URI is specified.
Tests the functionality added by r419851
Review: https://reviewboard.asterisk.org/r/3825/
Added:
asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/
asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/configs/
asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/configs/ast1/
asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/configs/ast1/pjsip.conf (with props)
asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/sipp/
asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/sipp/options.xml (with props)
asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/test-config.yaml (with props)
Modified:
asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/tests.yaml
Modified: asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/tests.yaml?view=diff&rev=5317&r1=5316&r2=5317
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/tests.yaml (original)
+++ asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/tests.yaml Thu Jul 31 11:21:24 2014
@@ -3,3 +3,4 @@
- test: 'custom_headers'
- test: 'reserved_headers'
- test: 'content'
+ - test: 'to_uri'
Added: asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/configs/ast1/pjsip.conf?view=auto&rev=5317
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/configs/ast1/pjsip.conf (added)
+++ asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/configs/ast1/pjsip.conf Thu Jul 31 11:21:24 2014
@@ -1,0 +1,11 @@
+[local]
+type=transport
+protocol=udp
+bind=0.0.0.0
+
+[default_endpoint]
+type=endpoint
+
+[global]
+type=global
+default_outbound_endpoint=default_endpoint
Propchange: asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/sipp/options.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/sipp/options.xml?view=auto&rev=5317
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/sipp/options.xml (added)
+++ asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/sipp/options.xml Thu Jul 31 11:21:24 2014
@@ -1,0 +1,37 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="Notify Request">
+
+ <recv request="NOTIFY">
+ <action>
+ <ereg regexp=": lettuce/varieties"
+ search_in="hdr"
+ header="Content-Type"
+ check_it="true"
+ assign_to="1"/>
+ <log message="Received NOTIFY [$1]." />
+ <ereg regexp="Bibb\r\nBoston\r\nIceberg\r\nRomaine"
+ search_in="body"
+ check_it="true"
+ assign_to="2"/>
+ <log message="Received NOTIFY [$2]." />
+ </action>
+ </recv>
+
+ <send>
+ <![CDATA[
+
+ SIP/2.0 200 OK
+ [last_Via:]
+ [last_From:]
+ [last_To:];tag=[pid]SIPpTag[call_number]
+ [last_Call-ID:]
+ [last_CSeq:]
+ Contact: <sip:user1@[local_ip]:[local_port];transport=[transport]>
+ Content-Type: application/sdp
+ Content-Length: [len]
+ ]]>
+ </send>
+
+</scenario>
Propchange: asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/sipp/options.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/sipp/options.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/sipp/options.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/test-config.yaml?view=auto&rev=5317
==============================================================================
--- asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/test-config.yaml (added)
+++ asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/test-config.yaml Thu Jul 31 11:21:24 2014
@@ -1,0 +1,34 @@
+tinfo:
+ summary: 'Test PJSIPNotify AMI Action for content order'
+ description: |
+ This Tests the AMI Action PJSIPNotify in order to make sure
+ that Content section is put into the body of the NOTIFY in
+ the same order that it was specified in the request.
+
+properties:
+ minversion: '13.0.0'
+ dependencies:
+ - sipp :
+ version : 'v3.0'
+ - asterisk : 'res_pjsip'
+ tags:
+ - pjsip
+
+test-modules:
+ test-object:
+ config-section: sipp-config
+ typename: 'sipp.SIPpAMIActionTestCase'
+
+sipp-config:
+ reactor-timeout: 15
+ fail-on-any: True
+ test-iterations:
+ -
+ scenarios:
+ - { 'key-args': {'scenario': 'options.xml', '-p': '5062'} }
+ ami-action:
+ delay: 1
+ args:
+ Action: "PJSIPNotify"
+ URI: "sip:user1 at 127.0.0.1:5062"
+ Variable: "Content-Type=lettuce/varieties,Content=Bibb,Content=Boston,Content=Iceberg,Content=Romaine"
Propchange: asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/test-config.yaml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/test-config.yaml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/channels/pjsip/ami/pjsip_notify/to_uri/test-config.yaml
------------------------------------------------------------------------------
svn:mime-type = text/plain
More information about the asterisk-commits
mailing list