[asterisk-commits] jrose: testsuite/asterisk/trunk r2860 - in /asterisk/trunk: lib/python/asteri...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 5 15:12:37 CST 2011


Author: jrose
Date: Mon Dec  5 15:12:30 2011
New Revision: 2860

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=2860
Log:
Adds a new test channels/SIP/sip_tls_register which uses sipp to register a SIP account.

The test checks both Asterisk's manager events to see if the registration resulted in an
appropriate change in the registration state of the peer and sipp's return value for
whether or not the SIP exchange was appropriate to sipp's expectations. This revision
also adds a function to utils for replacing strings within files, which can help with
modifying config files to use directories created within Asterisk instance folders.

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


Added:
    asterisk/trunk/tests/channels/SIP/sip_tls_register/
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/ast1/
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/ast1/sip.conf   (with props)
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.cfg   (with props)
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.crt   (with props)
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.key   (with props)
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.crt   (with props)
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.csr   (with props)
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.key   (with props)
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.pem   (with props)
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.crt   (with props)
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.csr   (with props)
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.key   (with props)
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.pem   (with props)
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/tmp.cfg   (with props)
    asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/sip_helper_template.inc   (with props)
    asterisk/trunk/tests/channels/SIP/sip_tls_register/run-test   (with props)
    asterisk/trunk/tests/channels/SIP/sip_tls_register/sipp/
    asterisk/trunk/tests/channels/SIP/sip_tls_register/sipp/register.xml   (with props)
    asterisk/trunk/tests/channels/SIP/sip_tls_register/test-config.yaml   (with props)
Modified:
    asterisk/trunk/lib/python/asterisk/utils.py
    asterisk/trunk/tests/channels/SIP/tests.yaml

Modified: asterisk/trunk/lib/python/asterisk/utils.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/utils.py?view=diff&rev=2860&r1=2859&r2=2860
==============================================================================
--- asterisk/trunk/lib/python/asterisk/utils.py (original)
+++ asterisk/trunk/lib/python/asterisk/utils.py Mon Dec  5 15:12:30 2011
@@ -11,7 +11,10 @@
 the GNU General Public License Version 2.
 """
 import os
-
+from os import close
+from os import remove
+from shutil import move
+from tempfile import mkstemp
 
 def which(program):
     '''
@@ -32,3 +35,28 @@
                 return exe_file
 
     return None
+
+def FileReplaceString(file, pattern, subst):
+    """
+    Replace strings within a file.  Replaces all occurences of pattern with substr.
+
+    Keyword arguments:
+    file -- filename of the text file within which strings are meant to be replaced
+    pattern -- string in file which is matched against, removed, and replaced by substr
+    subst -- string which is substituted for the pattern once the operation is finished
+    """
+    #Create temp file
+    fh, abs_path = mkstemp()
+    new_file = open(abs_path,'w')
+    old_file = open(file)
+    for line in old_file:
+        new_file.write(line.replace(pattern, subst))
+    #close temp file
+    new_file.close()
+    close(fh)
+    old_file.close()
+    #Remove original file
+    remove(file)
+    #Move new file
+    move(abs_path, file)
+

Added: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/ast1/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/ast1/sip.conf?view=auto&rev=2860
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/ast1/sip.conf (added)
+++ asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/ast1/sip.conf Mon Dec  5 15:12:30 2011
@@ -1,0 +1,20 @@
+[general]
+context=default                 ; Default context for incoming calls
+allowoverlap=no                 ; Disable overlap dialing support. (Default is yes)
+udpbindaddr=127.0.0.1:5060      ; IP address to bind UDP listen socket to (0.0.0.0 binds to all)
+srvlookup=yes                   ; Enable DNS SRV lookups on outbound calls
+tlsenable=yes
+tlsbindaddr=127.0.0.1:5060
+disallow=all
+allow=ulaw
+
+#include sip_helper.inc
+
+tlsdontverifyserver=yes
+tlscipher=ALL
+tlsclientmethod==tlsv1
+
+[v4-in]
+type=friend
+host=dynamic
+transport=tls

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/ast1/sip.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.cfg
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.cfg?view=auto&rev=2860
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.cfg (added)
+++ asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.cfg Mon Dec  5 15:12:30 2011
@@ -1,0 +1,10 @@
+[req]
+distinguished_name = req_distinguished_name
+prompt = no
+
+[req_distinguished_name]
+CN=Asterisk Private CA
+O=Asterisk
+
+[ext]
+basicConstraints=CA:TRUE

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.cfg
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.cfg
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.cfg
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.crt
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.crt?view=auto&rev=2860
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.crt (added)
+++ asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.crt Mon Dec  5 15:12:30 2011
@@ -1,0 +1,29 @@
+-----BEGIN CERTIFICATE-----
+MIIE3jCCAsYCCQCwrN0aCLHQGDANBgkqhkiG9w0BAQUFADAxMRwwGgYDVQQDExNB
+c3RlcmlzayBQcml2YXRlIENBMREwDwYDVQQKEwhBc3RlcmlzazAeFw0xMTA2MTYx
+NDQzNTNaFw0xMjA2MTUxNDQzNTNaMDExHDAaBgNVBAMTE0FzdGVyaXNrIFByaXZh
+dGUgQ0ExETAPBgNVBAoTCEFzdGVyaXNrMIICIjANBgkqhkiG9w0BAQEFAAOCAg8A
+MIICCgKCAgEAxC4AvUtCvj31Hjv9+WRimfnQL8gW/8F/VdSSnKH1/KqpHPQr6ztr
+MxgErVgyg6BzIQ6B/JT77uCv+6fcbc36LLNHr2v6uYqI0gosM2B2Hst3YNbckp0X
+rdAw3zDyN7KASEXmXMeatsHWD7Hc0jKWFr9eLvQUQbhLL9WiaNSsBpFsfUYdvkAo
+3gWUiuVEH16N+kQ/MGIwr/6YXG+dh1rE9uAo+AtEBMT1fEAEWCQ/xSnizR8BoX5z
+2XPmp+js5UTg5aC/ooIZb57acYEywfH82WRHPYajJMeLdlWB+lhuSbt53BHYkcq0
+ot7YqX6rmzjrBBsR4ukvVraE42GvNECcNXk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t2NmtMrdnmRhj6j
+3zM=
+-----END CERTIFICATE-----

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.crt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.crt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.crt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.key
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.key?view=auto&rev=2860
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.key (added)
+++ asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.key Mon Dec  5 15:12:30 2011
@@ -1,0 +1,54 @@
+-----BEGIN RSA PRIVATE KEY-----
+Proc-Type: 4,ENCRYPTED
+DEK-Info: DES-EDE3-CBC,DB87867FB83067F4
+
+0NzonFZiJhOEhoE6vWMi5qK4Wypf1RkDdAgBaV7oZo/XwnenOIOmv8ciL/YLQAGC
+EynDidqU+nuUioLc2cSQfEX1OW6y4pTVycBm3D1wqVysJL823ssYyQFd7GqqpVal
+cTJD1QjwErR9NqSJQRljMHZnu2jIEBq1Yam/gGEHGyh2o/uRwlpDVFlxh9BYEreQ
+uEDcozJoIAehx5FvMvdIIbKPiuFj85pZitFc1D4ErjTidoKLr8fM0aUHfj7AdGXc
+fuKRDhBORBP9+fccbIhZGLzBxHLYlFqrVJ1f/NThua4QkKqfbru/icCIIfAnAoHe
+FdfzaIC/D2OZjQNiJrLbDCXiT7PDSvBBMh2xXGEb8wwi+EPSZ2MZGYqAo6zE75HR
+vG4Fbct6E7vvC9U2jRlaPcEwhDYTG7fec4EJlJWlVCmJuuZjjROD5kHa7D6fKX3p
+tNs91hCJhGnswboa83a3CDV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4QZJzy7W1d/tbVdKSvXRIrFJ
+xFqsX1++ixj1rzgJ3PTFIsaXZwagJzpZmXSkFjATDVz3pvaE7N6WvzvdbfyraEge
+vxOY5vihlpG8Iaafs/wYeQ7WxClYaNxaLMkNsOqGYr+6IMEtAo/rm0xx3gNq6ENJ
+xvTT55gOSHfdJtGKqxaqxyOf8m7mZL6K+Dk3vHs+h6hVgbZiQQLPFk/d52NX4E5Q
+QBaJYLYQGtFYl0Ej9C2wjDdFiPTS7OMFE/eE8Qmise1H9JKkfw5uPN987iMPVZtV
+M7LiU/Ru47nGgDmgQZUV4cXIM6pkqpZ+bUUMGkAasGre70503so/f80nr0UB7Qwf
+0xkaqIaxQZ42WnGxZdqz+YAj6rwExQyRo6WjP4v7UZzD6+NXOgeRaYZZQXwIuKHU
+WBm6NOdedz/32sDysLsCueio30GKL0h8JD/0IMTi4VLTRSgZggl2yOCfSg7D4pZa
+ElpbRoHbN9+wZcuY0g7MwjCZwgXnbB7yqOAAl5nIESlVJwf3CGxiyBbmUXdjLHhO
+aqaJZsR+G+26syR0XCXmnV9SI1Eqigsw8Z5v8zJIzgvK+fZaEYNH5rN8qgpnZ9i+
+-----END RSA PRIVATE KEY-----

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.key
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.key
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/ca.key
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.crt
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.crt?view=auto&rev=2860
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.crt (added)
+++ asterisk/trunk/tests/channels/SIP/s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
+345ynIcye+xhzjeMYsNu05qqjxDodMdBU8YQ0/DE/ZplTblc2/PWJNLG8n0AGr7B
+ubqs8sWOR2vXzkLeYQirpGzTTYQKu3PjwVVWuW9GLRgd8ke6eBB9upVlx0w3xbfw
+ExmjZkkl6pblKfIMBDIt0Gx6H5h8oKSdrFE=
+-----END CERTIFICATE-----

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.crt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.crt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.crt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.csr
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.csr?view=auto&rev=2860
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.csr (added)
+++ asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.csr Mon Dec  5 15:12:30 2011
@@ -1,0 +1,10 @@
+-----BEGIN CERTIFICATE REQUEST-----
+MIIBZDCBzgIBADAlMRAwDgYDVQQDEwdzZXJ2ZXJBMREwDwYDVQQKEwhBc3Rlcmlz
+azCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAxNX6Ch8IUkDeAjhW/wvhmHbL
+udH/ikOCPRuV0D21fLtL7fVFU6Yfh57uMv/gAeiW/xRBK2yDmgIKnAdmWBksre90
+BSa5zqqA6SH4XqGMSjUtL8L3kaMM54dJadIE2Dz+TtWFciLeVe3KcGa93UZuA71v
+LTEiPSCY9QLfUsxa0KMCAwEAAaAAMA0GCSqGSIb3DQEBBQUAA4GBAGY1rKt0XIZO
+rOZQy9/B5PX6zSwrUmUtUX31fHWxPn/EOeLCqKl4HlUQHoHcePjTXeQ3fU0/AhYX
+w2QEekNxkiJnd3FPCR/OKvics/BaK5wsv7RKETKC/S7fWJVaN4IvK234mNG/SLPy
+VH0Pd6+bCXaIU8y1ziGykpcQN/hkcbhB
+-----END CERTIFICATE REQUEST-----

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.csr
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.csr
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.csr
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.key
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.key?view=auto&rev=2860
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.key (added)
+++ asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.key Mon Dec  5 15:12:30 2011
@@ -1,0 +1,15 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIICXQIBAAKBgQDE1foKHwhSQN4COFb/C+GYdsu50f+KQ4I9G5XQPbV8u0vt9UVT
+ph+Hnu4y/+AB6Jb/FEErbIOaAgqcB2ZYGSyt73QFJrnOqoDpIfheoYxKNS0vwveR
+owznh0lp0gTYPP5O1YVyIt5V7cpwZr3dRm4DvW8tMSI9IJj1At9SzFrQowIDAQAB
+AoGAah4CA1rfnZijGAdPv4ikQxIomzF/1wa2PEOW7QGXynsfYFaO3Z39+ZvRR2Vz
+WxQN887zo3mJKYpYNe43Wt+Xmet5WOEbJUTUniB9/Dqj5FSk7ztVUADd1wQrXfOO
+uVgrTGPLq3uK2NLTBhmvnOQEByumIOXFOtTQg3y8wEMUCmECQQDx9WE9UVjznW9z
+LsFOYGNmIukKdZqUr9bz+dJJdilysuPfWK22IOzJgSnJcZSE+Md3d0klpM4kyGPT
+W6RgNNdFAkEA0EI9H30bYIIEAcNKjBAOoF6djK6/ViOfcXisYSL6cRyUGA3+Ttej
+EKqXaWhKlZJ8AfAIXD9+gNkOhlB90gwyxwJBAKMlj6Gm3lG10FZcKl/Mwnk2BOjW
+j5q+TjRIOTDridsbIGeTBd6OqNreSuzXtwtKLEUzm5DUZWOL8zOq0VVFi/kCQQCM
+p+Aub0nZQZbBNgwYUxP93klcZf3WiNK8SbtrE7vAP4QKRxE2YM/ChuUijQyqvrfA
+e0S6QSwIjBESSDTic9irAkAXSp9ibSFDGJyTxVfaZKrTH2i857n8PeMe7fF6wp9a
+OT71LsDjtAWoH5Ntw0Lxd52XID64wXqGQh056NyIYdD3
+-----END RSA PRIVATE KEY-----

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.key
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.key
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.key
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.pem
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.pem?view=auto&rev=2860
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.pem (added)
+++ asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.pem Mon Dec  5 15:12:30 2011
@@ -1,0 +1,35 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIICXQIBAAKBgQDE1foKHwhSQN4COFb/C+GYdsu50f+KQ4I9G5XQPbV8u0vt9UVT
+ph+Hnu4y/+AB6Jb/FEErbIOaAgqcB2ZYGSyt73QFJrnOqoDpIfheoYxK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eiW/xRBK2yDmgIKnAdmWBks
+re90BSa5zqqA6SH4XqGMSjUtL8L3kaMM54dJadIE2Dz+TtWFciLeVe3KcGa93UZu
+A71vLTEiPSCY9QLfUsxa0KMCAwEAATANBgkqhkiG9w0BAQUFAAOCAgEAsYZXrTNf
+zD2bOzrSFvJqQLh8waJBQw47z2y4FuUs41VdFB5JMS5HzkpS7cCr2gEg8LxzzYNi
+bxb0xgs1Qd6+OG5eBoGJLwJVg4rkkVClZG5hCIrnlNkUgVzr1FYj8l7RRZ9oKT2B
+a7t6WCZXepoQDrOHdYGqvWOXzwFSvgfL3/8dF/qdjBHmlQtxfnu40tCEsC7fF/UP
+SPhANPO85alB/UIgiKooleaQesXt9DyR2vWb0D4bqdijvmX6LTbXm+c3FijYMfvD
+CHxNWgMF3b6iP9f/Hw/Tl82P9RihvbchMb6jfeK2UCnoLN8uxEOZLngka0LYdX1U
+OH/V4waoSD5TCEwkkjPTgIO35YrArJB04COxOWaulPwp46Q/RpHk7Fo3BmvcgO7N
+jT5dm7yelRR8GKMFwWTT/TCSQfYf0cUcyqmjAUWbTVYVxhE2omd6QjzgvWjw68FP
+70Dme92NOxLNsh//On2AqyFfC4obkOJEYp/iUjUOoTs9dle+X0j4rPtIU9gpvxOd
+345ynIcye+xhzjeMYsNu05qqjxDodMdBU8YQ0/DE/ZplTblc2/PWJNLG8n0AGr7B
+ubqs8sWOR2vXzkLeYQirpGzTTYQKu3PjwVVWuW9GLRgd8ke6eBB9upVlx0w3xbfw
+ExmjZkkl6pblKfIMBDIt0Gx6H5h8oKSdrFE=
+-----END CERTIFICATE-----

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.pem
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.pem
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverA.pem
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.crt
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.crt?view=auto&rev=2860
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.crt (added)
+++ asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.crt Mon Dec  5 15:12:30 2011
@@ -1,0 +1,20 @@
+-----BEGIN CERTIFICATE-----
+MIIDRjCCAS4CAQEwDQYJKoZIhvcNAQEFBQAwMTEcMBoGA1UEAxMTQXN0ZXJpc2sg
+UHJpdmF0ZSBDQTERMA8GA1UEChMIQXN0ZXJpc2swHhcNMTEwNjE2MTQ0NDAyWhcN
+MTIwNjE1MTQ0NDAyWjAlMRAwDgYDVQQDEwdzZXJ2ZXJCMREwDwYDVQQKEwhBc3Rl
+cmlzazCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA1FNtUJtWeEiZiNAqOcYu
+td9aG9/GeUpi1mUja7UUWpiWImuovLn0DvvMH1ZJ2cAFF5pqdwICPcZjsZf4+FBx
+ws1fjaVDfc4iLneifj86Il+LnTz30mc69U+5V/q/phRYpBUjzMniVZmf44MmAsKi
+cJUSO1ATZGXWsWNHo4wHahECAwEAATANBgkqhkiG9w0BAQUFAAOCAgEAdxbmybYo
+tL9y72rfnQIqOpmbv+ipnano8jnePobYgGAF/oXZmqQSfYv+NRxHN16GM/wqLeGG
+77BhPO978+s8oIa7pZvLW6PmZXxiABDPPWRNAufOvluVYfXRk6k1hh7E3hlifCTN
+7Pch+/qthQNy991d45M1WlxqlEn/j+0y9E5lCpIWoYTJu3RloByTUm3lgCWsD6Is
+py9DbdVrYiMCfcCnuyM3Wqt/LJvUntCAjXCpIQrXXHEw+gR5cfBIZO+ImTkVWQWe
+mYRNtEGShVchAofgqGj1aCvaw68I4xbJGBD3dFOHm5HFFifaU2Iqi+drAj9sOAL9
+iynvMP/pTfwum3oe+vRM7PlaNZ7lEs/u5gzLqkIl7eprYO3lJPVyq5pZmQeDElcP
+b8z63d91fOI3q0Xv24LU4KHuxULLvN5ICUjfXpdddqXzVxk9+Mqw1mqqoH75rLgN
+Ut9YBO9ymCIRXnq06+1QMQkLhmnYSr5Pae0GOhiMKJd/uVAE/3KO02GCJU66NXQP
+JoShEyopuR4GMkStHepcRHcEor6llepDvbgmPyfco+PLXFXMU4RgQq5APZtv01nT
+tTWi+C2CA+LXH/vaB3R17rjoi11eQZR6HbM++HsZBlvxo6IQGyPEfuFAIa+2ESL+
+FJ7qbxtn00OqdlUrAmI39Y2y5Y8z7oR1u+E=
+-----END CERTIFICATE-----

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.crt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.crt
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.crt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.csr
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.csr?view=auto&rev=2860
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.csr (added)
+++ asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.csr Mon Dec  5 15:12:30 2011
@@ -1,0 +1,10 @@
+-----BEGIN CERTIFICATE REQUEST-----
+MIIBZDCBzgIBADAlMRAwDgYDVQQDEwdzZXJ2ZXJCMREwDwYDVQQKEwhBc3Rlcmlz
+azCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA1FNtUJtWeEiZiNAqOcYutd9a
+G9/GeUpi1mUja7UUWpiWImuovLn0DvvMH1ZJ2cAFF5pqdwICPcZjsZf4+FBxws1f
+jaVDfc4iLneifj86Il+LnTz30mc69U+5V/q/phRYpBUjzMniVZmf44MmAsKicJUS
+O1ATZGXWsWNHo4wHahECAwEAAaAAMA0GCSqGSIb3DQEBBQUAA4GBABixdL8WbDZY
+EpQhIq6tvUJTRCrb4YbJ5YnaqrxTTglr723yxuK4CUXwtuEv7tBcAe2Gp+T9fkd4
+3jxsXRrkNXFWZp90Solgiwyhl33BNZXZis0jEomzfvWPfJXnIm1ietikAV2Bag0Q
+VXNB9FpMU4dZJkKFmLx8vvLgfhtsAQJk
+-----END CERTIFICATE REQUEST-----

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.csr
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.csr
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.csr
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.key
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.key?view=auto&rev=2860
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.key (added)
+++ asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.key Mon Dec  5 15:12:30 2011
@@ -1,0 +1,15 @@
+-----BEGIN RSA PRIVATE KEY-----
+MIICXgIBAAKBgQDUU21Qm1Z4SJmI0Co5xi6131ob38Z5SmLWZSNrtRRamJYia6i8
+ufQO+8wfVknZwAUXmmp3AgI9xmOxl/j4UHHCzV+NpUN9ziIud6J+PzoiX4udPPfS
+Zzr1T7lX+r+mFFikFSPMyeJVmZ/jgyYCwqJwlRI7UBNkZdaxY0ejjAdqEQIDAQAB
+AoGBAKcEeRjPGFXFxgA4vv5zRosKBnemrxj5yoWbSSGQb1JUdMTeqvzJyZF/wDFm
+TvFaeqb2cIjsq5asV/966/1oShLjVKx0r/yF1nnesbSMwywVj4GE98goEBMqnsrg
+tGRPS9q6P0OkE++afKucqEDhYtwspSIJMS6qFsGl6neyWAABAkEA7tYWyNArLIR4
+wGkXL9h5g6nz0vkDe/n/EKPIi5/iozKwpt2lAcj0q6/QQGnnZDI+kwCHx4mpsiB0
+fO0bTB1okQJBAOOVny1aIUL4w+mKWY+Ahe9y8pGYuXebkBhhaUx8YbIPp3FSuDZD
+jOANSK/OPA5UjruqqAVYCB0KZozUG7tOqYECQBFx+9oRMoYe6v8K7hGlm0KdwFyR
+qcp9eT8K55QjSpenFTYrDGlz90MvJWP/GFK+RMnSCRjvGkETk86oNw05PLECQQC+
+s62CTzf36oQfufJ6MPQKRYPFRPiEpTIFe/rEQKWMk1l3uBzsO4ZcaEU0K9hfGbPQ
+xZutfqqtyv1LnKDwP2YBAkEA5RCqve4cyIvXQ1zs0msFMfaX0NM3ZRB2mbvJMlWy
+fw52FWMRxWwCKuS9xJeio5JkHcFEXjFLn4phTWXAmQ/CCg==
+-----END RSA PRIVATE KEY-----

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.key
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.key
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.key
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.pem
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.pem?view=auto&rev=2860
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.pem (added)
+++ asterisk/trunk/tests/channels/SIP/sip_tls_register/config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_tls_register/configs/keys/serverB.pem
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.pem
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/serverB.pem
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/tmp.cfg
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/tmp.cfg?view=auto&rev=2860
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/tmp.cfg (added)
+++ asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/tmp.cfg Mon Dec  5 15:12:30 2011
@@ -1,0 +1,8 @@
+[req]
+distinguished_name = req_distinguished_name
+prompt = no
+
+[req_distinguished_name]
+CN=serverB
+O=Asterisk
+

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/tmp.cfg
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/tmp.cfg
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/keys/tmp.cfg
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/sip_helper_template.inc
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/sip_helper_template.inc?view=auto&rev=2860
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/sip_helper_template.inc (added)
+++ asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/sip_helper_template.inc Mon Dec  5 15:12:30 2011
@@ -1,0 +1,3 @@
+tlscertfile=<<path>>/keys/serverA.pem
+tlscafile=<<path>>/keys/ca.crt
+

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/sip_helper_template.inc
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/sip_helper_template.inc
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/channels/SIP/sip_tls_register/configs/sip_helper_template.inc
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/channels/SIP/sip_tls_register/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/channels/SIP/sip_tls_register/run-test?view=auto&rev=2860
==============================================================================
--- asterisk/trunk/tests/channels/SIP/sip_tls_register/run-test (added)
+++ asterisk/trunk/tests/channels/SIP/sip_tls_register/run-test Mon Dec  5 15:12:30 2011
@@ -1,0 +1,152 @@
+#!/usr/bin/env python
+'''
+Copyright (C) 2011, Digium, Inc.
+Jonathan Rose <jrose at digium.com>
+
+This program is free software, distributed under the terms of
+the GNU General Public License Version 2.
+'''
+import fileinput
+import sys
+import os
+import shutil
+import logging
+from twisted.internet import reactor, defer
+
+sys.path.append("lib/python")
+from asterisk.TestCase import TestCase
+from asterisk.utils import FileReplaceString
+from asterisk.sipp import SIPpScenario
+from starpy import manager
+
+logger = logging.getLogger(__name__)
+
+"""
+Creates an Asterisk instance with a TLS enabled SIP client and then uses sipp to register that client
+with sipp via TLS.
+"""
+class SIPTLS_Register_Test(TestCase):
+
+    # Preps test objects and configuration additions as well as copies TLS keys to test folder.
+    def __init__(self):
+        TestCase.__init__(self)
+
+        self.testdir = "tests/channels/SIP/sip_tls_register"
+
+        self.pass_sipp = False
+        self.pass_event = False
+
+        # Additional setup for config files and keys
+        logger.debug("Building test resources ...")
+
+        self.create_asterisk()
+
+        self.keysdir = "%s%s" % (self.ast[0].base, self.ast[0].directories['astkeydir'])
+        self.etcdir = "%s%s" % (self.ast[0].base, self.ast[0].directories['astetcdir'])
+
+        # Additional setup for config files and keys
+        logger.debug( "Building test resources ...")
+        if os.path.exists('%s/configs/ast1/sip_helper.inc' % (self.testdir)):
+            os.remove('%s/configs/ast1/sip_helper.inc' % (self.testdir))
+        shutil.copy('%s/configs/sip_helper_template.inc' % (self.testdir), '%s/configs/ast1/sip_helper.inc' % (self.testdir))
+
+        FileReplaceString('%s/configs/ast1/sip_helper.inc' % (self.testdir), '<<path>>', '%s' % (self.keysdir))
+
+        #recopy sip_helper.inc since it's been changed. Remove first in case one already exists.
+        if os.path.exists('%s/sip_helper.inc' % self.etcdir):
+            os.remove('%s/sip_helper.inc' % self.etcdir)
+        shutil.copy('%s/configs/ast1/sip_helper.inc' % (self.testdir), '%s' % (self.etcdir))
+
+        #For the registration test, we need to copy some keys for use with sipp.
+        #first delete them if they are already in the folder.
+        self.cleanup_tls()
+
+        #then copy them from the test directory to the working directory that sipp runs from.
+        shutil.copy('%s/configs/keys/serverA.key' % (self.testdir), 'cakey.pem')
+        shutil.copy('%s/configs/keys/serverA.crt' % (self.testdir), 'cacert.pem')
+
+        #Now that we've created the Asterisk instances, let's go ahead and remove the sip_helper.inc files
+
+        if os.path.exists('%s/configs/ast1/sip_helper.inc' % (self.testdir)):
+            os.remove('%s/configs/ast1/sip_helper.inc' % (self.testdir))
+
+        # initialize test variables
+        self.passed = False
+        self.tone1 = False
+        self.tone2 = False
+
+        if not os.path.exists('%s/' % self.keysdir):
+            os.makedirs('%s' % self.keysdir);
+        if os.path.exists('%s/keys' % (self.keysdir)):
+            shutil.rmtree('%s/keys' % (self.keysdir))
+        shutil.copytree('%s/configs/keys' % (self.testdir), '%s/keys' % (self.keysdir))
+        # End of additional setup for config files and keys
+
+    # Sets up callback function for PeerStatus events and runs/evaluates SIPp for the necessary scenario with TLS.
+    def ami_connect(self, ami):
+        self.ami = ami
+        self.ami.registerEvent("PeerStatus", self.check_register_result)
+        scenario_def = {'scenario': 'register.xml', '-p': '5061', '-recv_timeout': '1000', '-s': 'SIP/v4-in', '-t': 'ln'}
+
+        scenario = SIPpScenario("tests/channels/SIP/sip_tls_register", scenario_def)
+        scenario.run()
+
+        #Status of SIPp success/failure is partial success condition of registration test.
+        self.pass_sipp = scenario.waitAndEvaluate()
+        if (self.pass_sipp and self.pass_event):
+            self.passed = True
+            #avoid stop_reactor until testsuite crashes are solved

[... 158 lines stripped ...]



More information about the asterisk-commits mailing list