[asterisk-commits] mjordan: testsuite/asterisk/trunk r3863 - in /asterisk/trunk/tests/apps/bridg...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jun 18 16:34:55 CDT 2013
Author: mjordan
Date: Tue Jun 18 16:34:53 2013
New Revision: 3863
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=3863
Log:
Update bridge/bridge_baseline test for Asterisk 12
Modified:
asterisk/trunk/tests/apps/bridge/bridge_baseline/configs/ast1/extensions.conf
asterisk/trunk/tests/apps/bridge/bridge_baseline/test-config.yaml
Modified: asterisk/trunk/tests/apps/bridge/bridge_baseline/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/bridge/bridge_baseline/configs/ast1/extensions.conf?view=diff&rev=3863&r1=3862&r2=3863
==============================================================================
--- asterisk/trunk/tests/apps/bridge/bridge_baseline/configs/ast1/extensions.conf (original)
+++ asterisk/trunk/tests/apps/bridge/bridge_baseline/configs/ast1/extensions.conf Tue Jun 18 16:34:53 2013
@@ -15,4 +15,4 @@
exten => bridge,1,Answer()
exten => bridge,2,Bridge(${BRIDGEECHAN})
-exten => bridge,3,NoOp(Bridge Complete)
+exten => bridge,3,Hangup()
Modified: asterisk/trunk/tests/apps/bridge/bridge_baseline/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/bridge/bridge_baseline/test-config.yaml?view=diff&rev=3863&r1=3862&r2=3863
==============================================================================
--- asterisk/trunk/tests/apps/bridge/bridge_baseline/test-config.yaml (original)
+++ asterisk/trunk/tests/apps/bridge/bridge_baseline/test-config.yaml Tue Jun 18 16:34:53 2013
@@ -6,7 +6,202 @@
expected results. The test passes if the event indicates a successful bridge
and if the channels is the bridge are the expected channels.'
+test-modules:
+ test-object:
+ config-section: test-object-config
+ typename: 'SimpleTestCase.SimpleTestCase'
+ modules:
+ -
+ config-section: originator-config
+ typename: 'PluggableModules.Originator'
+ -
+ maxversion: '12.0.0'
+ config-section: ami-config-pre-12
+ typename: 'ami.AMIEventModule'
+ -
+ maxversion: '12.0.0'
+ config-section: hangup-config-pre-12
+ typename: 'PluggableModules.AMIChannelHangupAll'
+ -
+ maxversion: '12.0.0'
+ config-section: cdr-config-pre-12
+ typename: 'cdr.CDRModule'
+ -
+ minversion: '12.0.0'
+ config-section: ami-config-12
+ typename: 'ami.AMIEventModule'
+ -
+ minversion: '12.0.0'
+ config-section: hangup-config-12
+ typename: 'PluggableModules.AMIChannelHangup'
+ -
+ minversion: '12.0.0'
+ config-section: cdr-config-12
+ typename: 'cdr.CDRModule'
+
+
+test-object-config:
+ expected_events: 0
+ spawn-after-hangup: True
+ test-iterations:
+ -
+ channel: 'Local/local at call1'
+ context: test_context
+ exten: call
+ priority: 1
+
+originator-config:
+ channel: 'Local/local at call2'
+ context: test_context
+ exten: bridge
+ priority: 1
+ trigger: 'event'
+ event:
+ id: '0'
+ conditions:
+ match:
+ Event: UserEvent
+ UserEvent: StartBridge
+
+hangup-config-pre-12:
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'Bridge'
+ Bridgestate: 'Link'
+ Bridgetype: 'core'
+
+ami-config-pre-12:
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'Bridge'
+ Bridgestate: 'Link'
+ Bridgetype: 'core'
+ count: '1'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'Unlink'
+ count: '1'
+
+cdr-config-pre-12:
+ -
+ file: 'Master'
+ lines:
+ -
+ accountcode: ''
+ destination: 'local'
+ dcontext: 'call.{1}'
+ callerid: ''
+ channel: 'Local/local at call.{1}-.{8};2'
+ dchannel: ''
+ lastapp: 'Answer'
+ disposition: 'ANSWERED'
+ amaflags: 'DOCUMENTATION'
+ -
+ accountcode: ''
+ destination: 'local'
+ dcontext: 'call.{1}'
+ callerid: ''
+ channel: 'Local/local at call.{1}-.{8};2'
+ dchannel: ''
+ lastapp: 'Answer'
+ disposition: 'ANSWERED'
+ amaflags: 'DOCUMENTATION'
+
+hangup-config-12:
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'BridgeEnter'
+ BridgeType: simple_bridge
+ Channel: Local/local at call1-.{8};1
+
+ami-config-12:
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'BridgeEnter'
+ BridgeType: simple_bridge
+ Channel: Local/local at call1-.{8};1
+ count: '1'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'BridgeEnter'
+ BridgeType: simple_bridge
+ Channel: Local/local at call2-.{8};1
+ count: '1'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'BridgeLeave'
+ BridgeType: simple_bridge
+ Channel: Local/local at call1-.{8};1
+ count: '1'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'BridgeLeave'
+ BridgeType: simple_bridge
+ Channel: Local/local at call2-.{8};1
+ count: '1'
+
+cdr-config-12:
+ -
+ file: 'Master'
+ lines:
+ -
+ accountcode: ''
+ destination: 'bridge'
+ dcontext: 'test_context'
+ callerid: '"" <>'
+ channel: 'Local/local at call2-.{8};1'
+ dchannel: 'Local/local at call1-.{8};1'
+ lastapp: 'Bridge'
+ disposition: 'ANSWERED'
+ amaflags: 'DOCUMENTATION'
+ -
+ accountcode: ''
+ destination: 'bridge'
+ dcontext: 'test_context'
+ callerid: '"" <>'
+ channel: 'Local/local at call2-.{8};1'
+ dchannel: ''
+ lastapp: 'Hangup'
+ disposition: 'ANSWERED'
+ amaflags: 'DOCUMENTATION'
+ -
+ accountcode: ''
+ destination: 'local'
+ dcontext: 'call.{1}'
+ callerid: '"" <>'
+ channel: 'Local/local at call.{1}-.{8};2'
+ dchannel: ''
+ lastapp: 'Answer'
+ disposition: 'ANSWERED'
+ amaflags: 'DOCUMENTATION'
+ -
+ accountcode: ''
+ destination: 'local'
+ dcontext: 'call.{1}'
+ callerid: '"" <>'
+ channel: 'Local/local at call.{1}-.{8};2'
+ dchannel: ''
+ lastapp: 'Answer'
+ disposition: 'ANSWERED'
+ amaflags: 'DOCUMENTATION'
+
+
properties:
minversion: '1.8.0.0'
tags:
- bridge
+
More information about the asterisk-commits
mailing list