[svn-commits] russell: branch russell/messaging r297494 - in /team/russell/messaging/testsu...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Dec 2 19:37:10 CST 2010


Author: russell
Date: Thu Dec  2 19:37:04 2010
New Revision: 297494

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=297494
Log:
Add an automated test for Asterisk receiving a MESSAGE and requesting auth for i

Added:
    team/russell/messaging/testsuite-tests/message_auth/
      - copied from r297485, team/russell/messaging/testsuite-tests/message_unauth/
    team/russell/messaging/testsuite-tests/message_auth/configs/ast1/sip.conf   (with props)
Modified:
    team/russell/messaging/testsuite-tests/message_auth/configs/ast1/extensions.conf
    team/russell/messaging/testsuite-tests/message_auth/run-test
    team/russell/messaging/testsuite-tests/message_auth/sipp/message.xml

Modified: team/russell/messaging/testsuite-tests/message_auth/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/asterisk/team/russell/messaging/testsuite-tests/message_auth/configs/ast1/extensions.conf?view=diff&rev=297494&r1=297485&r2=297494
==============================================================================
--- team/russell/messaging/testsuite-tests/message_auth/configs/ast1/extensions.conf (original)
+++ team/russell/messaging/testsuite-tests/message_auth/configs/ast1/extensions.conf Thu Dec  2 19:37:04 2010
@@ -1,4 +1,8 @@
 [default]
+
+exten => _.,1,NoOp(ERROR: THIS SHOULD NOT BE EXECUTED)
+
+[not_default]
 
 exten => _.,1,NoOp()
 

Added: team/russell/messaging/testsuite-tests/message_auth/configs/ast1/sip.conf
URL: http://svnview.digium.com/svn/asterisk/team/russell/messaging/testsuite-tests/message_auth/configs/ast1/sip.conf?view=auto&rev=297494
==============================================================================
--- team/russell/messaging/testsuite-tests/message_auth/configs/ast1/sip.conf (added)
+++ team/russell/messaging/testsuite-tests/message_auth/configs/ast1/sip.conf Thu Dec  2 19:37:04 2010
@@ -1,0 +1,11 @@
+[general]
+
+allow_outofcall_message = yes
+auth_message_requests = yes
+
+[user]
+type=peer
+host=127.0.0.1
+port=5061
+context=not_default
+secret=blah

Propchange: team/russell/messaging/testsuite-tests/message_auth/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/russell/messaging/testsuite-tests/message_auth/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/russell/messaging/testsuite-tests/message_auth/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: team/russell/messaging/testsuite-tests/message_auth/run-test
URL: http://svnview.digium.com/svn/asterisk/team/russell/messaging/testsuite-tests/message_auth/run-test?view=diff&rev=297494&r1=297485&r2=297494
==============================================================================
--- team/russell/messaging/testsuite-tests/message_auth/run-test (original)
+++ team/russell/messaging/testsuite-tests/message_auth/run-test Thu Dec  2 19:37:04 2010
@@ -16,7 +16,7 @@
 from asterisk.asterisk import Asterisk
 
 
-WORKING_DIR = "/tmp/asterisk-testsuite/sip/message_unauth"
+WORKING_DIR = "/tmp/asterisk-testsuite/sip/message_auth"
 TEST_DIR = os.path.dirname(os.path.realpath(__file__))
 
 

Modified: team/russell/messaging/testsuite-tests/message_auth/sipp/message.xml
URL: http://svnview.digium.com/svn/asterisk/team/russell/messaging/testsuite-tests/message_auth/sipp/message.xml?view=diff&rev=297494&r1=297485&r2=297494
==============================================================================
--- team/russell/messaging/testsuite-tests/message_auth/sipp/message.xml (original)
+++ team/russell/messaging/testsuite-tests/message_auth/sipp/message.xml Thu Dec  2 19:37:04 2010
@@ -1,11 +1,10 @@
 <?xml version="1.0" encoding="ISO-8859-1" ?>
 
-<scenario name="Basic MESSAGE send and receive">
+<scenario name="MESSAGE with auth">
   <!-- In client mode (sipp placing calls), the Call-ID MUST be         -->
   <!-- generated by sipp. To do so, use [call_id] keyword.                -->
   <send retrans="500">
     <![CDATA[
-
       MESSAGE sip:user@[remote_ip]:[remote_port] SIP/2.0
       Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
       From: user <sip:user@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
@@ -13,8 +12,30 @@
       Call-ID: [call_id]
       CSeq: 1 MESSAGE
       Contact: sip:user@[local_ip]:[local_port]
-      Max-Forwards: 70
+      Max-Forwards: 20
       Expires: 3600
+      Content-Type: text/plain
+      Content-Length: 18
+
+      Watson, come here.
+
+    ]]>
+  </send>
+
+  <recv response="401" auth="true" rtd="true"/>
+
+  <send retrans="500">
+    <![CDATA[
+      MESSAGE sip:user@[remote_ip]:[remote_port] SIP/2.0
+      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
+      Max-Forwards: 20
+      From: user <sip:user@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
+      To: <sip:user@[remote_ip]:[remote_port]>
+      Call-ID: [call_id]
+      CSeq: 2 MESSAGE
+      Contact: sip:user@[local_ip]:[local_port]
+      Expires: 3600
+      [authentication username=user password=blah]
       Content-Type: text/plain
       Content-Length: 18
 




More information about the svn-commits mailing list