[asterisk-commits] rmudgett: branch rmudgett/cel_accountcode r5288 - in /asterisk/team/rmudgett/...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jul 21 15:48:24 CDT 2014


Author: rmudgett
Date: Mon Jul 21 15:48:19 2014
New Revision: 5288

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=5288
Log:
testsuite: Add accountcode propagation test dealing with AMI call origination.

Added:
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/configs/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/configs/ast1/
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/configs/ast1/extensions.conf   (with props)
    asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/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/local_originate/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/configs/ast1/extensions.conf?view=auto&rev=5288
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/configs/ast1/extensions.conf (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/configs/ast1/extensions.conf Mon Jul 21 15:48:19 2014
@@ -1,0 +1,6 @@
+[default]
+
+exten => alice,1,NoOp()
+ same => n,Answer()
+ same => n,Wait(5)
+ same => n,Hangup()

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/configs/ast1/extensions.conf
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/test-config.yaml?view=auto&rev=5288
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/test-config.yaml (added)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/test-config.yaml Mon Jul 21 15:48:19 2014
@@ -1,0 +1,56 @@
+testinfo:
+    summary:     'Test accountcode with call origination'
+    description: |
+        'The test checks that AMI call origination sets the accountcode and peeraccount.'
+
+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'
+            account: 'orig_acct'
+            application: 'Echo'
+            async: True
+
+ami-config:
+    # Alice events
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'CEL'
+                Channel: 'Local/alice at default-.*;1'
+                EventName: 'ANSWER'
+        requirements:
+            match:
+                AccountCode: 'orig_acct'
+                PeerAccount: 'orig_acct'
+        count: '1'
+    -
+        type: 'headermatch'
+        id: '0'
+        conditions:
+            match:
+                Event: 'CEL'
+                Channel: 'Local/alice at default-.*;2'
+                EventName: 'ANSWER'
+        requirements:
+            match:
+                AccountCode: 'orig_acct'
+                PeerAccount: 'orig_acct'
+        count: '1'
+
+properties:
+    minversion: '13.0.0'
+    tags:
+        - accountcode

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/test-config.yaml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/test-config.yaml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/local_originate/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=5288&r1=5287&r2=5288
==============================================================================
--- asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/tests.yaml (original)
+++ asterisk/team/rmudgett/cel_accountcode/tests/pbx/accountcode/tests.yaml Mon Jul 21 15:48:19 2014
@@ -6,11 +6,9 @@
     - test: 'dial_predial'
     - test: 'dial_straight_none'
     - test: 'dial_straight_override'
-    #BUGBUG to be completed
     - test: 'local_crossover'
     - test: 'local_crossover_back'
-    #- test: 'local_originate'
-    #- test: 'local_originate_back'
+    - test: 'local_originate'
     - test: 'queue_none'
     - test: 'queue_peer_none'
     - test: 'queue_peer_preserve'




More information about the asterisk-commits mailing list