[asterisk-commits] mmichelson: branch mmichelson/srv_sip_outbound r189 - in /asterisk/team/mmich...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Apr 2 15:25:36 CDT 2010


Author: mmichelson
Date: Fri Apr  2 15:25:32 2010
New Revision: 189

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=189
Log:
Add some initial configs for a func_srv test.

All that's left is to write the body of test.lua.


Added:
    asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/
    asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/configs/
    asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/configs/extensions.conf   (with props)
    asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/run-test   (with props)
    asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test-config.yaml   (with props)
    asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test.lua   (with props)

Added: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/configs/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/configs/extensions.conf?view=auto&rev=189
==============================================================================
--- asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/configs/extensions.conf (added)
+++ asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/configs/extensions.conf Fri Apr  2 15:25:32 2010
@@ -1,0 +1,14 @@
+[test_context]
+
+exten => test,1,Answer
+exten => test,n,NoOp(SRV TEST)
+exten => test,n,SET(ID=${SRVQUERY(_sip._udp.asteriskphone.net)})
+exten => test,n,NoOp(Got ${SRVRESULT(${ID},getnum)} results)
+exten => test,n,Set(i=0)
+exten => test,n,While($[${i} < ${SRVRESULT(${ID},getnum)}])
+exten => test,n,NoOp(Host is ${SRVRESULT(${ID},${i},host)})
+exten => test,n,NoOp(Port is ${SRVRESULT(${ID},${i},port)})
+exten => test,n,NoOp(Priority is ${SRVRESULT(${ID},${i},priority)})
+exten => test,n,NoOp(Weight is ${SRVRESULT(${ID},${i},weight)})
+exten => test,n,Set(i=$[${i} + 1])
+exten => test,1,

Propchange: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/configs/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/configs/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/configs/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/run-test?view=auto&rev=189
==============================================================================
--- asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/run-test (added)
+++ asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/run-test Fri Apr  2 15:25:32 2010
@@ -1,0 +1,3 @@
+#!/bin/bash -e
+
+asttest -a / -s tests/func_srv

Propchange: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/run-test
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/run-test
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/run-test
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test-config.yaml?view=auto&rev=189
==============================================================================
--- asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test-config.yaml (added)
+++ asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test-config.yaml Fri Apr  2 15:25:32 2010
@@ -1,0 +1,10 @@
+testinfo:
+    summary:     'Test func_srv for correctness'
+    description: |
+        'This test exercises the SRVQUERY and SRVRESULT dialplan functions
+        to be certain that the results obtained are what are expected.'
+
+properties:
+    minversion: '1.8'
+    dependencies:
+        - app: 'asttest'

Propchange: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test.lua?view=auto&rev=189
==============================================================================
    (empty)

Propchange: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test.lua
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test.lua
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test.lua
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the asterisk-commits mailing list