[asterisk-commits] mjordan: testsuite/asterisk/trunk r5211 - in /asterisk/trunk/tests/rest_api/b...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jul 7 07:56:37 CDT 2014
Author: mjordan
Date: Mon Jul 7 07:56:26 2014
New Revision: 5211
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=5211
Log:
tests/rest_api/bridges: Remove explicit subscription deletions
Previously, a subscription to a resource had to be manually removed, even if
the resource was destroyed. Now, if a resource is destroyed, any subscriptions
to it are tidied up. Hence, performing an explicit subscription removal after
bridge destruction is no longer necessary.
Modified:
asterisk/trunk/tests/rest_api/bridges/bridge_by_id/test-config.yaml
asterisk/trunk/tests/rest_api/bridges/delete/bridge_delete.py
Modified: asterisk/trunk/tests/rest_api/bridges/bridge_by_id/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/bridges/bridge_by_id/test-config.yaml?view=diff&rev=5211&r1=5210&r2=5211
==============================================================================
--- asterisk/trunk/tests/rest_api/bridges/bridge_by_id/test-config.yaml (original)
+++ asterisk/trunk/tests/rest_api/bridges/bridge_by_id/test-config.yaml Mon Jul 7 07:56:26 2014
@@ -117,12 +117,6 @@
count: 1
requests:
-
- # remove the explicit subscription
- method: 'delete'
- uri: 'applications/testsuite/subscription'
- params:
- eventSource: 'bridge:MyFirstBridge'
- -
method: 'delete'
uri: 'channels/MyFirstChannel'
-
Modified: asterisk/trunk/tests/rest_api/bridges/delete/bridge_delete.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/bridges/delete/bridge_delete.py?view=diff&rev=5211&r1=5210&r2=5211
==============================================================================
--- asterisk/trunk/tests/rest_api/bridges/delete/bridge_delete.py (original)
+++ asterisk/trunk/tests/rest_api/bridges/delete/bridge_delete.py Mon Jul 7 07:56:26 2014
@@ -57,8 +57,6 @@
no longer exists in the system but that the channel that was in the bridge
still does exist.
"""
- ari.delete('applications', 'testsuite', 'subscription',
- eventSource='bridge:%s' % TEST.bridge_id)
bridge_id = event['bridge']['id']
assert TEST.bridge_id == bridge_id
result = True
More information about the asterisk-commits
mailing list