[asterisk-commits] mjordan: testsuite/asterisk/trunk r4141 - /asterisk/trunk/tests/asyncagi/asyn...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 10 09:13:41 CDT 2013


Author: mjordan
Date: Tue Sep 10 09:13:40 2013
New Revision: 4141

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4141
Log:
Fix the AsyncAGI Break test for Asterisk 12

When the events were updated in AGI/AsyncAGI, the AsyncAGI break test was not
updated. This patch updates the test for the expected events in Asterisk 12.

(closes issue ASTERISK-22319)
Reported by: mjordan

Modified:
    asterisk/trunk/tests/asyncagi/asyncagi_break/test-config.yaml

Modified: asterisk/trunk/tests/asyncagi/asyncagi_break/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/asyncagi/asyncagi_break/test-config.yaml?view=diff&rev=4141&r1=4140&r2=4141
==============================================================================
--- asterisk/trunk/tests/asyncagi/asyncagi_break/test-config.yaml (original)
+++ asterisk/trunk/tests/asyncagi/asyncagi_break/test-config.yaml Tue Sep 10 09:13:40 2013
@@ -11,7 +11,12 @@
         typename: 'SimpleTestCase.SimpleTestCase'
     modules:
         -
-            config-section: ami-config
+            config-section: ami-config-11
+            maxversion: '11.0.0'
+            typename: 'ami.AMIEventModule'
+        -
+            config-section: ami-config-12
+            minversion: '12.0.0'
             typename: 'ami.AMIEventModule'
 
 test-object-config:
@@ -21,7 +26,7 @@
             channel: 'Local/s at default'
             application: 'Echo'
 
-ami-config:
+ami-config-11:
     -
         type: 'headermatch'
         conditions:
@@ -76,6 +81,57 @@
                 ResultCode: '200'
                 Result: 'Success'
 
+ami-config-12:
+    -
+        type: 'headermatch'
+        conditions:
+            match:
+                Event: 'UserEvent'
+        requirements:
+            match:
+                Result: 'pass'
+        count: '1'
+    -
+        type: 'callback'
+        conditions:
+            match:
+                Event: 'AsyncAGIStart'
+                Channel: 'Local/s at default-.*'
+        callbackModule: 'asyncagi_break'
+        callbackMethod: 'async_start'
+    -
+        type: 'callback'
+        conditions:
+            match:
+                Event: 'AGIExecStart'
+                Channel: 'Local/s at default-.*'
+                Command: 'STREAM FILE tt-monkeys ""'
+        callbackModule: 'asyncagi_break'
+        callbackMethod: 'async_break'
+    -
+        type: 'headermatch'
+        conditions:
+            match:
+                Event: 'AGIExecEnd'
+                Channel: 'Local/s at default-.*'
+                Command: 'STREAM FILE tt-monkeys ""'
+        requirements:
+            match:
+                ResultCode: '200'
+                Result: 'Success'
+        count: '1'
+    -
+        type: 'headermatch'
+        conditions:
+            match:
+                Event: 'AGIExecEnd'
+                Channel: 'Local/s at default-.*'
+                Command: 'ASYNCAGI BREAK'
+        requirements:
+            match:
+                ResultCode: '200'
+                Result: 'Success'
+
 properties:
     minversion: '1.8.0.0'
     tags:




More information about the asterisk-commits mailing list