[asterisk-commits] rmudgett: branch rmudgett/cel_accountcode r5286 - in /asterisk/team/rmudgett/...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jul 21 12:40:30 CDT 2014
Author: rmudgett
Date: Mon Jul 21 12:40:26 2014
New Revision: 5286
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=5286
Log:
testsuite: Add accountcode propagation tests dealing with app_queue.
Added:
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/extensions.conf (with props)
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/pjsip.conf (with props)
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/queues.conf (with props)
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/test-config.yaml (with props)
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/extensions.conf (with props)
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/pjsip.conf (with props)
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/queues.conf (with props)
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/test-config.yaml (with props)
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/extensions.conf (with props)
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/pjsip.conf (with props)
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/queues.conf (with props)
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/test-config.yaml (with props)
Modified:
asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/tests.yaml
Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/extensions.conf?view=auto&rev=5286
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/extensions.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/extensions.conf Mon Jul 21 12:40:26 2014
@@ -1,0 +1,10 @@
+[default]
+
+exten => alice,1,NoOp()
+ same => n,Queue(test_q)
+ same => n,Hangup()
+
+exten => bob,1,NoOp()
+ same => n,Answer()
+ same => n,Wait(5)
+ same => n,Hangup()
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/pjsip.conf?view=auto&rev=5286
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/pjsip.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/pjsip.conf Mon Jul 21 12:40:26 2014
@@ -1,0 +1,21 @@
+[local-transport]
+type=transport
+bind=127.0.0.1
+protocol=udp
+
+[bob]
+type=endpoint
+context=default
+allow=!all,ulaw,alaw
+transport=local-transport
+aors=bob
+accountcode=bob_config
+
+[bob-identify]
+type=identify
+endpoint=bob
+match=127.0.0.1
+
+[bob]
+type=aor
+contact=sip:bob at 127.0.0.1:5060\;transport=udp
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/queues.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/queues.conf?view=auto&rev=5286
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/queues.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/queues.conf Mon Jul 21 12:40:26 2014
@@ -1,0 +1,5 @@
+[general]
+autofill = yes
+
+[test_q]
+member = PJSIP/bob,,Bugs Bunny
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/queues.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/queues.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/configs/ast1/queues.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/test-config.yaml?view=auto&rev=5286
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/test-config.yaml (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/test-config.yaml Mon Jul 21 12:40:26 2014
@@ -1,0 +1,65 @@
+testinfo:
+ summary: 'Test queue channel accountcode propagation (agent bob keeps accountcode)'
+ description: |
+ 'The test checks that agent bob keeps his accountcode when alice does not have any.
+ 1) alice does not have an accountcode or a peeraccount set
+ 2) alice gets agent bob
+ 3) bob has an accountcode when his channel is created
+ 4) bob keeps his accountcode'
+
+test-modules:
+ test-object:
+ config-section: test-object-config
+ typename: 'test_case.SimpleTestCase'
+ modules:
+ -
+ config-section: ami-config
+ typename: 'ami.AMIEventModule'
+
+test-object-config:
+ spawn-after-hangup: True
+ test-iterations:
+ -
+ channel: 'Local/alice at default'
+ application: 'Echo'
+ async: True
+
+ami-config:
+ # Alice events
+ -
+ type: 'headermatch'
+ id: '0'
+ conditions:
+ match:
+ Event: 'CEL'
+ Channel: 'Local/alice at default-.*'
+ EventName: 'BRIDGE_EXIT'
+ requirements:
+ match:
+ AccountCode: ''
+ PeerAccount: 'bob_config'
+ count: '1'
+ # Bob events
+ -
+ type: 'headermatch'
+ id: '0'
+ conditions:
+ match:
+ Event: 'CEL'
+ Channel: 'PJSIP/bob-.*'
+ EventName: 'BRIDGE_EXIT'
+ requirements:
+ match:
+ AccountCode: 'bob_config'
+ PeerAccount: ''
+ count: '1'
+
+properties:
+ minversion: '13.0.0'
+ dependencies:
+ - asterisk : 'app_queue'
+ - asterisk : 'func_channel'
+ - asterisk : 'res_pjsip'
+ tags:
+ - pjsip
+ - accountcode
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/test-config.yaml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/test-config.yaml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_none/test-config.yaml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/extensions.conf?view=auto&rev=5286
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/extensions.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/extensions.conf Mon Jul 21 12:40:26 2014
@@ -1,0 +1,12 @@
+[default]
+
+exten => alice,1,NoOp()
+ same => n,Set(CHANNEL(accountcode)=alice_dialplan)
+ same => n,Set(CHANNEL(peeraccount)=peer_preset)
+ same => n,Queue(test_q)
+ same => n,Hangup()
+
+exten => bob,1,NoOp()
+ same => n,Answer()
+ same => n,Wait(5)
+ same => n,Hangup()
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/pjsip.conf?view=auto&rev=5286
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/pjsip.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/pjsip.conf Mon Jul 21 12:40:26 2014
@@ -1,0 +1,20 @@
+[local-transport]
+type=transport
+bind=127.0.0.1
+protocol=udp
+
+[bob]
+type=endpoint
+context=default
+allow=!all,ulaw,alaw
+transport=local-transport
+aors=bob
+
+[bob-identify]
+type=identify
+endpoint=bob
+match=127.0.0.1
+
+[bob]
+type=aor
+contact=sip:bob at 127.0.0.1:5060\;transport=udp
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/queues.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/queues.conf?view=auto&rev=5286
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/queues.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/queues.conf Mon Jul 21 12:40:26 2014
@@ -1,0 +1,5 @@
+[general]
+autofill = yes
+
+[test_q]
+member = PJSIP/bob,,Bugs Bunny
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/queues.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/queues.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/configs/ast1/queues.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/test-config.yaml?view=auto&rev=5286
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/test-config.yaml (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/test-config.yaml Mon Jul 21 12:40:26 2014
@@ -1,0 +1,66 @@
+testinfo:
+ summary: 'Test queue channel accountcode propagation of peeraccount preset to bob'
+ description: |
+ 'The test checks the peeraccount accountcode propagation to a
+ queue agent channel that does not have an accountcode.
+ 1) alice has an accountcode and a peeraccount set
+ 2) alice gets agent bob
+ 3) bob does not have an accountcode when his channel is created
+ 4) bob gets the preset peeraccount code of alice'
+
+test-modules:
+ test-object:
+ config-section: test-object-config
+ typename: 'test_case.SimpleTestCase'
+ modules:
+ -
+ config-section: ami-config
+ typename: 'ami.AMIEventModule'
+
+test-object-config:
+ spawn-after-hangup: True
+ test-iterations:
+ -
+ channel: 'Local/alice at default'
+ application: 'Echo'
+ async: True
+
+ami-config:
+ # Alice events
+ -
+ type: 'headermatch'
+ id: '0'
+ conditions:
+ match:
+ Event: 'CEL'
+ Channel: 'Local/alice at default-.*'
+ EventName: 'BRIDGE_EXIT'
+ requirements:
+ match:
+ AccountCode: 'alice_dialplan'
+ PeerAccount: 'peer_preset'
+ count: '1'
+ # Bob events
+ -
+ type: 'headermatch'
+ id: '0'
+ conditions:
+ match:
+ Event: 'CEL'
+ Channel: 'PJSIP/bob-.*'
+ EventName: 'BRIDGE_EXIT'
+ requirements:
+ match:
+ AccountCode: 'peer_preset'
+ PeerAccount: 'alice_dialplan'
+ count: '1'
+
+properties:
+ minversion: '13.0.0'
+ dependencies:
+ - asterisk : 'app_queue'
+ - asterisk : 'func_channel'
+ - asterisk : 'res_pjsip'
+ tags:
+ - pjsip
+ - accountcode
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/test-config.yaml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/test-config.yaml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_none/test-config.yaml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/extensions.conf?view=auto&rev=5286
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/extensions.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/extensions.conf Mon Jul 21 12:40:26 2014
@@ -1,0 +1,12 @@
+[default]
+
+exten => alice,1,NoOp()
+ same => n,Set(CHANNEL(accountcode)=alice_dialplan)
+ same => n,Set(CHANNEL(peeraccount)=peer_preset)
+ same => n,Queue(test_q)
+ same => n,Hangup()
+
+exten => bob,1,NoOp()
+ same => n,Answer()
+ same => n,Wait(5)
+ same => n,Hangup()
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/pjsip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/pjsip.conf?view=auto&rev=5286
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/pjsip.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/pjsip.conf Mon Jul 21 12:40:26 2014
@@ -1,0 +1,21 @@
+[local-transport]
+type=transport
+bind=127.0.0.1
+protocol=udp
+
+[bob]
+type=endpoint
+context=default
+allow=!all,ulaw,alaw
+transport=local-transport
+aors=bob
+accountcode=bob_config
+
+[bob-identify]
+type=identify
+endpoint=bob
+match=127.0.0.1
+
+[bob]
+type=aor
+contact=sip:bob at 127.0.0.1:5060\;transport=udp
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/pjsip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/queues.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/queues.conf?view=auto&rev=5286
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/queues.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/queues.conf Mon Jul 21 12:40:26 2014
@@ -1,0 +1,5 @@
+[general]
+autofill = yes
+
+[test_q]
+member = PJSIP/bob,,Bugs Bunny
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/queues.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/queues.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/configs/ast1/queues.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/test-config.yaml?view=auto&rev=5286
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/test-config.yaml (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/test-config.yaml Mon Jul 21 12:40:26 2014
@@ -1,0 +1,65 @@
+testinfo:
+ summary: 'Test queue channel accountcode propagation (agent bob keeps accountcode)'
+ description: |
+ 'The test checks that agent bob keeps accountcode.
+ 1) alice has an accountcode and a peeraccount set
+ 2) alice gets agent bob
+ 3) bob has an accountcode when his channel is created
+ 4) bob keeps his accountcode'
+
+test-modules:
+ test-object:
+ config-section: test-object-config
+ typename: 'test_case.SimpleTestCase'
+ modules:
+ -
+ config-section: ami-config
+ typename: 'ami.AMIEventModule'
+
+test-object-config:
+ spawn-after-hangup: True
+ test-iterations:
+ -
+ channel: 'Local/alice at default'
+ application: 'Echo'
+ async: True
+
+ami-config:
+ # Alice events
+ -
+ type: 'headermatch'
+ id: '0'
+ conditions:
+ match:
+ Event: 'CEL'
+ Channel: 'Local/alice at default-.*'
+ EventName: 'BRIDGE_EXIT'
+ requirements:
+ match:
+ AccountCode: 'alice_dialplan'
+ PeerAccount: 'bob_config'
+ count: '1'
+ # Bob events
+ -
+ type: 'headermatch'
+ id: '0'
+ conditions:
+ match:
+ Event: 'CEL'
+ Channel: 'PJSIP/bob-.*'
+ EventName: 'BRIDGE_EXIT'
+ requirements:
+ match:
+ AccountCode: 'bob_config'
+ PeerAccount: 'alice_dialplan'
+ count: '1'
+
+properties:
+ minversion: '13.0.0'
+ dependencies:
+ - asterisk : 'app_queue'
+ - asterisk : 'func_channel'
+ - asterisk : 'res_pjsip'
+ tags:
+ - pjsip
+ - accountcode
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/test-config.yaml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/test-config.yaml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/queue_peer_preserve/test-config.yaml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/tests.yaml?view=diff&rev=5286&r1=5285&r2=5286
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/tests.yaml (original)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/tests.yaml Mon Jul 21 12:40:26 2014
@@ -10,8 +10,6 @@
#- test: 'local_crossover'
#- test: 'local_originate'
#- test: 'local_originate_back'
- #- test: 'queue_none'
- #- test: 'queue_peer_none'
- #- test: 'queue_peer_preserve'
- #- test: 'queue_straight_none'
- #- test: 'queue_straight_preserve'
+ - test: 'queue_none'
+ - test: 'queue_peer_none'
+ - test: 'queue_peer_preserve'
More information about the asterisk-commits
mailing list