[asterisk-commits] pabelanger: branch pabelanger/DialplanTestCase r1610 - in /asterisk/team/pabe...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 2 14:50:20 CDT 2011


Author: pabelanger
Date: Thu Jun  2 14:50:16 2011
New Revision: 1610

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=1610
Log:
Dialplan prototype

Added:
    asterisk/team/pabelanger/DialplanTestCase/lib/python/asterisk/DialplanTestCase.py   (with props)
    asterisk/team/pabelanger/DialplanTestCase/tests/DialPlan/
    asterisk/team/pabelanger/DialplanTestCase/tests/DialPlan/run-test   (with props)
    asterisk/team/pabelanger/DialplanTestCase/tests/DialPlan/test-config.yaml   (with props)
Modified:
    asterisk/team/pabelanger/DialplanTestCase/lib/python/asterisk/asterisk.py
    asterisk/team/pabelanger/DialplanTestCase/tests/tests.yaml

Added: asterisk/team/pabelanger/DialplanTestCase/lib/python/asterisk/DialplanTestCase.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/pabelanger/DialplanTestCase/lib/python/asterisk/DialplanTestCase.py?view=auto&rev=1610
==============================================================================
--- asterisk/team/pabelanger/DialplanTestCase/lib/python/asterisk/DialplanTestCase.py (added)
+++ asterisk/team/pabelanger/DialplanTestCase/lib/python/asterisk/DialplanTestCase.py Thu Jun  2 14:50:16 2011
@@ -1,0 +1,21 @@
+#!/usr/bin/env python
+'''
+Copyright (C) 2011, Digium, Inc.
+Paul Belanger <pabelanger at digium.com>
+
+This program is free software, distributed under the terms of
+the GNU General Public License Version 2.
+'''
+
+import sys
+import logging
+from twisted.internet import reactor
+
+from TestCase import TestCase
+
+log = logging.getLogger('DialplanTestCase')
+
+class DialplanTestCase(TestCase):
+    def __init__(self, argv):
+        TestCase.__init__(self, argv)
+        self.create_asterisk()

Propchange: asterisk/team/pabelanger/DialplanTestCase/lib/python/asterisk/DialplanTestCase.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/pabelanger/DialplanTestCase/lib/python/asterisk/DialplanTestCase.py
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/pabelanger/DialplanTestCase/lib/python/asterisk/DialplanTestCase.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: asterisk/team/pabelanger/DialplanTestCase/lib/python/asterisk/asterisk.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/pabelanger/DialplanTestCase/lib/python/asterisk/asterisk.py?view=diff&rev=1610&r1=1609&r2=1610
==============================================================================
--- asterisk/team/pabelanger/DialplanTestCase/lib/python/asterisk/asterisk.py (original)
+++ asterisk/team/pabelanger/DialplanTestCase/lib/python/asterisk/asterisk.py Thu Jun  2 14:50:16 2011
@@ -18,9 +18,12 @@
 import shutil
 import subprocess
 import utils
+import logging
 
 from config import ConfigFile
 from version import AsteriskVersion
+
+log = logging.getLogger('Asterisk')
 
 
 class Asterisk:
@@ -195,6 +198,10 @@
         Example Usage:
         asterisk.install_configs("tests/my-cool-test/configs")
         """
+        if not os.path.exists(cfg_path):
+            log.warning('%s does not exist' % cfg_path)
+            return False
+
         for f in os.listdir(cfg_path):
             target = "%s/%s" % (cfg_path, f)
             if os.path.isfile(target):

Added: asterisk/team/pabelanger/DialplanTestCase/tests/DialPlan/run-test
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/pabelanger/DialplanTestCase/tests/DialPlan/run-test?view=auto&rev=1610
==============================================================================
Binary file - no diff available.

Propchange: asterisk/team/pabelanger/DialplanTestCase/tests/DialPlan/run-test
------------------------------------------------------------------------------
    svn:executable = *

Propchange: asterisk/team/pabelanger/DialplanTestCase/tests/DialPlan/run-test
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: asterisk/team/pabelanger/DialplanTestCase/tests/DialPlan/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/pabelanger/DialplanTestCase/tests/DialPlan/test-config.yaml?view=auto&rev=1610
==============================================================================
--- asterisk/team/pabelanger/DialplanTestCase/tests/DialPlan/test-config.yaml (added)
+++ asterisk/team/pabelanger/DialplanTestCase/tests/DialPlan/test-config.yaml Thu Jun  2 14:50:16 2011
@@ -1,0 +1,11 @@
+testinfo:
+    summary:     'Test loggin in to the Asterisk Manager Interface'
+    description: |
+        'This test provides a basic AMI sanity check.  It will log in,
+        and log out.'
+
+properties:
+    minversion: '1.4'
+    dependencies:
+        - python : 'twisted'
+        - python : 'starpy'

Propchange: asterisk/team/pabelanger/DialplanTestCase/tests/DialPlan/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/pabelanger/DialplanTestCase/tests/DialPlan/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/pabelanger/DialplanTestCase/tests/DialPlan/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: asterisk/team/pabelanger/DialplanTestCase/tests/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/pabelanger/DialplanTestCase/tests/tests.yaml?view=diff&rev=1610&r1=1609&r2=1610
==============================================================================
--- asterisk/team/pabelanger/DialplanTestCase/tests/tests.yaml (original)
+++ asterisk/team/pabelanger/DialplanTestCase/tests/tests.yaml Thu Jun  2 14:50:16 2011
@@ -25,3 +25,4 @@
     - dir: 'agi'
     - dir: 'pbx'
     - dir: 'fax'
+    - test: 'DialPlan'




More information about the asterisk-commits mailing list