[svn-commits] kmoore: testsuite/asterisk/trunk r4332 - in /asterisk/trunk/tests/apps/queues...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Nov 11 09:40:24 CST 2013


Author: kmoore
Date: Mon Nov 11 09:40:21 2013
New Revision: 4332

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4332
Log:
Add queue penalty range test

This adds a test for the recent bugfix where setting queue penalty
limits of 0 would cause the limits to be ignored. This test verifies
that the limits are not ignored.

(issue ASTERISK-20862)
Review: https://reviewboard.asterisk.org/r/2997/

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

Added: asterisk/trunk/tests/apps/queues/queue_penalty_outside_range/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_penalty_outside_range/configs/ast1/extensions.conf?view=auto&rev=4332
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_penalty_outside_range/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/apps/queues/queue_penalty_outside_range/configs/ast1/extensions.conf Mon Nov 11 09:40:21 2013
@@ -1,0 +1,10 @@
+[default]
+
+exten => caller,1,NoOp()
+	same => n,Set(QUEUE_MIN_PENALTY=0)
+	same => n,Set(QUEUE_MAX_PENALTY=0)
+	same => n,Queue(test_queue,,,,3)
+
+exten => queue_member_one,1,NoOp()
+	same => n,UserEvent(member_answer)
+	same => n,Hangup()

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

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

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

Added: asterisk/trunk/tests/apps/queues/queue_penalty_outside_range/configs/ast1/queues.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_penalty_outside_range/configs/ast1/queues.conf?view=auto&rev=4332
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_penalty_outside_range/configs/ast1/queues.conf (added)
+++ asterisk/trunk/tests/apps/queues/queue_penalty_outside_range/configs/ast1/queues.conf Mon Nov 11 09:40:21 2013
@@ -1,0 +1,2 @@
+[test_queue]
+member => Local/queue_member_one at default,1

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

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

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

Added: asterisk/trunk/tests/apps/queues/queue_penalty_outside_range/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/queue_penalty_outside_range/test-config.yaml?view=auto&rev=4332
==============================================================================
--- asterisk/trunk/tests/apps/queues/queue_penalty_outside_range/test-config.yaml (added)
+++ asterisk/trunk/tests/apps/queues/queue_penalty_outside_range/test-config.yaml Mon Nov 11 09:40:21 2013
@@ -1,0 +1,46 @@
+testinfo:
+    summary: Test behavior of app_queue when a caller enters a Queue and the
+        only available member is outside the penalty limits.
+    description: |
+        'This test verifies that when a caller enters a queue where the only
+        available agents fall outside the penalty limits, that eventually the
+        caller times out and leaves the queue.'
+
+test-modules:
+    test-object:
+        config-section: test-object-config
+        typename: 'SimpleTestCase.SimpleTestCase'
+    modules:
+        -
+            config-section: 'ami-config'
+            typename: 'ami.AMIEventModule'
+
+ami-config:
+    -
+        type: 'headermatch'
+        conditions:
+            match:
+                Event: 'UserEvent'
+                UserEvent: 'member_answer'
+        count: '0'
+
+
+test-object-config:
+    spawn-after-hangup: True
+    ignore-originate-failures: True
+    end-test-delay: 2
+    test-iterations:
+        -
+            channel: 'Local/caller at default'
+            application: 'Echo'
+            async: True
+
+properties:
+    minversion: '1.8.0'
+    dependencies:
+        - python : 'twisted'
+        - python : 'starpy'
+        - asterisk : 'app_queue'
+    tags:
+        - queues
+        - chan_local

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

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

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

Modified: asterisk/trunk/tests/apps/queues/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/queues/tests.yaml?view=diff&rev=4332&r1=4331&r2=4332
==============================================================================
--- asterisk/trunk/tests/apps/queues/tests.yaml (original)
+++ asterisk/trunk/tests/apps/queues/tests.yaml Mon Nov 11 09:40:21 2013
@@ -8,6 +8,7 @@
     - test: 'queue_all_paused_no_answer'
     - test: 'queue_no_answer'
     - test: 'queue_one_paused_no_answer'
+    - test: 'queue_penalty_outside_range'
     # Temporarily disabled while failures are debugged
     #- test: 'macro_gosub_test'
     # Temporarily disabled while failures are debugged




More information about the svn-commits mailing list