[asterisk-commits] mmichelson: testsuite/asterisk/trunk r4411 - in /asterisk/trunk/tests/apps: ....

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 9 10:49:38 CST 2013


Author: mmichelson
Date: Mon Dec  9 10:49:36 2013
New Revision: 4411

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4411
Log:
Add test for the MIXMONITOR dialplan function.

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


Added:
    asterisk/trunk/tests/apps/mixmonitor_func/
    asterisk/trunk/tests/apps/mixmonitor_func/configs/
    asterisk/trunk/tests/apps/mixmonitor_func/configs/ast1/
    asterisk/trunk/tests/apps/mixmonitor_func/configs/ast1/extensions.conf   (with props)
    asterisk/trunk/tests/apps/mixmonitor_func/test-config.yaml   (with props)
Modified:
    asterisk/trunk/tests/apps/tests.yaml

Added: asterisk/trunk/tests/apps/mixmonitor_func/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/mixmonitor_func/configs/ast1/extensions.conf?view=auto&rev=4411
==============================================================================
--- asterisk/trunk/tests/apps/mixmonitor_func/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/apps/mixmonitor_func/configs/ast1/extensions.conf Mon Dec  9 10:49:36 2013
@@ -1,0 +1,9 @@
+[test]
+exten => 100,1,Answer()
+     same => n,Set(FILENAME=myfile.wav)
+     same => n,MixMonitor(${FILENAME},i(ID))
+     ; FILEVAR contains the full path to the file. We can't make assumptions about
+     ; the path, so we use a regex to check that the variable ends with the expected
+     ; file name.
+     same => n,ExecIf(${REGEX(".*/${FILENAME}"${MIXMONITOR(${ID},filename)}})}?UserEvent(Yay):NoOp())
+     same => n,Hangup()

Propchange: asterisk/trunk/tests/apps/mixmonitor_func/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/mixmonitor_func/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/mixmonitor_func/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/trunk/tests/apps/mixmonitor_func/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/mixmonitor_func/test-config.yaml?view=auto&rev=4411
==============================================================================
--- asterisk/trunk/tests/apps/mixmonitor_func/test-config.yaml (added)
+++ asterisk/trunk/tests/apps/mixmonitor_func/test-config.yaml Mon Dec  9 10:49:36 2013
@@ -1,0 +1,18 @@
+testinfo:
+    summary: 'Test that the f option for MixMonitor() saves the filename to the appropriate place'
+    description: |
+        'A call is originated to an extension that calls MixMonitor with the f option
+        enabled. The call then checks that the variable name passed to the f option
+        has the expected filename set.'
+
+test-modules:
+    test-object:
+        typename: 'SimpleTestCase.SimpleTestCase'
+
+properties:
+    minversion: '13.0.0'
+    dependencies:
+        - python: 'twisted'
+        - python: 'starpy'
+    tags:
+        - mixmonitor

Propchange: asterisk/trunk/tests/apps/mixmonitor_func/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/trunk/tests/apps/mixmonitor_func/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/trunk/tests/apps/mixmonitor_func/test-config.yaml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: asterisk/trunk/tests/apps/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/tests.yaml?view=diff&rev=4411&r1=4410&r2=4411
==============================================================================
--- asterisk/trunk/tests/apps/tests.yaml (original)
+++ asterisk/trunk/tests/apps/tests.yaml Mon Dec  9 10:49:36 2013
@@ -12,5 +12,6 @@
     - test: 'directed_pickup'
     - test: 'mixmonitor'
     - test: 'mixmonitor_audiohook_inherit'
+    - test: 'mixmonitor_func'
     - dir: 'control_playback'
     - dir: 'playback'




More information about the asterisk-commits mailing list