[svn-commits] dlee: branch dlee/record r3885 - in /asterisk/team/dlee/record/tests/rest_api...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jul 5 12:43:49 CDT 2013


Author: dlee
Date: Fri Jul  5 12:43:47 2013
New Revision: 3885

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3885
Log:
getting started

Added:
    asterisk/team/dlee/record/tests/rest_api/record/
    asterisk/team/dlee/record/tests/rest_api/record/happy/
    asterisk/team/dlee/record/tests/rest_api/record/happy/record_happy.py   (with props)
    asterisk/team/dlee/record/tests/rest_api/record/happy/test-config.yaml   (with props)
    asterisk/team/dlee/record/tests/rest_api/record/tests.yaml   (with props)
Modified:
    asterisk/team/dlee/record/tests/rest_api/tests.yaml

Added: asterisk/team/dlee/record/tests/rest_api/record/happy/record_happy.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/dlee/record/tests/rest_api/record/happy/record_happy.py?view=auto&rev=3885
==============================================================================
--- asterisk/team/dlee/record/tests/rest_api/record/happy/record_happy.py (added)
+++ asterisk/team/dlee/record/tests/rest_api/record/happy/record_happy.py Fri Jul  5 12:43:47 2013
@@ -1,0 +1,16 @@
+'''
+Copyright (C) 2013, Digium, Inc.
+David M. Lee, II <dlee at digium.com>
+
+This program is free software, distributed under the terms of
+the GNU General Public License Version 2.
+'''
+
+import logging
+
+logger = logging.getLogger(__name__)
+
+def on_start(ari, event):
+    logger.error("on_start(%r)" % event)
+    id = event['channel']['uniqueid']
+    ari.post('channels', id, record)

Propchange: asterisk/team/dlee/record/tests/rest_api/record/happy/record_happy.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/dlee/record/tests/rest_api/record/happy/record_happy.py
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/dlee/record/tests/rest_api/record/happy/record_happy.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/dlee/record/tests/rest_api/record/happy/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/dlee/record/tests/rest_api/record/happy/test-config.yaml?view=auto&rev=3885
==============================================================================
--- asterisk/team/dlee/record/tests/rest_api/record/happy/test-config.yaml (added)
+++ asterisk/team/dlee/record/tests/rest_api/record/happy/test-config.yaml Fri Jul  5 12:43:47 2013
@@ -1,0 +1,33 @@
+testinfo:
+    summary: Test the happy path of recording a channel.
+    description: |
+        Wait for a channel to enter the application, record for a few seconds,
+        make sure the recording exists.
+
+test-modules:
+    add-test-to-search-path: True
+    test-object:
+        config-section: test-object-config
+        typename: SimpleTestCase.SimpleTestCase
+    modules:
+        -   config-section: ari-config
+            typename: ari.WebSocketEventModule
+
+test-object-config:
+    spawn-after-hangup: True
+    test-iterations:
+        -   channel: Local/s at default
+            application: Echo
+
+ari-config:
+    apps: record-happy-test
+    events:
+        -   conditions:
+                match:
+                    application: record-happy-test
+                    stasis_start:
+                        args: []
+            count: 1
+            callback:
+                module: record_happy
+                method: on_start

Propchange: asterisk/team/dlee/record/tests/rest_api/record/happy/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/dlee/record/tests/rest_api/record/happy/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/dlee/record/tests/rest_api/record/happy/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/dlee/record/tests/rest_api/record/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/dlee/record/tests/rest_api/record/tests.yaml?view=auto&rev=3885
==============================================================================
--- asterisk/team/dlee/record/tests/rest_api/record/tests.yaml (added)
+++ asterisk/team/dlee/record/tests/rest_api/record/tests.yaml Fri Jul  5 12:43:47 2013
@@ -1,0 +1,2 @@
+tests:
+    - test: 'happy'

Propchange: asterisk/team/dlee/record/tests/rest_api/record/tests.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/dlee/record/tests/rest_api/record/tests.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/dlee/record/tests/rest_api/record/tests.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: asterisk/team/dlee/record/tests/rest_api/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/dlee/record/tests/rest_api/tests.yaml?view=diff&rev=3885&r1=3884&r2=3885
==============================================================================
--- asterisk/team/dlee/record/tests/rest_api/tests.yaml (original)
+++ asterisk/team/dlee/record/tests/rest_api/tests.yaml Fri Jul  5 12:43:47 2013
@@ -2,3 +2,4 @@
 tests:
     - test: 'continue'
     - test: 'authentication'
+    - dir:  'record'




More information about the svn-commits mailing list