[asterisk-commits] kmoore: testsuite/asterisk/trunk r4584 - /asterisk/trunk/tests/rest_api/chann...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 20 11:06:32 CST 2014


Author: kmoore
Date: Mon Jan 20 11:06:26 2014
New Revision: 4584

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4584
Log:
Tweak originate_with_vars REST API test

This modification is necessary to handle changes in the implementation
as it exists on reviewboard versus the original implementation for
which this test was written. The channel variable list must now be in
an object under the "variables" key instead of being directly in the
body.

Modified:
    asterisk/trunk/tests/rest_api/channels/originate_with_vars/originate_with_vars.py

Modified: asterisk/trunk/tests/rest_api/channels/originate_with_vars/originate_with_vars.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/tests/rest_api/channels/originate_with_vars/originate_with_vars.py?view=diff&rev=4584&r1=4583&r2=4584
==============================================================================
--- asterisk/trunk/tests/rest_api/channels/originate_with_vars/originate_with_vars.py (original)
+++ asterisk/trunk/tests/rest_api/channels/originate_with_vars/originate_with_vars.py Mon Jan 20 11:06:26 2014
@@ -17,7 +17,7 @@
         'app':'testsuite',
         'appArgs': 'with_vars'}
 
-    data = {'CALLERID(name)': 'foo'}
+    data = {'variables': {'CALLERID(name)': 'foo'}}
     headers = {'Content-type': 'application/json'}
 
     resp = requests.post(url, params=params, data=json.dumps(data),




More information about the asterisk-commits mailing list