Fixing the php-tomcat-group-postres-mysql-group-esb samples

Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/aab520e5
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/aab520e5
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/aab520e5

Branch: refs/heads/master
Commit: aab520e5f3c59a59b06eb0b8faba5cb47b9751ed
Parents: 16402ac
Author: Vishanth <[email protected]>
Authored: Tue May 12 14:29:27 2015 +0530
Committer: Vishanth <[email protected]>
Committed: Tue May 12 14:29:27 2015 +0530

----------------------------------------------------------------------
 .../artifacts/application.json                                 | 6 +++++-
 .../scripts/common/undeploy.sh                                 | 5 ++++-
 2 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/aab520e5/samples/applications/complex/php-tomcat-group-postgres-mysql-group-esb/artifacts/application.json
----------------------------------------------------------------------
diff --git 
a/samples/applications/complex/php-tomcat-group-postgres-mysql-group-esb/artifacts/application.json
 
b/samples/applications/complex/php-tomcat-group-postgres-mysql-group-esb/artifacts/application.json
index c4ba93f..cefaf11 100644
--- 
a/samples/applications/complex/php-tomcat-group-postgres-mysql-group-esb/artifacts/application.json
+++ 
b/samples/applications/complex/php-tomcat-group-postgres-mysql-group-esb/artifacts/application.json
@@ -119,7 +119,11 @@
                 {
                     "aliases": [
                         "group.my-dbgroup",
-                        "group.my-appgroup",
+                        "group.my-appgroup"
+                    ]
+                },
+                {
+                    "aliases": [
                         "group.my-dbgroup",
                         "cartridge.my-esb"
                     ]

http://git-wip-us.apache.org/repos/asf/stratos/blob/aab520e5/samples/applications/complex/php-tomcat-group-postgres-mysql-group-esb/scripts/common/undeploy.sh
----------------------------------------------------------------------
diff --git 
a/samples/applications/complex/php-tomcat-group-postgres-mysql-group-esb/scripts/common/undeploy.sh
 
b/samples/applications/complex/php-tomcat-group-postgres-mysql-group-esb/scripts/common/undeploy.sh
index 54613ed..a49573f 100644
--- 
a/samples/applications/complex/php-tomcat-group-postgres-mysql-group-esb/scripts/common/undeploy.sh
+++ 
b/samples/applications/complex/php-tomcat-group-postgres-mysql-group-esb/scripts/common/undeploy.sh
@@ -13,6 +13,10 @@ sleep 10
 echo "Deleting application..."
 curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:${host_port}/api/applications/my-compositeapp
 
+echo "Removing groups..."
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:${host_port}/api/cartridgeGroups/app-group
+curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:${host_port}/api/cartridgeGroups/db-group
+
 echo "Removing cartridges..."
 curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:${host_port}/api/cartridges/php
 curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:${host_port}/api/cartridges/postgres
@@ -20,7 +24,6 @@ curl -X DELETE -H "Content-Type: application/json" -k -v -u 
admin:admin https://
 curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:${host_port}/api/cartridges/tomcat
 curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:${host_port}/api/cartridges/esb
 
-
 echo "Removing autoscale policies..."
 curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin 
https://${host_ip}:${host_port}/api/autoscalingPolicies/autoscaling-policy-1
 

Reply via email to