Author: jrose Date: Fri Aug 22 11:54:47 2014 New Revision: 5513 URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=5513 Log: Testsuite: Add test for hangup during ARI playback to channel in bridge
This test addresses a crash that was reported in ASTERISK-24147 ASTERISK-24147 #close Reported by: Edvin Vidmar Review: https://reviewboard.asterisk.org/r/3911/ Added: asterisk/trunk/tests/rest_api/channels/playback/to_channel_in_bridge_hangup/ asterisk/trunk/tests/rest_api/channels/playback/to_channel_in_bridge_hangup/test-config.yaml (with props) Modified: asterisk/trunk/tests/rest_api/channels/playback/tests.yaml asterisk/trunk/tests/rest_api/channels/playback/to_channel_in_bridge/test-config.yaml Modified: asterisk/trunk/tests/rest_api/channels/playback/tests.yaml URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/channels/playback/tests.yaml?view=diff&rev=5513&r1=5512&r2=5513 ============================================================================== --- asterisk/trunk/tests/rest_api/channels/playback/tests.yaml (original) +++ asterisk/trunk/tests/rest_api/channels/playback/tests.yaml Fri Aug 22 11:54:47 2014 @@ -2,6 +2,7 @@ tests: - test: 'basic' - test: 'to_channel_in_bridge' + - test: 'to_channel_in_bridge_hangup' - test: 'tones' - test: 'tones_w_tonezone' - test: 'forward' Modified: asterisk/trunk/tests/rest_api/channels/playback/to_channel_in_bridge/test-config.yaml URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/channels/playback/to_channel_in_bridge/test-config.yaml?view=diff&rev=5513&r1=5512&r2=5513 ============================================================================== --- asterisk/trunk/tests/rest_api/channels/playback/to_channel_in_bridge/test-config.yaml (original) +++ asterisk/trunk/tests/rest_api/channels/playback/to_channel_in_bridge/test-config.yaml Fri Aug 22 11:54:47 2014 @@ -18,6 +18,7 @@ - python : twisted - python : starpy - asterisk : res_ari_channels + - asterisk : res_ari_bridges - asterisk : app_echo tags: - ARI @@ -132,15 +133,3 @@ application: testsuite count: 1 -properties: - minversion: '12.2.0' - dependencies: - - python : autobahn.websocket - - python : requests - - python : twisted - - python : starpy - - asterisk : res_ari_channels - - asterisk : res_stasis_playback - - asterisk : app_echo - tags: - - ARI Added: asterisk/trunk/tests/rest_api/channels/playback/to_channel_in_bridge_hangup/test-config.yaml URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/channels/playback/to_channel_in_bridge_hangup/test-config.yaml?view=auto&rev=5513 ============================================================================== --- asterisk/trunk/tests/rest_api/channels/playback/to_channel_in_bridge_hangup/test-config.yaml (added) +++ asterisk/trunk/tests/rest_api/channels/playback/to_channel_in_bridge_hangup/test-config.yaml Fri Aug 22 11:54:47 2014 @@ -1,0 +1,141 @@ +testinfo: + summary: 'Test results of a hangup while in a bridge when doing playback to the channel' + description: | + * Originate a channel + * Create a bridge + * Add the channel to the bridge + * Playback two audio files to the channel (not the bridge) + * Wait for the first to complete + * hangup the channel when the second starts + * Delete the bridge + * Validate all the events + +properties: + minversion: '12.6.0' + dependencies: + - python : autobahn.websocket + - python : requests + - python : twisted + - python : starpy + - asterisk : res_ari_channels + - asterisk : res_ari_bridges + - asterisk : app_echo + tags: + - ARI + +test-modules: + test-object: + config-section: test-object-config + typename: ari.AriOriginateTestObject + modules: + - config-section: ari-config + typename: ari.WebSocketEventModule + +test-object-config: + +ari-config: + apps: testsuite + events: + - + conditions: + match: + type: StasisStart + application: testsuite + channel: + id: 'testsuite-default-id$' + count: 1 + requests: + - + instance: 1 + method: 'post' + uri: 'bridges' + params: + bridgeId: 'testsuite-bridge' + - + instance: 1 + method: 'post' + uri: 'channels/testsuite-default-id/answer' + - + instance: 1 + method: 'post' + uri: 'bridges/testsuite-bridge/addChannel' + params: + channel: 'testsuite-default-id' + - + conditions: + match: + type: ChannelEnteredBridge + application: testsuite + count: 1 + requests: + - + instance: 1 + method: 'post' + uri: 'channels/testsuite-default-id/play/MyPlaybackId1' + params: + media: 'sound:silence/5' + - + instance: 1 + method: 'post' + uri: 'channels/testsuite-default-id/play/MyPlaybackId2' + params: + media: 'sound:silence/5' + - + conditions: + match: + type: PlaybackStarted + application: testsuite + playback: + id: 'MyPlaybackId1' + target_uri: 'channel:testsuite-default-id$' + count: 1 + - + conditions: + match: + type: PlaybackFinished + application: testsuite + playback: + id: 'MyPlaybackId1' + target_uri: 'channel:testsuite-default-id$' + count: 1 + - + conditions: + match: + type: PlaybackStarted + application: testsuite + playback: + id: 'MyPlaybackId2' + target_uri: 'channel:testsuite-default-id$' + requests: + - + instance: 1 + method: 'delete' + uri: 'channels/testsuite-default-id' + count: 1 + - + conditions: + match: + type: PlaybackFinished + application: testsuite + playback: + id: 'MyPlaybackId2' + target_uri: 'channel:testsuite-default-id$' + count: 1 + - + conditions: + match: + type: ChannelLeftBridge + application: testsuite + count: 1 + requests: + - + instance: 1 + method: 'delete' + uri: 'bridges/testsuite-bridge' + - + conditions: + match: + type: StasisEnd + application: testsuite + count: 1 + Propchange: asterisk/trunk/tests/rest_api/channels/playback/to_channel_in_bridge_hangup/test-config.yaml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: asterisk/trunk/tests/rest_api/channels/playback/to_channel_in_bridge_hangup/test-config.yaml ------------------------------------------------------------------------------ svn:keywords = Author Date Id Revision Propchange: asterisk/trunk/tests/rest_api/channels/playback/to_channel_in_bridge_hangup/test-config.yaml ------------------------------------------------------------------------------ svn:mime-type = text/plain -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- svn-commits mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/svn-commits