[asterisk-commits] dlee: branch dlee/matts-ari-patch r4063 - in /asterisk/team/dlee/matts-ari-pa...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Aug 22 10:58:19 CDT 2013


Author: dlee
Date: Thu Aug 22 10:58:14 2013
New Revision: 4063

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=4063
Log:
Patch r3.

https://reviewboard.asterisk.org/r/2661/diff/3/

Modified:
    asterisk/team/dlee/matts-ari-patch/addons/Makefile
    asterisk/team/dlee/matts-ari-patch/lib/python/asterisk/ari.py
    asterisk/team/dlee/matts-ari-patch/tests/rest_api/continue/configs/ast1/ari.conf
    asterisk/team/dlee/matts-ari-patch/tests/rest_api/continue/test-config.yaml

Modified: asterisk/team/dlee/matts-ari-patch/addons/Makefile
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/dlee/matts-ari-patch/addons/Makefile?view=diff&rev=4063&r1=4062&r2=4063
==============================================================================
--- asterisk/team/dlee/matts-ari-patch/addons/Makefile (original)
+++ asterisk/team/dlee/matts-ari-patch/addons/Makefile Thu Aug 22 10:58:14 2013
@@ -6,7 +6,12 @@
 # the GNU General Public License Version 2.
 #
 
-all: starpy-update
+all:
+	@if [ ! -d starpy ]; then \
+		echo "starpy/ does not exist.  Run \`make update\` to checkout via git."; \
+	else \
+		echo "Run \`make install\`."; \
+	fi
 
 clean: _clean
 
@@ -14,41 +19,16 @@
 
 dist-clean: distclean
 
-distclean: _clean starpy-clean autobahn-uninstall
-
-install: starpy-install autobahn-install
-
-uninstall: starpy-uninstall autobahn-uninstall
-
-update: starpy-update autobahn-update
-
-# autobahn targets
-
-autobahn-update:
-	pip install --upgrade autobahn
-
-autobahn-install:
-	pip install autobahn
-
-autobahn-uninstall:
-	pip uninstall autobahn
-
-# starpy targets
-
-starpy-install:
-	@if [ ! -d starpy ]; then \
-		echo "starpy/ does not exist.  Run \`make update\` to checkout via git."; \
-	else \
-		(cd starpy; python setup.py install --prefix=~/.local --record install.record) \
-	fi
-
-starpy-clean:
+distclean: _clean
 	rm -rf starpy/install.record
 
-starpy-uninstall:
+install:
+	(cd starpy; python setup.py install --prefix=~/.local --record install.record)
+
+uninstall:
 	rm -rf $$(cat starpy/install.record)
 
-starpy-update:
+update:
 	@if [ -d starpy ]; then \
 		cd starpy; \
 		if [ `git config --get remote.origin.url` = git://github.com/asterisk-org/starpy.git ]; then \
@@ -58,10 +38,3 @@
 	else \
 		git clone git://github.com/asterisk/starpy.git; \
 	fi
-	@echo "+--------- StarPY Downloaded ---------+"
-	@echo "+ StarPY has been successfully cloned +"
-	@echo "+ from its git repo. It can be        +"
-	@echo "+ installed by running:               +"
-	@echo "+                                     +"
-	@echo "+          make install               +"
-	@echo "+-------------------------------------+"

Modified: asterisk/team/dlee/matts-ari-patch/lib/python/asterisk/ari.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/dlee/matts-ari-patch/lib/python/asterisk/ari.py?view=diff&rev=4063&r1=4062&r2=4063
==============================================================================
--- asterisk/team/dlee/matts-ari-patch/lib/python/asterisk/ari.py (original)
+++ asterisk/team/dlee/matts-ari-patch/lib/python/asterisk/ari.py Thu Aug 22 10:58:14 2013
@@ -71,9 +71,8 @@
         self._ws_event_handlers = []
 
         if self.iterations is None:
-            self.iterations = []
-            self.iterations.append({'channel': 'Local/s at default',
-                                    'application': 'Echo'})
+            self.iterations = [{'channel': 'Local/s at default',
+                'application': 'Echo'}]
 
         self.create_asterisk(count=1)
 

Modified: asterisk/team/dlee/matts-ari-patch/tests/rest_api/continue/configs/ast1/ari.conf
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/dlee/matts-ari-patch/tests/rest_api/continue/configs/ast1/ari.conf?view=diff&rev=4063&r1=4062&r2=4063
==============================================================================
--- asterisk/team/dlee/matts-ari-patch/tests/rest_api/continue/configs/ast1/ari.conf (original)
+++ asterisk/team/dlee/matts-ari-patch/tests/rest_api/continue/configs/ast1/ari.conf Thu Aug 22 10:58:14 2013
@@ -1,6 +1,0 @@
-[general]
-enabled = yes
-
-[testsuite]
-type=user
-password = testsuite

Modified: asterisk/team/dlee/matts-ari-patch/tests/rest_api/continue/test-config.yaml
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/dlee/matts-ari-patch/tests/rest_api/continue/test-config.yaml?view=diff&rev=4063&r1=4062&r2=4063
==============================================================================
--- asterisk/team/dlee/matts-ari-patch/tests/rest_api/continue/test-config.yaml (original)
+++ asterisk/team/dlee/matts-ari-patch/tests/rest_api/continue/test-config.yaml Thu Aug 22 10:58:14 2013
@@ -17,7 +17,6 @@
 
 
 ari-config:
-    apps: continue-test
     events:
         -   conditions:
                 match:
@@ -53,7 +52,7 @@
         - python : requests
         - python : twisted
         - python : starpy
-        - asterisk : res_ari_channels
+        - asterisk : res_stasis_http_channels
         - asterisk : app_echo
     tags:
         - ARI




More information about the asterisk-commits mailing list