diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-16 06:01:41 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-16 06:01:41 +0000 |
commit | 51a97b5d9350b37f95d6f0c00d013b886e64fcd3 (patch) | |
tree | 480092faac7c7deb40265fb070d1b4b059638814 /cpp/sca/test/store-script/store-http-test | |
parent | ada8802640aa232d34b1fe2793b9f52cd62b41f1 (diff) |
Added test cases and scripts to test the HTTP binding support. Refactored httpd module and added a wiring httpd module. Implementation of the store demo prepared for ApacheCon.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@880601 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rwxr-xr-x | cpp/sca/test/store-script/store-http-test | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/cpp/sca/test/store-script/store-http-test b/cpp/sca/test/store-script/store-http-test index 4a5a3df685..551731e856 100755 --- a/cpp/sca/test/store-script/store-http-test +++ b/cpp/sca/test/store-script/store-http-test @@ -20,40 +20,55 @@ echo "Testing..." # Setup -../../modules/http/httpd-conf tmp 8092 htdocs +../../modules/http/httpd-conf tmp 8093 htdocs cat >>tmp/conf/httpd.conf <<EOF + <Location /Catalog> -SetHandler mod_tuscany +SetHandler mod_tuscany_eval SCAContribution `pwd`/ -SCAComponent store -SCAImplementation store.scm +SCAComposite store.composite +SCAComponent Catalog </Location> <Location /Total> -SetHandler mod_tuscany +SetHandler mod_tuscany_eval SCAContribution `pwd`/ -SCAComponent store -SCAImplementation store.scm +SCAComposite store.composite +SCAComponent ShoppingCart </Location> <Location /ShoppingCart> -SetHandler mod_tuscany +SetHandler mod_tuscany_eval SCAContribution `pwd`/ -SCAComponent store -SCAImplementation store.scm +SCAComposite store.composite +SCAComponent ShoppingCart +</Location> + +<Location /CurrencyConverter> +SetHandler mod_tuscany_eval +SCAContribution `pwd`/ +SCAComposite store.composite +SCAComponent CurrencyConverter +</Location> + +<Location /references> +SetHandler mod_tuscany_wiring +SCAContribution `pwd`/ +SCAComposite store.composite </Location> EOF + apachectl -k start -d `pwd`/tmp sleep 1 # Test HTTP GET -curl http://localhost:8092/store.html 2>/dev/null >tmp/store.html +curl http://localhost:8093/store.html 2>/dev/null >tmp/store.html diff tmp/store.html htdocs/store.html rc=$? # Cleanup apachectl -k stop -d `pwd`/tmp -sleep 1 +sleep 2 if [ "$rc" = "0" ]; then echo "OK" fi |