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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 25 17:37:32 CDT 2013


Author: jrose
Date: Fri Oct 25 17:37:26 2013
New Revision: 4288

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4288
Log:
testsuite ARI: Test ARI recording commands that should fail

Adds tests for the following:
* ARI Recordings against channels that should fail due to file names that
  already exist
* ARI Recordings against channels that should fail due to specifying formats
  that the running instance of Asterisk lacks a handler for

(closes issue ASTERISK-22623)
Reported by: Joshua Colp
(closes issue ASTERISK-22626)
Reported by: Josuah Colp

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

Added:
    asterisk/trunk/tests/rest_api/recording/
    asterisk/trunk/tests/rest_api/recording/file_conflicts/
    asterisk/trunk/tests/rest_api/recording/file_conflicts/configs/
    asterisk/trunk/tests/rest_api/recording/file_conflicts/configs/ast1/
    asterisk/trunk/tests/rest_api/recording/file_conflicts/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/rest_api/recording/file_conflicts/recording.py   (with props)
    asterisk/trunk/tests/rest_api/recording/file_conflicts/test-config.yaml   (with props)
    asterisk/trunk/tests/rest_api/recording/format_unavailable/
    asterisk/trunk/tests/rest_api/recording/format_unavailable/configs/
    asterisk/trunk/tests/rest_api/recording/format_unavailable/configs/ast1/
    asterisk/trunk/tests/rest_api/recording/format_unavailable/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/rest_api/recording/format_unavailable/recording.py   (with props)
    asterisk/trunk/tests/rest_api/recording/format_unavailable/test-config.yaml   (with props)
    asterisk/trunk/tests/rest_api/recording/tests.yaml   (with props)
Removed:
    asterisk/trunk/tests/rest_api/continue/configs/ast1/ari.conf
Modified:
    asterisk/trunk/lib/python/asterisk/ari.py
    asterisk/trunk/tests/rest_api/bridges/hangup/bridge_hangup.py
    asterisk/trunk/tests/rest_api/bridges/happy/bridge_happy.py
    asterisk/trunk/tests/rest_api/bridges/move/bridge_move.py
    asterisk/trunk/tests/rest_api/bridges/unhappy/bridge_unhappy.py
    asterisk/trunk/tests/rest_api/continue/rest_continue.py
    asterisk/trunk/tests/rest_api/continue/test-config.yaml
    asterisk/trunk/tests/rest_api/tests.yaml

Modified: asterisk/trunk/lib/python/asterisk/ari.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/lib/python/asterisk/ari.py?view=diff&rev=4288&r1=4287&r2=4288
==============================================================================
--- asterisk/trunk/lib/python/asterisk/ari.py (original)
+++ asterisk/trunk/lib/python/asterisk/ari.py Fri Oct 25 17:37:26 2013
@@ -422,7 +422,7 @@
             self.count += 1
             # Split call and accumulation to always call the callback
             try:
-                res = self.callback(self.ari, message)
+                res = self.callback(self.ari, message, self.test_object)
                 if res:
                     return True
                 else:

Modified: asterisk/trunk/tests/rest_api/bridges/hangup/bridge_hangup.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/bridges/hangup/bridge_hangup.py?view=diff&rev=4288&r1=4287&r2=4288
==============================================================================
--- asterisk/trunk/tests/rest_api/bridges/hangup/bridge_hangup.py (original)
+++ asterisk/trunk/tests/rest_api/bridges/hangup/bridge_hangup.py Fri Oct 25 17:37:26 2013
@@ -20,7 +20,7 @@
 TEST = BridgeSimple()
 
 
-def on_start(ari, event):
+def on_start(ari, event, test_object):
     LOGGER.debug("on_start(%r)" % event)
     TEST.channel_id = event['channel']['id']
     TEST.bridge_id = ari.post('bridges').json()['id']
@@ -29,7 +29,7 @@
     return True
 
 
-def on_enter(ari, event):
+def on_enter(ari, event, test_object):
     channel_id = event['channel']['id']
     bridge_id = event['bridge']['id']
     assert TEST.channel_id == channel_id

Modified: asterisk/trunk/tests/rest_api/bridges/happy/bridge_happy.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/bridges/happy/bridge_happy.py?view=diff&rev=4288&r1=4287&r2=4288
==============================================================================
--- asterisk/trunk/tests/rest_api/bridges/happy/bridge_happy.py (original)
+++ asterisk/trunk/tests/rest_api/bridges/happy/bridge_happy.py Fri Oct 25 17:37:26 2013
@@ -20,7 +20,7 @@
 TEST = BridgeHappy()
 
 
-def on_start(ari, event):
+def on_start(ari, event, test_object):
     LOGGER.debug("on_start(%r)" % event)
     TEST.channel_id = event['channel']['id']
     TEST.bridge_id = ari.post('bridges').json()['id']
@@ -29,7 +29,7 @@
     return True
 
 
-def on_enter(ari, event):
+def on_enter(ari, event, test_object):
     channel_id = event['channel']['id']
     bridge_id = event['bridge']['id']
     assert TEST.channel_id == channel_id
@@ -38,7 +38,7 @@
     return True
 
 
-def on_leave(ari, event):
+def on_leave(ari, event, test_object):
     channel_id = event['channel']['id']
     bridge_id = event['bridge']['id']
     assert TEST.channel_id == channel_id

Modified: asterisk/trunk/tests/rest_api/bridges/move/bridge_move.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/bridges/move/bridge_move.py?view=diff&rev=4288&r1=4287&r2=4288
==============================================================================
--- asterisk/trunk/tests/rest_api/bridges/move/bridge_move.py (original)
+++ asterisk/trunk/tests/rest_api/bridges/move/bridge_move.py Fri Oct 25 17:37:26 2013
@@ -21,7 +21,7 @@
 TEST = TestLogic()
 
 
-def on_start(ari, event):
+def on_start(ari, event, test_object):
     LOGGER.debug("on_start(%r)" % event)
     TEST.channel_id = event['channel']['id']
     TEST.bridge1_id = ari.post('bridges').json()['id']
@@ -31,7 +31,7 @@
     return True
 
 
-def on_enter(ari, event):
+def on_enter(ari, event, test_object):
     channel_id = event['channel']['id']
     bridge_id = event['bridge']['id']
     assert TEST.channel_id == channel_id
@@ -47,7 +47,7 @@
     return True
 
 
-def on_leave(ari, event):
+def on_leave(ari, event, test_object):
     channel_id = event['channel']['id']
     bridge_id = event['bridge']['id']
     assert TEST.channel_id == channel_id

Modified: asterisk/trunk/tests/rest_api/bridges/unhappy/bridge_unhappy.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/bridges/unhappy/bridge_unhappy.py?view=diff&rev=4288&r1=4287&r2=4288
==============================================================================
--- asterisk/trunk/tests/rest_api/bridges/unhappy/bridge_unhappy.py (original)
+++ asterisk/trunk/tests/rest_api/bridges/unhappy/bridge_unhappy.py Fri Oct 25 17:37:26 2013
@@ -156,14 +156,14 @@
 TEST = BridgeUnhappy()
 
 
-def on_start(ari, event):
+def on_start(ari, event, test_object):
     r = TEST.on_start(ari, event)
     if r:
         TEST.run_test(ari)
     return r
 
 
-def on_end(ari, event):
+def on_end(ari, event, test_object):
     r = TEST.on_end(ari, event)
     if r:
         TEST.run_test(ari)

Modified: asterisk/trunk/tests/rest_api/continue/rest_continue.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/continue/rest_continue.py?view=diff&rev=4288&r1=4287&r2=4288
==============================================================================
--- asterisk/trunk/tests/rest_api/continue/rest_continue.py (original)
+++ asterisk/trunk/tests/rest_api/continue/rest_continue.py Fri Oct 25 17:37:26 2013
@@ -13,7 +13,7 @@
 id = None
 
 
-def on_start(ari, event):
+def on_start(ari, event, test_object):
     logger.debug("on_start(%r)" % event)
     global id
     id = event['channel']['id']
@@ -21,13 +21,13 @@
     return True
 
 
-def on_end(ari, event):
+def on_end(ari, event, test_object):
     global id
     logger.debug("on_end(%r)" % event)
     return id == event['channel']['id']
 
 
-def on_second_start(ari, event):
+def on_second_start(ari, event, test_object):
     global id
     logger.debug("on_second_start(%r)" % event)
     ari.delete('channels', id)

Modified: asterisk/trunk/tests/rest_api/continue/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/continue/test-config.yaml?view=diff&rev=4288&r1=4287&r2=4288
==============================================================================
--- asterisk/trunk/tests/rest_api/continue/test-config.yaml (original)
+++ asterisk/trunk/tests/rest_api/continue/test-config.yaml Fri Oct 25 17:37:26 2013
@@ -52,7 +52,7 @@
         - python : requests
         - python : twisted
         - python : starpy
-        - asterisk : res_stasis_http_channels
+        - asterisk : res_ari_channels
         - asterisk : app_echo
     tags:
         - ARI

Added: asterisk/trunk/tests/rest_api/recording/file_conflicts/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/recording/file_conflicts/configs/ast1/extensions.conf?view=auto&rev=4288
==============================================================================
--- asterisk/trunk/tests/rest_api/recording/file_conflicts/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/rest_api/recording/file_conflicts/configs/ast1/extensions.conf Fri Oct 25 17:37:26 2013
@@ -1,0 +1,6 @@
+[default]
+
+exten => s,1,NoOp()
+	same => n,Answer()
+	same => n,Stasis(testsuite)
+	same => n,Hangup()

Propchange: asterisk/trunk/tests/rest_api/recording/file_conflicts/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/rest_api/recording/file_conflicts/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/rest_api/recording/file_conflicts/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/rest_api/recording/file_conflicts/recording.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/recording/file_conflicts/recording.py?view=auto&rev=4288
==============================================================================
--- asterisk/trunk/tests/rest_api/recording/file_conflicts/recording.py (added)
+++ asterisk/trunk/tests/rest_api/recording/file_conflicts/recording.py Fri Oct 25 17:37:26 2013
@@ -1,0 +1,126 @@
+'''
+Copyright (C) 2013, 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 logging
+import requests
+from twisted.internet import reactor
+
+LOGGER = logging.getLogger(__name__)
+
+
+class TestLogic(object):
+    def __init__(self):
+        self.channel_id = None
+
+TEST = TestLogic()
+
+
+def fail_test():
+    TEST.test_object.set_passed(False)
+    TEST.test_object.stop_reactor()
+
+
+def on_start(ari, event, test_object):
+    TEST.test_object = test_object
+    TEST.ari = ari
+
+    LOGGER.debug("on_start(%r)" % event)
+    TEST.channel_id = event['channel']['id']
+
+    LOGGER.info("Channel '%s' connected to Stasis. Starting the test")
+    LOGGER.info("Attempting to answer the channel.")
+
+    try:
+        TEST.ari.post('channels', TEST.channel_id, 'answer')
+    except requests.exceptions.HTTPError:
+        LOGGER.error('Failed to answer.')
+        fail_test()
+        return True
+
+    LOGGER.info("Answered the channel. Starting the baseline recording.")
+
+    try:
+        TEST.ari.post('channels', TEST.channel_id, 'record',
+                      name="superfly", format="wav")
+    except requests.exceptions.HTTPError:
+        LOGGER.error("Failed to record.")
+        fail_test()
+        return True
+
+    LOGGER.info("Baseline recording started successfully.")
+
+    # XXX No recording started events yet, so we allow time before continuing.
+    reactor.callLater(0.2, step_two)
+    return True
+
+
+def step_two():
+    LOGGER.info("Attempting to stop the baseline recording.")
+
+    try:
+        TEST.ari.post('recordings/live', 'superfly', 'stop')
+    except requests.exceptions.HTTPError:
+        LOGGER.error('Failed to stop recording.')
+        fail_test()
+        return
+
+    LOGGER.info("Baseline recording stopped.")
+    LOGGER.info("Attempting to start expected failure recording: "
+                "(file name conflict).")
+
+    try:
+        # Overwrite is not allowed and the file will already exist,
+        # so this should fail.
+        TEST.ari.post('channels', TEST.channel_id, 'record',
+                      name="superfly", format="wav",
+                      ifExists="fail")
+        LOGGER.error('This recording was supposed to fail and it did not.')
+        fail_test()
+        return
+    except requests.exceptions.HTTPError:
+        pass
+
+    LOGGER.info("The recording failed as expected.")
+    LOGGER.info("Attempting to start recording with overwrite enabled")
+
+    try:
+        # Overwrite is allowed, so recording should succeed this time.
+        TEST.ari.post('channels', TEST.channel_id, 'record',
+                      name="superfly", format="wav",
+                      ifExists="overwrite")
+    except requests.exceptions.HTTPError:
+        LOGGER.error('Failed to record in overwrite mode.')
+        fail_test()
+        return
+
+    LOGGER.info("The overwrite recording started successfully")
+
+    # XXX No recording started events yet, so we allow time before continuing.
+    reactor.callLater(0.2, step_three)
+
+
+def step_three():
+    LOGGER.info("Attempting to stop the overwrite recording")
+
+    try:
+        TEST.ari.post('recordings/live', 'superfly', 'stop')
+    except requests.exceptions.HTTPError:
+        LOGGER.error('Failed to stop overwrite recording.')
+        fail_test()
+        return
+
+    LOGGER.info("Overwrite recording stopped successfully. Leave Stasis.")
+
+    try:
+        TEST.ari.post('channels', TEST.channel_id, 'continue')
+    except requests.exceptions.HTTPError:
+        LOGGER.error('Failed to leave stasis. Crud.')
+        fail_test()
+        return
+
+    LOGGER.info("All tests complete: The channel should be out of stasis.")

Propchange: asterisk/trunk/tests/rest_api/recording/file_conflicts/recording.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/rest_api/recording/file_conflicts/recording.py
------------------------------------------------------------------------------
    svn:executable = *

Propchange: asterisk/trunk/tests/rest_api/recording/file_conflicts/recording.py
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/rest_api/recording/file_conflicts/recording.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/rest_api/recording/file_conflicts/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/recording/file_conflicts/test-config.yaml?view=auto&rev=4288
==============================================================================
--- asterisk/trunk/tests/rest_api/recording/file_conflicts/test-config.yaml (added)
+++ asterisk/trunk/tests/rest_api/recording/file_conflicts/test-config.yaml Fri Oct 25 17:37:26 2013
@@ -1,0 +1,46 @@
+testinfo:
+    summary: Test expected events and responses for recording with and without file name conflicts.
+    description: |
+        Put a channel in stasis then record a file from it. Stop the recording and then start a new
+        one with the same name without allowing overwrites. Start a new recording with the same name
+        while allowing overwrites.
+
+test-modules:
+    add-test-to-search-path: True
+    test-object:
+        config-section: test-object-config
+        typename: ari.AriTestObject
+    modules:
+        -   config-section: ari-config
+            typename: ari.WebSocketEventModule
+
+ari-config:
+    apps: testsuite
+    events:
+        -   conditions:
+                match:
+                    type: StasisStart
+                    application: testsuite
+                    args: []
+            count: 1
+            callback:
+                module: recording
+                method: on_start
+        -   conditions:
+                match:
+                    type: StasisEnd
+                    application: testsuite
+            count: 1
+
+properties:
+    minversion: '12.0.0'
+    dependencies:
+        - python : autobahn.websocket
+        - python : requests
+        - python : twisted
+        - python : starpy
+        - asterisk : res_ari_channels
+        - asterisk : res_ari_recordings
+        - asterisk : app_echo
+    tags:
+        - ARI

Propchange: asterisk/trunk/tests/rest_api/recording/file_conflicts/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/rest_api/recording/file_conflicts/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/rest_api/recording/file_conflicts/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/rest_api/recording/format_unavailable/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/recording/format_unavailable/configs/ast1/extensions.conf?view=auto&rev=4288
==============================================================================
--- asterisk/trunk/tests/rest_api/recording/format_unavailable/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/rest_api/recording/format_unavailable/configs/ast1/extensions.conf Fri Oct 25 17:37:26 2013
@@ -1,0 +1,6 @@
+[default]
+
+exten => s,1,NoOp()
+	same => n,Answer()
+	same => n,Stasis(testsuite)
+	same => n,Hangup()

Propchange: asterisk/trunk/tests/rest_api/recording/format_unavailable/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/rest_api/recording/format_unavailable/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/rest_api/recording/format_unavailable/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/rest_api/recording/format_unavailable/recording.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/recording/format_unavailable/recording.py?view=auto&rev=4288
==============================================================================
--- asterisk/trunk/tests/rest_api/recording/format_unavailable/recording.py (added)
+++ asterisk/trunk/tests/rest_api/recording/format_unavailable/recording.py Fri Oct 25 17:37:26 2013
@@ -1,0 +1,97 @@
+'''
+Copyright (C) 2013, 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 logging
+import requests
+from twisted.internet import reactor
+
+LOGGER = logging.getLogger(__name__)
+
+
+class TestLogic(object):
+    def __init__(self):
+        self.channel_id = None
+
+TEST = TestLogic()
+
+
+def fail_test():
+    TEST.test_object.set_passed(False)
+    TEST.test_object.stop_reactor()
+
+
+def on_start(ari, event, test_object):
+    TEST.test_object = test_object
+    TEST.ari = ari
+
+    LOGGER.debug("on_start(%r)" % event)
+    TEST.channel_id = event['channel']['id']
+
+    LOGGER.info("Channel '%s' connected to Stasis. Starting the test")
+    LOGGER.info("Attempting to answer the channel.")
+
+    try:
+        TEST.ari.post('channels', TEST.channel_id, 'answer')
+    except requests.exceptions.HTTPError:
+        LOGGER.error('Failed to answer.')
+        fail_test()
+        return True
+
+    LOGGER.info("Answered the channel. Starting the baseline recording.")
+
+    try:
+        TEST.ari.post('channels', TEST.channel_id, 'record',
+                      name="superfly", format="wav")
+    except requests.exceptions.HTTPError:
+        LOGGER.error("Failed to record.")
+        fail_test()
+        return True
+
+    LOGGER.info("Baseline recording started successfully.")
+
+    # XXX No recording started events yet, so we allow time before continuing.
+    reactor.callLater(0.2, step_two)
+    return True
+
+
+def step_two():
+    LOGGER.info("Attempting to stop the baseline recording.")
+
+    try:
+        TEST.ari.post('recordings/live', 'superfly', 'stop')
+    except requests.exceptions.HTTPError:
+        LOGGER.error('Failed to stop recording.')
+        fail_test()
+        return
+
+    LOGGER.info("Baseline recording stopped.")
+    LOGGER.info("Attempting to start expected failure recording: "
+                "(format not available).")
+
+    try:
+        # Overwrite is not allowed and the file will already exist,
+        # so this should fail.
+        TEST.ari.post('channels', TEST.channel_id, 'record',
+                      name="spookyspider", format="grue",
+                      ifExists="fail")
+        LOGGER.error('This recording was supposed to fail and it did not.')
+        fail_test()
+        return
+    except requests.exceptions.HTTPError:
+        pass
+
+    LOGGER.info("The recording failed as expected. Leave Stasis.")
+
+    try:
+        TEST.ari.post('channels', TEST.channel_id, 'continue')
+    except requests.exceptions.HTTPError:
+        LOGGER.error('Failed to leave stasis. Crud.')
+        fail_test()
+        return
+
+    LOGGER.info("All tests complete: The channel should be out of stasis.")

Propchange: asterisk/trunk/tests/rest_api/recording/format_unavailable/recording.py
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/rest_api/recording/format_unavailable/recording.py
------------------------------------------------------------------------------
    svn:executable = *

Propchange: asterisk/trunk/tests/rest_api/recording/format_unavailable/recording.py
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/rest_api/recording/format_unavailable/recording.py
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/rest_api/recording/format_unavailable/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/recording/format_unavailable/test-config.yaml?view=auto&rev=4288
==============================================================================
--- asterisk/trunk/tests/rest_api/recording/format_unavailable/test-config.yaml (added)
+++ asterisk/trunk/tests/rest_api/recording/format_unavailable/test-config.yaml Fri Oct 25 17:37:26 2013
@@ -1,0 +1,46 @@
+testinfo:
+    summary: Test expected events and responses for recording with known and unknown formats
+    description: |
+        Put a channel in stasis then record a file from it with a format we should have. Stop the
+        recording and then start a new recording with a different format that we shouldn't have.
+
+test-modules:
+    add-test-to-search-path: True
+    test-object:
+        config-section: test-object-config
+        typename: ari.AriTestObject
+    modules:
+        -   config-section: ari-config
+            typename: ari.WebSocketEventModule
+
+ari-config:
+    apps: testsuite
+    events:
+        -   conditions:
+                match:
+                    type: StasisStart
+                    application: testsuite
+                    args: []
+            count: 1
+            callback:
+                module: recording
+                method: on_start
+        -   conditions:
+                match:
+                    type: StasisEnd
+                    application: testsuite
+            count: 1
+
+properties:
+    minversion: '12.0.0'
+    dependencies:
+        - python : autobahn.websocket
+        - python : requests
+        - python : twisted
+        - python : starpy
+        - asterisk : res_ari_channels
+        - asterisk : res_ari_recordings
+        - asterisk : format_wav
+        - asterisk : app_echo
+    tags:
+        - ARI

Propchange: asterisk/trunk/tests/rest_api/recording/format_unavailable/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/rest_api/recording/format_unavailable/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/rest_api/recording/format_unavailable/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/rest_api/recording/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/recording/tests.yaml?view=auto&rev=4288
==============================================================================
--- asterisk/trunk/tests/rest_api/recording/tests.yaml (added)
+++ asterisk/trunk/tests/rest_api/recording/tests.yaml Fri Oct 25 17:37:26 2013
@@ -1,0 +1,4 @@
+# Enter tests here in the order they should be considered for execution:
+tests:
+    - test: 'file_conflicts'
+    - test: 'format_unavailable'

Propchange: asterisk/trunk/tests/rest_api/recording/tests.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/rest_api/recording/tests.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/rest_api/recording/tests.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: asterisk/trunk/tests/rest_api/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/tests.yaml?view=diff&rev=4288&r1=4287&r2=4288
==============================================================================
--- asterisk/trunk/tests/rest_api/tests.yaml (original)
+++ asterisk/trunk/tests/rest_api/tests.yaml Fri Oct 25 17:37:26 2013
@@ -5,3 +5,4 @@
     - test: 'CORS'
     - dir:  'applications'
     - dir:  'bridges'
+    - dir:  'recording'




More information about the asterisk-commits mailing list