[asterisk-commits] mjordan: branch group/pimp_my_sip r3621 - in /asterisk/team/group/pimp_my_sip...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 28 11:07:14 CST 2013


Author: mjordan
Date: Mon Jan 28 11:07:10 2013
New Revision: 3621

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3621
Log:
Actually add the tests

(Whoops)

Added:
    asterisk/team/group/pimp_my_sip/tests/channels/gulp/
    asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/
    asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/configs/
    asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/configs/ast1/
    asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/configs/ast1/extensions.conf   (with props)
    asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/
    asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/options_200.xml   (with props)
    asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/options_404.xml   (with props)
    asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/test-config.yaml   (with props)
    asterisk/team/group/pimp_my_sip/tests/channels/gulp/tests.yaml   (with props)

Added: asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/configs/ast1/extensions.conf?view=auto&rev=3621
==============================================================================
--- asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/configs/ast1/extensions.conf (added)
+++ asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/configs/ast1/extensions.conf Mon Jan 28 11:07:10 2013
@@ -1,0 +1,4 @@
+[default]
+
+; We just need a single extension to match on
+exten => 1234,1,NoOp()

Propchange: asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/options_200.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/options_200.xml?view=auto&rev=3621
==============================================================================
--- asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/options_200.xml (added)
+++ asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/options_200.xml Mon Jan 28 11:07:10 2013
@@ -1,0 +1,21 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="UAC OPTIONS">
+    <send retrans="500"> <![CDATA[
+
+        OPTIONS sip:1234@[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=[call_number]
+        To: Asterisk <sip:1234@[remote_ip]:[remote_port]>
+        Call-ID: [call_id]
+        CSeq: 1 OPTIONS
+        Contact: sip:sipp@[local_ip]:[local_port]
+        Max-Forwards: 70
+        Subject: Asterisk Testsuite
+        Content-Length: [len]
+
+        ]]>
+    </send>
+    <recv response="200"/>
+</scenario>

Propchange: asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/options_200.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/options_200.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/options_200.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/options_404.xml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/options_404.xml?view=auto&rev=3621
==============================================================================
--- asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/options_404.xml (added)
+++ asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/options_404.xml Mon Jan 28 11:07:10 2013
@@ -1,0 +1,21 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE scenario SYSTEM "sipp.dtd">
+
+<scenario name="UAC OPTIONS">
+    <send retrans="500"> <![CDATA[
+
+        OPTIONS sip:5555@[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=[call_number]
+        To: Asterisk <sip:5555@[remote_ip]:[remote_port]>
+        Call-ID: [call_id]
+        CSeq: 1 OPTIONS
+        Contact: sip:sipp@[local_ip]:[local_port]
+        Max-Forwards: 70
+        Subject: Asterisk Testsuite
+        Content-Length: [len]
+
+        ]]>
+    </send>
+    <recv response="404"/>
+</scenario>

Propchange: asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/options_404.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/options_404.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/sipp/options_404.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/test-config.yaml?view=auto&rev=3621
==============================================================================
--- asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/test-config.yaml (added)
+++ asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/test-config.yaml Mon Jan 28 11:07:10 2013
@@ -1,0 +1,28 @@
+testinfo:
+    summary:     'Test SIP OPTIONS handling'
+    description: |
+        'Run two SIPp scnearios that send an OPTIONS request.  In one instance,
+         we expect a 200 response, and in the other we expect a 404 response.'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'sipp.SIPpTestCase'
+
+test-object-config:
+    fail-on-any: False
+    test-iterations:
+        -
+            scenarios:
+                - { 'key-args': {'scenario': 'options_200.xml', '-i': '127.0.0.1', '-p': '5061'} }
+                - { 'key-args': {'scenario': 'options_404.xml', '-i': '127.0.0.1', '-p': '5062'} }
+
+# TODO: Test authentication of OPTION request
+
+properties:
+    minversion: '12.0.0'
+    dependencies:
+        - sipp :
+            version : 'v3.0'
+    tags:
+        - gulp

Propchange: asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/group/pimp_my_sip/tests/channels/gulp/handle_options_request/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/group/pimp_my_sip/tests/channels/gulp/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/group/pimp_my_sip/tests/channels/gulp/tests.yaml?view=auto&rev=3621
==============================================================================
--- asterisk/team/group/pimp_my_sip/tests/channels/gulp/tests.yaml (added)
+++ asterisk/team/group/pimp_my_sip/tests/channels/gulp/tests.yaml Mon Jan 28 11:07:10 2013
@@ -1,0 +1,3 @@
+# Enter tests here in the order they should be considered for execution:
+tests:
+    - test: 'handle_options_request'

Propchange: asterisk/team/group/pimp_my_sip/tests/channels/gulp/tests.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/group/pimp_my_sip/tests/channels/gulp/tests.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/group/pimp_my_sip/tests/channels/gulp/tests.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the asterisk-commits mailing list