[asterisk-bugs] [JIRA] (ASTERISK-20502) Definition of new test-condition called sip-channels, which checks for the output of "sip show channels"
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Sat Jul 13 15:48:03 CDT 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-20502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=207948#comment-207948 ]
Matt Jordan commented on ASTERISK-20502:
----------------------------------------
Commit hooks must have been on vacation.
{noformat}
r3736 | mjordan | 2013-05-01 11:13:04 -0500 (Wed, 01 May 2013) | 13 lines
Changed paths:
A /asterisk/trunk/lib/python/asterisk/SipChannelTestCondition.py
M /asterisk/trunk/test-config.yaml
Add sip-channels test condition
This patch adds the ability to check for the presence of SIP channels prior to
and after test execution using the pre-/post-condition checking API. If a
SIP channel is detected, the test is failed.
(closes issue ASTERISK-20502)
Reported by: Nitesh Bansal
patches:
SipChannelTestCondition.py uploaded by Nitesh Bansal (License 6418)
test-config.yaml uploaded by Nitesh Bansal (License 6418)
{noformat}
> Definition of new test-condition called sip-channels, which checks for the output of "sip show channels"
> ---------------------------------------------------------------------------------------------------------
>
> Key: ASTERISK-20502
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-20502
> Project: Asterisk
> Issue Type: Improvement
> Security Level: None
> Components: Tests/testsuite
> Affects Versions: 11.0.0-beta1
> Environment: Debian Squeeze x86_64
> Reporter: NITESH BANSAL
> Severity: Minor
> Attachments: SipChannelTestCondition.py, test-config.yaml
>
>
> Hello All,
> I have got the "sip show channels" working for me in the testsuite. I have defined a new testcondition sip-channels which checks for the output of "sip show channels" at the end of a test case and validates the output against the allowedchannels parameter defined in the test-config.yaml file.
> Please find the global test-config.yaml defining this condition and python class
> implementing the behaviour for this condition. I would request you to have a look at the code and if it seems fine then i assume there is no harm in merging this code in testsuite trunk.
> Regards,
> Nitesh Bansal
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list