[asterisk-commits] mjordan: branch mjordan/testsuite-stasis r5075 - in /asterisk/team/mjordan/te...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed May 28 12:22:11 CDT 2014
Author: mjordan
Date: Wed May 28 12:22:08 2014
New Revision: 5075
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=5075
Log:
Set automerge, add some initial tweaks
Added:
asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/
asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/
asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/
asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/extensions.conf (with props)
asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/manager.general.conf.inc (with props)
asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/test-config.yaml (with props)
asterisk/team/mjordan/testsuite-stasis/tests/manager/status/
asterisk/team/mjordan/testsuite-stasis/tests/manager/status/configs/
asterisk/team/mjordan/testsuite-stasis/tests/manager/status/configs/ast1/
asterisk/team/mjordan/testsuite-stasis/tests/manager/status/configs/ast1/extensions.conf (with props)
asterisk/team/mjordan/testsuite-stasis/tests/manager/status/status.py (with props)
asterisk/team/mjordan/testsuite-stasis/tests/manager/status/test-config.yaml (with props)
Modified:
asterisk/team/mjordan/testsuite-stasis/ (props changed)
asterisk/team/mjordan/testsuite-stasis/test-config.yaml
asterisk/team/mjordan/testsuite-stasis/tests/manager/tests.yaml
Propchange: asterisk/team/mjordan/testsuite-stasis/
------------------------------------------------------------------------------
automerge = *
Propchange: asterisk/team/mjordan/testsuite-stasis/
------------------------------------------------------------------------------
automerge-email = mjordan at digium.com
Modified: asterisk/team/mjordan/testsuite-stasis/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/testsuite-stasis/test-config.yaml?view=diff&rev=5075&r1=5074&r2=5075
==============================================================================
--- asterisk/team/mjordan/testsuite-stasis/test-config.yaml (original)
+++ asterisk/team/mjordan/testsuite-stasis/test-config.yaml Wed May 28 12:22:08 2014
@@ -83,6 +83,8 @@
# Include all tests that can run under the installed version of Asterisk.
# It is included merely for completeness.
config-standard:
+ properties:
+ forced-version: 12.0.0
# This test enables the pre- and post-test condition checking on all tests
# that support it. Individual tests can override the behavior of a pre-
Added: asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/extensions.conf?view=auto&rev=5075
==============================================================================
--- asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/extensions.conf (added)
+++ asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/extensions.conf Wed May 28 12:22:08 2014
@@ -1,0 +1,7 @@
+
+[default]
+
+exten => s,1,NoOp()
+ same => n,Answer()
+ same => n,Set(foo=bar)
+ same => n,Hangup()
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/manager.general.conf.inc
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/manager.general.conf.inc?view=auto&rev=5075
==============================================================================
--- asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/manager.general.conf.inc (added)
+++ asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/manager.general.conf.inc Wed May 28 12:22:08 2014
@@ -1,0 +1,1 @@
+channelvars = foo,does_not_exist
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/manager.general.conf.inc
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/manager.general.conf.inc
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/configs/ast1/manager.general.conf.inc
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/test-config.yaml?view=auto&rev=5075
==============================================================================
--- asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/test-config.yaml (added)
+++ asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/test-config.yaml Wed May 28 12:22:08 2014
@@ -1,0 +1,55 @@
+testinfo:
+ summary: 'Test AMI channelvars setting'
+ description: |
+ This test verifies that AMI ev
+
+test-modules:
+ test-object:
+ config-section: test-config
+ typename: 'test_case.SimpleTestCase'
+ modules:
+ -
+ config-section: 'ami-config'
+ typename: 'ami.AMIEventModule'
+
+test-config:
+ spawn-after-hangup: True
+ expected_events: 0
+ test-iterations:
+ -
+ channel: 'Local/s at default'
+ application: 'Echo'
+ data: ''
+
+ami-config:
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'Newexten'
+ Exten: 's'
+ Context: 'default'
+ Priority: '3'
+ requirements:
+ match:
+ ChanVariable: 'foo='
+ ChanVariable: 'does_not_exist='
+ count: '1'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'VarSet'
+ Variable: 'foo'
+ requirements:
+ match:
+ Value: 'bar'
+ ChanVariable: 'foo=bar'
+ ChanVariable: 'does_not_exist='
+ count: '1'
+
+properties:
+ minversion: '12.0.0'
+ dependencies:
+ - python : 'twisted'
+ - python : 'starpy'
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/test-config.yaml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/test-config.yaml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/manager_vars/test-config.yaml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/testsuite-stasis/tests/manager/status/configs/ast1/extensions.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/testsuite-stasis/tests/manager/status/configs/ast1/extensions.conf?view=auto&rev=5075
==============================================================================
--- asterisk/team/mjordan/testsuite-stasis/tests/manager/status/configs/ast1/extensions.conf (added)
+++ asterisk/team/mjordan/testsuite-stasis/tests/manager/status/configs/ast1/extensions.conf Wed May 28 12:22:08 2014
@@ -1,0 +1,6 @@
+[default]
+
+exten => s,1,NoOp()
+ same => n,Answer()
+ same => n,Echo()
+
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/status/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/status/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/status/configs/ast1/extensions.conf
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/testsuite-stasis/tests/manager/status/status.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/testsuite-stasis/tests/manager/status/status.py?view=auto&rev=5075
==============================================================================
--- asterisk/team/mjordan/testsuite-stasis/tests/manager/status/status.py (added)
+++ asterisk/team/mjordan/testsuite-stasis/tests/manager/status/status.py Wed May 28 12:22:08 2014
@@ -1,0 +1,30 @@
+#!/usr/bin/env python
+"""Test snippet that drives the Status AMI action in the status test
+
+Copyright (C) 2014, Digium, Inc.
+Matt Jordan <mjordan at digium.com>
+
+This program is free software, distributed under the terms of
+the GNU General Public License Version 2.
+"""
+
+def exec_status(ami, event):
+ """Run the Status AMI action, then hangup
+
+ Keyword Arguments:
+ ami The AMI connection
+ event The event that triggered the callback
+ """
+
+ def _hangup_channels(result, ami, channel):
+ ami.hangup(channel)
+ return result
+
+ # Get a list of channels
+ ami.status()
+
+ # Get a specific channel
+ df = ami.status(channel=event.get('channel'))
+ df.addCallback(_hangup_channels, ami, event.get('channel'))
+
+ return True
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/status/status.py
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/status/status.py
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/status/status.py
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: asterisk/team/mjordan/testsuite-stasis/tests/manager/status/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/testsuite-stasis/tests/manager/status/test-config.yaml?view=auto&rev=5075
==============================================================================
--- asterisk/team/mjordan/testsuite-stasis/tests/manager/status/test-config.yaml (added)
+++ asterisk/team/mjordan/testsuite-stasis/tests/manager/status/test-config.yaml Wed May 28 12:22:08 2014
@@ -1,0 +1,119 @@
+testinfo:
+ summary: 'Test AMI channelvars setting'
+ description: |
+ This test verifies that AMI ev
+
+test-modules:
+ add-test-to-search-path: 'True'
+ test-object:
+ config-section: test-config
+ typename: 'test_case.SimpleTestCase'
+ modules:
+ -
+ config-section: 'ami-config'
+ typename: 'ami.AMIEventModule'
+
+test-config:
+ spawn-after-hangup: True
+ expected_events: 0
+ test-iterations:
+ -
+ channel: 'Local/s at default'
+ application: 'Echo'
+ data: ''
+
+ami-config:
+ -
+ type: 'callback'
+ conditions:
+ match:
+ Event: 'Newexten'
+ Exten: 's'
+ Context: 'default'
+ Priority: '3'
+ Channel: 'Local/s at default-00000000;2'
+ callbackModule: 'status'
+ callbackMethod: 'exec_status'
+ count: '1'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'Status'
+ Channel: 'Local/s at default-00000000;1'
+ requirements:
+ match:
+ Privilege: 'Call'
+ ChannelState: '6'
+ ChannelStateDesc: 'Up'
+ CallerIDNum: '<unknown>'
+ CallerIDName: '<unknown>'
+ ConnectedLineNum: '<unknown>'
+ ConnectedLineName: '<unknown>'
+ Accountcode: ''
+ Context: 'default'
+ Exten: 's'
+ Priority: '1'
+ Uniqueid: '[1-9].*'
+ Type: 'Local'
+ DNID: ''
+ EffectiveConnectedLineNum: '<unknown>'
+ EffectiveConnectedLineName: '<unknown>'
+ TimeToHangup: '0'
+ BridgeID: ''
+ Linkedid: '[1-9].*'
+ Application: 'Echo'
+ Data: ''
+ Nativeformats: '\(slin\)'
+ Readformat: 'slin'
+ Readtrans: ''
+ Writeformat: 'slin'
+ Writetrans: ''
+ Callgroup: '0'
+ Pickupgroup: '0'
+ Seconds: '[0-9]'
+ count: '1'
+ -
+ type: 'headermatch'
+ conditions:
+ match:
+ Event: 'Status'
+ Channel: 'Local/s at default-00000000;2'
+ requirements:
+ match:
+ Privilege: 'Call'
+ ChannelState: '6'
+ ChannelStateDesc: 'Up'
+ CallerIDNum: '<unknown>'
+ CallerIDName: '<unknown>'
+ ConnectedLineNum: '<unknown>'
+ ConnectedLineName: '<unknown>'
+ Accountcode: ''
+ Context: 'default'
+ Exten: 's'
+ Priority: '3'
+ Uniqueid: '[1-9].*'
+ Type: 'Local'
+ DNID: ''
+ EffectiveConnectedLineNum: '<unknown>'
+ EffectiveConnectedLineName: '<unknown>'
+ TimeToHangup: '0'
+ BridgeID: ''
+ Linkedid: '[1-9].*'
+ Application: 'Echo'
+ Data: ''
+ Nativeformats: '\(slin\)'
+ Readformat: 'slin'
+ Readtrans: ''
+ Writeformat: 'slin'
+ Writetrans: ''
+ Callgroup: '0'
+ Pickupgroup: '0'
+ Seconds: '[0-9]'
+ count: '2'
+
+properties:
+ minversion: '12.0.0'
+ dependencies:
+ - python : 'twisted'
+ - python : 'starpy'
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/status/test-config.yaml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/status/test-config.yaml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: asterisk/team/mjordan/testsuite-stasis/tests/manager/status/test-config.yaml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Modified: asterisk/team/mjordan/testsuite-stasis/tests/manager/tests.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mjordan/testsuite-stasis/tests/manager/tests.yaml?view=diff&rev=5075&r1=5074&r2=5075
==============================================================================
--- asterisk/team/mjordan/testsuite-stasis/tests/manager/tests.yaml (original)
+++ asterisk/team/mjordan/testsuite-stasis/tests/manager/tests.yaml Wed May 28 12:22:08 2014
@@ -10,5 +10,7 @@
- test: 'originate'
- test: 'device_state_changed'
- test: 'presence_state_changed'
+ - test: 'manager_vars'
+ - test: 'status'
# Temporarily disabled while failures are debugged
#- test: 'response-time'
More information about the asterisk-commits
mailing list