[asterisk-commits] jrose: testsuite/asterisk/trunk r4895 - in /asterisk/trunk/tests/apps/confbri...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Mar 26 10:38:20 CDT 2014
Author: jrose
Date: Wed Mar 26 10:38:11 2014
New Revision: 4895
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4895
Log:
confbridge: Add testsuite test for startmuted user option
(closes issue ASTERISK-23461)
Reported by: Chicho Manobela
Review: https://reviewboard.asterisk.org/r/3374/
Added:
asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/
asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/
asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/
asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/confbridge.conf (with props)
asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/extensions.conf (with props)
asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/manager.general.conf.inc (with props)
asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/sip.conf (with props)
asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/test-config.yaml (with props)
Modified:
asterisk/trunk/tests/apps/confbridge/tests.yaml
Added: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/confbridge.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/confbridge.conf?view=auto&rev=4895
==============================================================================
--- asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/confbridge.conf (added)
+++ asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/confbridge.conf Wed Mar 26 10:38:11 2014
@@ -1,0 +1,3 @@
+[default_user]
+type=user
+startmuted=yes
Propchange: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/confbridge.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/confbridge.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/confbridge.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/extensions.conf?view=auto&rev=4895
==============================================================================
--- asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/extensions.conf (added)
+++ asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/extensions.conf Wed Mar 26 10:38:11 2014
@@ -1,0 +1,18 @@
+[default]
+exten => alice,1,ConfBridge(1)
+
+exten => bob,1,ConfBridge(1)
+
+exten => carol,1,ConfBridge(1)
+
+exten => sendDTMF,1,NoOp()
+ same => n,Verbose(1, Sending DTMF Signal ${DTMF_TO_SEND})
+ same => n,SendDTMF(${DTMF_TO_SEND})
+ same => n,Goto(default,wait,1)
+
+exten => hangup,1,NoOp()
+ same => n,Verbose(1, Hanging up)
+ same => n,Hangup()
+
+exten => wait,1,NoOp()
+ same => n,Wait(10000)
Propchange: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/manager.general.conf.inc
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/manager.general.conf.inc?view=auto&rev=4895
==============================================================================
--- asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/manager.general.conf.inc (added)
+++ asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/manager.general.conf.inc Wed Mar 26 10:38:11 2014
@@ -1,0 +1,2 @@
+channelvars = CONFBRIDGE_RESULT
+channelvars = CONFBRIDGE_RESULT
Propchange: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/manager.general.conf.inc
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/manager.general.conf.inc
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/manager.general.conf.inc
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/sip.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/sip.conf?view=auto&rev=4895
==============================================================================
--- asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/sip.conf (added)
+++ asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/sip.conf Wed Mar 26 10:38:11 2014
@@ -1,0 +1,12 @@
+[general]
+bindaddr = 127.0.0.1
+
+[ast2_g722]
+type = friend
+context = confbridge
+fromuser = ast2_g722
+host = 127.0.0.2
+disallow = all
+allow = g722
+qualify = no
+insecure = invite
Propchange: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/sip.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/sip.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/configs/ast1/sip.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/test-config.yaml?view=auto&rev=4895
==============================================================================
--- asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/test-config.yaml (added)
+++ asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/test-config.yaml Wed Mar 26 10:38:11 2014
@@ -1,0 +1,187 @@
+testinfo:
+ summary: 'Test status of app_confbridge users with startmuted option set'
+ description: |
+ This tests execution of app_confbridge with three users entering a
+ single audio conference when configured with a user profile set with
+ startmuted.
+
+test-modules:
+ test-object:
+ config-section: test-object-config
+ typename: 'apptest.AppTest'
+
+test-object-config:
+ app: 'ConfBridge'
+ scenarios:
+ -
+ events:
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'ConfbridgeStart'
+ Conference: '1'
+ actions:
+ -
+ action-type: 'set-expected-result'
+ expected-result: 'Conference Started'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'ConfbridgeEnd'
+ Conference: '1'
+ actions:
+ -
+ action-type: 'set-expected-result'
+ expected-result: 'Conference Ended'
+ -
+ action-type: 'end-scenario'
+ channels:
+ -
+ channel-id: 'Alice'
+ channel-name: 'Local/alice at default'
+ start-on-create: True
+ events:
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'ConfbridgeJoin'
+ Conference: '1'
+ Channel: 'Local/alice at default-.*'
+ actions:
+ -
+ action-type: 'set-expected-result'
+ expected-result: 'Alice Joined'
+ -
+ action-type: 'start-call'
+ channel-id: 'Bob'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'TestEvent'
+ Type: 'StateChange'
+ State: 'CONF_MUTE_UPDATE'
+ Mode: 'muted'
+ Channel: 'Local/alice at default-.*'
+ actions:
+ -
+ action-type: 'set-expected-result'
+ expected-result: 'Alice is muted'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'ConfbridgeLeave'
+ Conference: '1'
+ Channel: 'Local/alice at default-.*'
+ actions:
+ -
+ action-type: 'set-expected-result'
+ expected-result: 'Alice Left'
+ -
+ channel-id: 'Bob'
+ channel-name: 'Local/bob at default'
+ events:
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'ConfbridgeJoin'
+ Conference: '1'
+ Channel: 'Local/bob at default-.*'
+ actions:
+ -
+ action-type: 'set-expected-result'
+ expected-result: 'Bob Joined'
+ -
+ action-type: 'start-call'
+ channel-id: 'Carol'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'TestEvent'
+ Type: 'StateChange'
+ State: 'CONF_MUTE_UPDATE'
+ Mode: 'muted'
+ Channel: 'Local/bob at default-.*'
+ actions:
+ -
+ action-type: 'set-expected-result'
+ expected-result: 'Bob is muted'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'ConfbridgeLeave'
+ Conference: '1'
+ Channel: 'Local/bob at default-.*'
+ actions:
+ -
+ action-type: 'set-expected-result'
+ expected-result: 'Bob Left'
+ -
+ channel-id: 'Carol'
+ channel-name: 'Local/carol at default'
+ events:
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'ConfbridgeJoin'
+ Conference: '1'
+ Channel: 'Local/carol at default-.*'
+ actions:
+ -
+ action-type: 'set-expected-result'
+ expected-result: 'Carol Joined'
+ -
+ action-type: 'hangup'
+ channel-id: 'Alice'
+ -
+ action-type: 'hangup'
+ channel-id: 'Bob'
+ -
+ action-type: 'hangup'
+ channel-id: 'Carol'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'TestEvent'
+ Type: 'StateChange'
+ State: 'CONF_MUTE_UPDATE'
+ Mode: 'muted'
+ Channel: 'Local/carol at default-.*'
+ actions:
+ -
+ action-type: 'set-expected-result'
+ expected-result: 'Carol is muted'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'ConfbridgeLeave'
+ Conference: '1'
+ Channel: 'Local/carol at default-.*'
+ actions:
+ -
+ action-type: 'set-expected-result'
+ expected-result: 'Carol Left'
+
+
+properties:
+ minversion: '11.9.0'
+ tags:
+ - confbridge
+ - apps
+ dependencies:
+ - buildoption: 'TEST_FRAMEWORK'
+ - python: 'twisted'
+ - python: 'starpy'
+ - asterisk: 'app_confbridge'
+ - asterisk: 'app_senddtmf'
+ - asterisk: 'app_playback'
Propchange: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/test-config.yaml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/test-config.yaml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/trunk/tests/apps/confbridge/confbridge_start_muted/test-config.yaml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: asterisk/trunk/tests/apps/confbridge/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/apps/confbridge/tests.yaml?view=diff&rev=4895&r1=4894&r2=4895
==============================================================================
--- asterisk/trunk/tests/apps/confbridge/tests.yaml (original)
+++ asterisk/trunk/tests/apps/confbridge/tests.yaml Wed Mar 26 10:38:11 2014
@@ -2,6 +2,7 @@
tests:
- test: 'confbridge_marked_unmarked'
- test: 'confbridge_marked'
+ - test: 'confbridge_start_muted'
- test: 'confbridge_waitmarked_normal'
- test: 'confbridge_waitmarked_single'
- test: 'confbridge_waitmarked_only'
More information about the asterisk-commits
mailing list