You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2015/05/24 11:10:31 UTC

stratos git commit: Removing obsolete content: automation-scripts and rest-api-client in tools

Repository: stratos
Updated Branches:
  refs/heads/master 64d3493d3 -> c509f887a


Removing obsolete content: automation-scripts and rest-api-client in tools


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

Branch: refs/heads/master
Commit: c509f887aa6013a0b4641073aaed9cd60fdb1d23
Parents: 64d3493
Author: Imesh Gunaratne <im...@apache.org>
Authored: Sun May 24 14:40:20 2015 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Sun May 24 14:40:20 2015 +0530

----------------------------------------------------------------------
 .../deployment_script.sh                        | 56 ------------
 .../m1-samples/ec2/autoscale-policy.json        | 14 ---
 .../m1-samples/ec2/deployment-policy.json       | 13 ---
 .../ec2/m1_single_subsciption_app.json          | 19 ----
 .../m1-samples/ec2/p1.json                      | 10 ---
 .../m1-samples/ec2/php-cart.json                | 37 --------
 .../m1-samples/os/autoscale-policy.json         | 14 ---
 .../m1-samples/os/deployment-policy.json        | 13 ---
 .../os/m1_single_subsciption_app.json           | 19 ----
 .../m1-samples/os/p1.json                       | 10 ---
 .../m1-samples/os/php-cart.json                 | 45 ----------
 .../samples/ec2/autoscale-policy 2.json         | 14 ---
 .../samples/ec2/autoscale-policy.json           | 14 ---
 .../samples/ec2/deployment-policy 2.json        | 13 ---
 .../samples/ec2/deployment-policy.json          | 13 ---
 .../samples/ec2/group1.json                     |  9 --
 .../samples/ec2/group2.json                     | 15 ----
 .../samples/ec2/m1_single_subsciption_app.json  | 19 ----
 .../samples/ec2/m2_single_subsciption_app.json  | 95 --------------------
 .../samples/ec2/mysql.json                      | 32 -------
 .../samples/ec2/mytest.json                     | 32 -------
 .../samples/ec2/p1.json                         | 10 ---
 .../samples/ec2/php-cart.json                   | 37 --------
 .../samples/ec2/tomcat.json                     | 32 -------
 .../samples/ec2/tomcat1.json                    | 32 -------
 .../samples/os/autoscale-policy.json            | 14 ---
 .../samples/os/deployment-policy.json           | 13 ---
 .../samples/os/m1_single_subsciption_app.json   | 19 ----
 .../samples/os/p1.json                          | 10 ---
 .../samples/os/php-cart.json                    | 45 ----------
 .../rest-api-client/deploy-autoscale-policy.sh  | 31 -------
 tools/rest-api-client/deploy-cartridge.sh       | 31 -------
 .../rest-api-client/deploy-deployment-policy.sh | 31 -------
 .../deploy-load-balancer-cartridge.sh           | 31 -------
 tools/rest-api-client/deploy-partition.sh       | 31 -------
 tools/rest-api-client/subscribe.sh              | 31 -------
 36 files changed, 904 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/deployment_script.sh
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/deployment_script.sh b/tools/automation-scripts/grouping-automation-script/deployment_script.sh
deleted file mode 100755
index 3982119..0000000
--- a/tools/automation-scripts/grouping-automation-script/deployment_script.sh
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh 
-# ----------------------------------------------------------------------------
-#
-#  Licensed to the Apache Software Foundation (ASF) under one
-#  or more contributor license agreements.  See the NOTICE file
-#  distributed with this work for additional information
-#  regarding copyright ownership.  The ASF licenses this file
-#  to you under the Apache License, Version 2.0 (the
-#  "License"); you may not use this file except in compliance
-#  with the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing,
-#  software distributed under the License is distributed on an
-#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#  KIND, either express or implied.  See the License for the
-#  specific language governing permissions and limitations
-#  under the License.
-#
-# ----------------------------------------------------------------------------
-
-curl -X POST -H "Content-Type: application/json" -d@'samples/ec2/p1.json' -k -v -u admin:admin https://localhost:9443/stratos/admin/policy/deployment/partition
-
-sleep 15
-
-curl -X POST -H "Content-Type: application/json" -d @'samples/ec2/autoscale-policy.json' -k -v -u admin:admin https://localhost:9443/stratos/admin/policy/autoscale
-
-sleep 5
-
-curl -X POST -H "Content-Type: application/json" -d@'samples/ec2/deployment-policy.json' -k -v -u admin:admin https://localhost:9443/stratos/admin/policy/deployment
-
-sleep 5
-
-curl -X POST -H "Content-Type: application/json" -d @'samples/ec2/php-cart.json' -k -v -u admin:admin https://localhost:9443/stratos/admin/cartridge/definition
-
-sleep 5
-
-curl -X POST -H "Content-Type: application/json" -d @'samples/ec2/tomcat.json' -k -v -u admin:admin https://localhost:9443/stratos/admin/cartridge/definition
-
-sleep 5
-
-curl -X POST -H "Content-Type: application/json" -d @'samples/ec2/tomcat1.json' -k -v -u admin:admin https://localhost:9443/stratos/admin/cartridge/definition
-
-
-sleep 5
-
-curl -X POST -H "Content-Type: application/json" -d @'samples/ec2/group1.json' -k -v -u admin:admin https://localhost:9443/stratos/admin/group/definition
-
-sleep 5
-
-curl -X POST -H "Content-Type: application/json" -d @'samples/ec2/group2.json' -k -v -u admin:admin https://localhost:9443/stratos/admin/group/definition
-
-sleep 5
-
-curl -X POST -H "Content-Type: application/json" -d @'samples/ec2/m2_single_subsciption_app.json' -k -v -u admin:admin https://localhost:9443/stratos/admin/application/definition

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/autoscale-policy.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/autoscale-policy.json b/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/autoscale-policy.json
deleted file mode 100755
index ba5664a..0000000
--- a/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/autoscale-policy.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
-  "id": "autoscale_policy_1",
-  "loadThresholds": {
-    "requestsInFlight": {
-      "average": 50
-    },
-    "memoryConsumption": {
-      "average": 700
-    },
-    "loadAverage": {
-      "average": 1000
-    }
-  }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/deployment-policy.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/deployment-policy.json b/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/deployment-policy.json
deleted file mode 100755
index 8fd3296..0000000
--- a/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/deployment-policy.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
-    "id": "deployment_policy_1",
-    "partitionGroup": {
-      "id": "openstack",
-      "partitionAlgo": "one-after-another",
-      "partition": [
-        {
-          "id": "P1",
-          "partitionMax": "10"
-        }
-      ]
-    }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/m1_single_subsciption_app.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/m1_single_subsciption_app.json b/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/m1_single_subsciption_app.json
deleted file mode 100755
index 1648b67..0000000
--- a/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/m1_single_subsciption_app.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
-  "applicationId": "test_app_1",
-  "alias": "mytestapp1",
-  "components": {
-    "subscribables": [
-      {
-        "type": "php",
-        "alias": "myphp"
-      }
-    ],   
-  },
-  "subscribableInfo": [
-    {
-      "alias": "myphp",
-      "deploymentPolicy": "deployment_policy_1",
-      "autoscalingPolicy": "autoscale_policy_1",
-    }
-  ]
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/p1.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/p1.json b/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/p1.json
deleted file mode 100755
index 8a42c54..0000000
--- a/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/p1.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
-    "id": "P1",
-    "provider": "ec2",
-    "property": [
-        {
-        "name": "region",
-        "value": "ap-southeast-1"
-      }
-    ]
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/php-cart.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/php-cart.json b/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/php-cart.json
deleted file mode 100755
index 97624e3..0000000
--- a/tools/automation-scripts/grouping-automation-script/m1-samples/ec2/php-cart.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
-      "type": "php",
-      "provider": "apache",
-      "host": "isuruh.lk",
-      "displayName": "PHP",
-      "description": "PHP Cartridge",
-      "version": "7",
-      "multiTenant": "false",
-      "portMapping": [
-         {
-            "protocol": "http",
-            "port": "80",
-            "proxyPort": "8280"
-         },
-         {
-            "protocol": "https",
-            "port": "443",
-            "proxyPort": "8243"
-         }
-       ],
-      "deployment": {
-        },
-       "iaasProvider": [
-	     {
-          "type": "ec2",
-          "imageId": "ap-southeast-1/ami-3c0f5d6e",
-          "property": [
-          ]
-         }
-      ],
-     "loadBalancer": {
-        "property": {
-            "name": "no.load.balancer",
-            "value": "true"
-        }
-      },
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/m1-samples/os/autoscale-policy.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/m1-samples/os/autoscale-policy.json b/tools/automation-scripts/grouping-automation-script/m1-samples/os/autoscale-policy.json
deleted file mode 100755
index ba5664a..0000000
--- a/tools/automation-scripts/grouping-automation-script/m1-samples/os/autoscale-policy.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
-  "id": "autoscale_policy_1",
-  "loadThresholds": {
-    "requestsInFlight": {
-      "average": 50
-    },
-    "memoryConsumption": {
-      "average": 700
-    },
-    "loadAverage": {
-      "average": 1000
-    }
-  }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/m1-samples/os/deployment-policy.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/m1-samples/os/deployment-policy.json b/tools/automation-scripts/grouping-automation-script/m1-samples/os/deployment-policy.json
deleted file mode 100755
index 8fd3296..0000000
--- a/tools/automation-scripts/grouping-automation-script/m1-samples/os/deployment-policy.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
-    "id": "deployment_policy_1",
-    "partitionGroup": {
-      "id": "openstack",
-      "partitionAlgo": "one-after-another",
-      "partition": [
-        {
-          "id": "P1",
-          "partitionMax": "10"
-        }
-      ]
-    }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/m1-samples/os/m1_single_subsciption_app.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/m1-samples/os/m1_single_subsciption_app.json b/tools/automation-scripts/grouping-automation-script/m1-samples/os/m1_single_subsciption_app.json
deleted file mode 100755
index 1648b67..0000000
--- a/tools/automation-scripts/grouping-automation-script/m1-samples/os/m1_single_subsciption_app.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
-  "applicationId": "test_app_1",
-  "alias": "mytestapp1",
-  "components": {
-    "subscribables": [
-      {
-        "type": "php",
-        "alias": "myphp"
-      }
-    ],   
-  },
-  "subscribableInfo": [
-    {
-      "alias": "myphp",
-      "deploymentPolicy": "deployment_policy_1",
-      "autoscalingPolicy": "autoscale_policy_1",
-    }
-  ]
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/m1-samples/os/p1.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/m1-samples/os/p1.json b/tools/automation-scripts/grouping-automation-script/m1-samples/os/p1.json
deleted file mode 100755
index 0fa8c5b..0000000
--- a/tools/automation-scripts/grouping-automation-script/m1-samples/os/p1.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
-    "id": "P1",
-    "provider": "openstack",
-    "property": [
-        {
-        "name": "region",
-        "value": "RegionOne"
-      }
-    ]
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/m1-samples/os/php-cart.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/m1-samples/os/php-cart.json b/tools/automation-scripts/grouping-automation-script/m1-samples/os/php-cart.json
deleted file mode 100755
index a687be3..0000000
--- a/tools/automation-scripts/grouping-automation-script/m1-samples/os/php-cart.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
-      "type": "php",
-      "provider": "apache",
-      "host": "isuruh.lk",
-      "displayName": "PHP",
-      "description": "PHP Cartridge",
-      "version": "7",
-      "multiTenant": "false",
-      "portMapping": [
-         {
-            "protocol": "http",
-            "port": "80",
-            "proxyPort": "8280"
-         },
-         {
-            "protocol": "https",
-            "port": "443",
-            "proxyPort": "8243"
-         }
-       ],
-      "deployment": {
-        },
-       "iaasProvider": [
-	     {
-          "type": "openstack",
-          "imageId": "RegionOne/f2ddf72a-4e76-4893-a9fa-e5f4352f1a86",
-          "property": [
-           {
-             "name": "instanceType",
-             "value": "RegionOne/3"
-           },
-           {
-             "name": "keyPair",
-             "value": "isuruh"
-           }
-          ]
-         }
-      ],
-     "loadBalancer": {
-        "property": {
-            "name": "no.load.balancer",
-            "value": "true"
-        }
-      },
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/ec2/autoscale-policy 2.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/ec2/autoscale-policy 2.json b/tools/automation-scripts/grouping-automation-script/samples/ec2/autoscale-policy 2.json
deleted file mode 100755
index 8ac8212..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/ec2/autoscale-policy 2.json	
+++ /dev/null
@@ -1,14 +0,0 @@
-{
-    "id": "autoscale_policy_mysql",
-    "loadThresholds": {
-      "requestsInFlight": {
-         "threshold": 30
-      },
-      "memoryConsumption": {
-         "threshold": 40
-      },
-      "loadAverage": {
-         "threshold": 150
-      }
-    }  
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/ec2/autoscale-policy.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/ec2/autoscale-policy.json b/tools/automation-scripts/grouping-automation-script/samples/ec2/autoscale-policy.json
deleted file mode 100755
index ba5664a..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/ec2/autoscale-policy.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
-  "id": "autoscale_policy_1",
-  "loadThresholds": {
-    "requestsInFlight": {
-      "average": 50
-    },
-    "memoryConsumption": {
-      "average": 700
-    },
-    "loadAverage": {
-      "average": 1000
-    }
-  }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/ec2/deployment-policy 2.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/ec2/deployment-policy 2.json b/tools/automation-scripts/grouping-automation-script/samples/ec2/deployment-policy 2.json
deleted file mode 100755
index 726a05e..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/ec2/deployment-policy 2.json	
+++ /dev/null
@@ -1,13 +0,0 @@
-{
-    "id": "dep_policy_mysql",
-    "partitionGroup": {
-      "id": "openstack",
-      "partitionAlgo": "one-after-another",
-      "partition": [
-        {
-          "id": "P1",
-          "partitionMax": "10"
-        }
-      ]
-    }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/ec2/deployment-policy.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/ec2/deployment-policy.json b/tools/automation-scripts/grouping-automation-script/samples/ec2/deployment-policy.json
deleted file mode 100755
index ae2e202..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/ec2/deployment-policy.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
-    "id": "deployment_policy_1",
-    "partitionGroup": {
-      "id": "ec2",
-      "partitionAlgo": "one-after-another",
-      "partition": [
-        {
-          "id": "P1",
-          "partitionMax": "10"
-        }
-      ]
-    }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/ec2/group1.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/ec2/group1.json b/tools/automation-scripts/grouping-automation-script/samples/ec2/group1.json
deleted file mode 100755
index dc8eded..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/ec2/group1.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
-    "name": "group1",
-    "cartridges": [
-        "tomcat1","tomcat"
-    ],
-    "dependencies": {
-        "killBehaviour": "kill-none"
-    }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/ec2/group2.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/ec2/group2.json b/tools/automation-scripts/grouping-automation-script/samples/ec2/group2.json
deleted file mode 100755
index 942ef8b..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/ec2/group2.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
-    "name": "group2",
-    "subGroups": [
-        "group1"
-    ],
-    "cartridges": [
-        "tomcat"
-    ],
-    "dependencies": {
-        "startupOrders": [
-             "group.group1,cartridge.tomcat"
-	],
-        "killBehaviour": "kill-dependents"
-    }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/ec2/m1_single_subsciption_app.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/ec2/m1_single_subsciption_app.json b/tools/automation-scripts/grouping-automation-script/samples/ec2/m1_single_subsciption_app.json
deleted file mode 100755
index 1648b67..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/ec2/m1_single_subsciption_app.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
-  "applicationId": "test_app_1",
-  "alias": "mytestapp1",
-  "components": {
-    "subscribables": [
-      {
-        "type": "php",
-        "alias": "myphp"
-      }
-    ],   
-  },
-  "subscribableInfo": [
-    {
-      "alias": "myphp",
-      "deploymentPolicy": "deployment_policy_1",
-      "autoscalingPolicy": "autoscale_policy_1",
-    }
-  ]
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/ec2/m2_single_subsciption_app.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/ec2/m2_single_subsciption_app.json b/tools/automation-scripts/grouping-automation-script/samples/ec2/m2_single_subsciption_app.json
deleted file mode 100644
index b234c49..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/ec2/m2_single_subsciption_app.json
+++ /dev/null
@@ -1,95 +0,0 @@
-{
-    "applicationId": "test_app_3",
-    "alias": "phpapp2",
-    "components": {
-        "groups": [
-            {
-                "name": "group2",
-                "alias": "mygroup2",
-                "deploymentPolicy": "deployment_policy_1",
-                "autoscalingPolicy": "autoscale_policy_1",
-                "subscribables": [
-                    {
-                        "type": "tomcat",
-                        "alias": "mygroup2tomcat"
-
-                    }
-                ],
-                "subGroups": [
-                    {
-                        "name": "group1",
-                        "alias": "mygroup1"
-
-                    }
-                ]
-
-            },
-            {
-                "name": "group1",
-                "alias": "mygroup1",
-                "deploymentPolicy": "dep_policy_group1",
-                "autoscalingPolicy": "autoscale_policy_group1",
-                "subscribables": [
-                    {
-                        "type": "tomcat",
-                        "alias": "mygroup1tomcat"
-
-                    },
-		   {
-                        "type": "tomcat1",
-                        "alias": "mygroup1tomcat1"
-
-                    }
-
-                ]
-
-            }
-
-        ],
-        "subscribables": [
-            {
-                "type": "tomcat",
-                "alias": "mytomcat"
-            }
-        ],
-        "dependencies": {
-            "startupOrders": [
-                "group.mygroup2,cartridge.mytomcat"
-            ],
-            "killBehaviour": "kill-dependents"
-        }
-
-    },
-    "subscribableInfo": [
-        {
-            "alias": "mygroup1tomcat",
-            "deploymentPolicy": "deployment_policy_1",
-            "autoscalingPolicy": "autoscale_policy_1"
-        },
-        {
-            "alias": "mygroup2tomcat",
-            "deploymentPolicy": "deployment_policy_1",
-            "autoscalingPolicy": "autoscale_policy_1",
-            "repoURL": "www.mygit.com/php.git",
-            "privateRepo": "true",
-            "repoUsername": "admin",
-            "repoPassword": "xxxx"
-        },
-        {
-            "alias": "mytomcat",
-            "deploymentPolicy": "deployment_policy_1",
-            "autoscalingPolicy": "autoscale_policy_1",
-            "repoURL": "www.mygit.com/tomcat.git",
-            "privateRepo": "false",
-            "repoUsername": "admin",
-            "repoPassword": "yyyy"
-        },
-	{
-            "alias": "mygroup1tomcat1",
-            "deploymentPolicy": "deployment_policy_1",
-            "autoscalingPolicy": "autoscale_policy_1"
-        }
-
-            ]
-}
-

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/ec2/mysql.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/ec2/mysql.json b/tools/automation-scripts/grouping-automation-script/samples/ec2/mysql.json
deleted file mode 100755
index 0514e36..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/ec2/mysql.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
-      "type": "mysql",
-      "provider": "apache",
-      "host": "isuruh.lk",
-      "displayName": "mysql",
-      "description": "mysql Cartridge",
-      "version": "7",
-      "multiTenant": "false",
-      "portMapping": [
-         {
-            "protocol": "http",
-            "port": "3306",
-            "proxyPort": "8280"
-         }
-       ],
-      "deployment": {
-        },
-       "iaasProvider": [
-	     {
-          "type": "ec2",
-          "imageId": "ap-southeast-1/ami-3c0f5d6e",
-          "property": [
-          ]
-         }
-      ],
-     "loadBalancer": {
-        "property": {
-            "name": "no.load.balancer",
-            "value": "true"
-        }
-      },
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/ec2/mytest.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/ec2/mytest.json b/tools/automation-scripts/grouping-automation-script/samples/ec2/mytest.json
deleted file mode 100755
index e8227c8..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/ec2/mytest.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
-      "type": "mytest",
-      "provider": "apache",
-      "host": "isuruh.lk",
-      "displayName": "mytest",
-      "description": "mytest Cartridge",
-      "version": "7",
-      "multiTenant": "false",
-      "portMapping": [
-         {
-            "protocol": "http",
-            "port": "80",
-            "proxyPort": "8280"
-         }
-       ],
-      "deployment": {
-        },
-       "iaasProvider": [
-	     {
-          "type": "ec2",
-           "imageId": "ap-southeast-1/ami-3c0f5d6e",
-           "property": [
-          ]
-         }
-      ],
-     "loadBalancer": {
-        "property": {
-            "name": "no.load.balancer",
-            "value": "true"
-        }
-      },
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/ec2/p1.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/ec2/p1.json b/tools/automation-scripts/grouping-automation-script/samples/ec2/p1.json
deleted file mode 100755
index 8a42c54..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/ec2/p1.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
-    "id": "P1",
-    "provider": "ec2",
-    "property": [
-        {
-        "name": "region",
-        "value": "ap-southeast-1"
-      }
-    ]
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/ec2/php-cart.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/ec2/php-cart.json b/tools/automation-scripts/grouping-automation-script/samples/ec2/php-cart.json
deleted file mode 100755
index 97624e3..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/ec2/php-cart.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
-      "type": "php",
-      "provider": "apache",
-      "host": "isuruh.lk",
-      "displayName": "PHP",
-      "description": "PHP Cartridge",
-      "version": "7",
-      "multiTenant": "false",
-      "portMapping": [
-         {
-            "protocol": "http",
-            "port": "80",
-            "proxyPort": "8280"
-         },
-         {
-            "protocol": "https",
-            "port": "443",
-            "proxyPort": "8243"
-         }
-       ],
-      "deployment": {
-        },
-       "iaasProvider": [
-	     {
-          "type": "ec2",
-          "imageId": "ap-southeast-1/ami-3c0f5d6e",
-          "property": [
-          ]
-         }
-      ],
-     "loadBalancer": {
-        "property": {
-            "name": "no.load.balancer",
-            "value": "true"
-        }
-      },
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/ec2/tomcat.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/ec2/tomcat.json b/tools/automation-scripts/grouping-automation-script/samples/ec2/tomcat.json
deleted file mode 100755
index 1fe1290..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/ec2/tomcat.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
-      "type": "tomcat",
-      "provider": "apache",
-      "host": "isuruh.lk",
-      "displayName": "tomcat",
-      "description": "tomcat Cartridge",
-      "version": "7",
-      "multiTenant": "false",
-      "portMapping": [
-         {
-            "protocol": "http",
-            "port": "80",
-            "proxyPort": "8280"
-         }
-       ],
-      "deployment": {
-        },
-       "iaasProvider": [
-	     {
-          "type": "ec2",
-          "imageId": "ap-southeast-1/ami-3c0f5d6e",
-          "property": [
-          ]
-         }
-      ],
-     "loadBalancer": {
-        "property": {
-            "name": "no.load.balancer",
-            "value": "true"
-        }
-      },
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/ec2/tomcat1.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/ec2/tomcat1.json b/tools/automation-scripts/grouping-automation-script/samples/ec2/tomcat1.json
deleted file mode 100755
index bb8217a..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/ec2/tomcat1.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
-      "type": "tomcat1",
-      "provider": "apache",
-      "host": "isuruh.lk",
-      "displayName": "tomcat1",
-      "description": "tomcat1 Cartridge",
-      "version": "7",
-      "multiTenant": "false",
-      "portMapping": [
-         {
-            "protocol": "http",
-            "port": "80",
-            "proxyPort": "8280"
-         }
-       ],
-      "deployment": {
-        },
-       "iaasProvider": [
-	     {
-          "type": "ec2",
-           "imageId": "ap-southeast-1/ami-3c0f5d6e",
-           "property": [
-          ]
-         }
-      ],
-     "loadBalancer": {
-        "property": {
-            "name": "no.load.balancer",
-            "value": "true"
-        }
-      },
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/os/autoscale-policy.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/os/autoscale-policy.json b/tools/automation-scripts/grouping-automation-script/samples/os/autoscale-policy.json
deleted file mode 100755
index ba5664a..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/os/autoscale-policy.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
-  "id": "autoscale_policy_1",
-  "loadThresholds": {
-    "requestsInFlight": {
-      "average": 50
-    },
-    "memoryConsumption": {
-      "average": 700
-    },
-    "loadAverage": {
-      "average": 1000
-    }
-  }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/os/deployment-policy.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/os/deployment-policy.json b/tools/automation-scripts/grouping-automation-script/samples/os/deployment-policy.json
deleted file mode 100755
index 8fd3296..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/os/deployment-policy.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
-    "id": "deployment_policy_1",
-    "partitionGroup": {
-      "id": "openstack",
-      "partitionAlgo": "one-after-another",
-      "partition": [
-        {
-          "id": "P1",
-          "partitionMax": "10"
-        }
-      ]
-    }
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/os/m1_single_subsciption_app.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/os/m1_single_subsciption_app.json b/tools/automation-scripts/grouping-automation-script/samples/os/m1_single_subsciption_app.json
deleted file mode 100755
index 1648b67..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/os/m1_single_subsciption_app.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
-  "applicationId": "test_app_1",
-  "alias": "mytestapp1",
-  "components": {
-    "subscribables": [
-      {
-        "type": "php",
-        "alias": "myphp"
-      }
-    ],   
-  },
-  "subscribableInfo": [
-    {
-      "alias": "myphp",
-      "deploymentPolicy": "deployment_policy_1",
-      "autoscalingPolicy": "autoscale_policy_1",
-    }
-  ]
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/os/p1.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/os/p1.json b/tools/automation-scripts/grouping-automation-script/samples/os/p1.json
deleted file mode 100755
index 0fa8c5b..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/os/p1.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
-    "id": "P1",
-    "provider": "openstack",
-    "property": [
-        {
-        "name": "region",
-        "value": "RegionOne"
-      }
-    ]
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/automation-scripts/grouping-automation-script/samples/os/php-cart.json
----------------------------------------------------------------------
diff --git a/tools/automation-scripts/grouping-automation-script/samples/os/php-cart.json b/tools/automation-scripts/grouping-automation-script/samples/os/php-cart.json
deleted file mode 100755
index 228feb3..0000000
--- a/tools/automation-scripts/grouping-automation-script/samples/os/php-cart.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
-      "type": "php",
-      "provider": "apache",
-      "host": "isuruh.lk",
-      "displayName": "PHP",
-      "description": "PHP Cartridge",
-      "version": "7",
-      "multiTenant": "false",
-      "portMapping": [
-         {
-            "protocol": "http",
-            "port": "80",
-            "proxyPort": "8280"
-         },
-         {
-            "protocol": "https",
-            "port": "443",
-            "proxyPort": "8243"
-         }
-       ],
-      "deployment": {
-        },
-       "iaasProvider": [
-	     {
-          "type": "openstack",
-           "imageId": "RegionOne/f2ddf72a-4e76-4893-a9fa-e5f4352f1a86",
-           "property": [
-           {
-             "name": "instanceType",
-             "value": "RegionOne/3"
-           },
-           {
-             "name": "keyPair",
-             "value": "isuruh"
-           }
-          ]
-         }
-      ],
-     "loadBalancer": {
-        "property": {
-            "name": "no.load.balancer",
-            "value": "true"
-        }
-      },
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/rest-api-client/deploy-autoscale-policy.sh
----------------------------------------------------------------------
diff --git a/tools/rest-api-client/deploy-autoscale-policy.sh b/tools/rest-api-client/deploy-autoscale-policy.sh
deleted file mode 100755
index da8fd9c..0000000
--- a/tools/rest-api-client/deploy-autoscale-policy.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-#  Licensed to the Apache Software Foundation (ASF) under one
-#  or more contributor license agreements.  See the NOTICE file
-#  distributed with this work for additional information
-#  regarding copyright ownership.  The ASF licenses this file
-#  to you under the Apache License, Version 2.0 (the
-#  "License"); you may not use this file except in compliance
-#  with the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing,
-#  software distributed under the License is distributed on an
-#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#  KIND, either express or implied.  See the License for the
-#  specific language governing permissions and limitations
-#  under the License.
-# ----------------------------------------------------------------------------
-#  This script could be used to deploy autoscale policy definitions via the rest-api.
-#
-
-# Parameter values
-stratos_manager_host=
-stratos_manager_https_port=
-username=admin
-password=admin
-json_file="/path/to/autoscale-policy.json"
-
-# Send request
-curl -X POST -H "Content-Type: application/json" -d @'${json_file}' -k -v -u ${username}:${password} https://${stratos_manager_host}:${stratos_manager_https_port}/stratos/admin/policy/autoscale
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/rest-api-client/deploy-cartridge.sh
----------------------------------------------------------------------
diff --git a/tools/rest-api-client/deploy-cartridge.sh b/tools/rest-api-client/deploy-cartridge.sh
deleted file mode 100755
index 49f13ea..0000000
--- a/tools/rest-api-client/deploy-cartridge.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-#  Licensed to the Apache Software Foundation (ASF) under one
-#  or more contributor license agreements.  See the NOTICE file
-#  distributed with this work for additional information
-#  regarding copyright ownership.  The ASF licenses this file
-#  to you under the Apache License, Version 2.0 (the
-#  "License"); you may not use this file except in compliance
-#  with the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing,
-#  software distributed under the License is distributed on an
-#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#  KIND, either express or implied.  See the License for the
-#  specific language governing permissions and limitations
-#  under the License.
-# ----------------------------------------------------------------------------
-#  This script could be used to deploy cartridge definitions via the rest-api.
-#
-
-# Parameter values
-stratos_manager_host=
-stratos_manager_https_port=
-username=admin
-password=admin
-json_file="/path/to/cartridge.json"
-
-# Send request
-curl -X POST -H "Content-Type: application/json" -d @'${json_file}' -k -v -u ${username}:${password} https://${stratos_manager_host}:${stratos_manager_https_port}/stratos/admin/cartridge/definition
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/rest-api-client/deploy-deployment-policy.sh
----------------------------------------------------------------------
diff --git a/tools/rest-api-client/deploy-deployment-policy.sh b/tools/rest-api-client/deploy-deployment-policy.sh
deleted file mode 100755
index 96e617e..0000000
--- a/tools/rest-api-client/deploy-deployment-policy.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-#  Licensed to the Apache Software Foundation (ASF) under one
-#  or more contributor license agreements.  See the NOTICE file
-#  distributed with this work for additional information
-#  regarding copyright ownership.  The ASF licenses this file
-#  to you under the Apache License, Version 2.0 (the
-#  "License"); you may not use this file except in compliance
-#  with the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing,
-#  software distributed under the License is distributed on an
-#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#  KIND, either express or implied.  See the License for the
-#  specific language governing permissions and limitations
-#  under the License.
-# ----------------------------------------------------------------------------
-#  This script could be used to deploy deployment policy definitions via the rest-api.
-#
-
-# Parameter values
-stratos_manager_host=
-stratos_manager_https_port=
-username=admin
-password=admin
-json_file="/path/to/deployment-policy.json"
-
-# Send request
-curl -X POST -H "Content-Type: application/json" -d @'${json_file}' -k -v -u ${username}:${password} https://${stratos_manager_host}:${stratos_manager_https_port}/stratos/admin/policy/deployment
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/rest-api-client/deploy-load-balancer-cartridge.sh
----------------------------------------------------------------------
diff --git a/tools/rest-api-client/deploy-load-balancer-cartridge.sh b/tools/rest-api-client/deploy-load-balancer-cartridge.sh
deleted file mode 100755
index 82318c7..0000000
--- a/tools/rest-api-client/deploy-load-balancer-cartridge.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-#  Licensed to the Apache Software Foundation (ASF) under one
-#  or more contributor license agreements.  See the NOTICE file
-#  distributed with this work for additional information
-#  regarding copyright ownership.  The ASF licenses this file
-#  to you under the Apache License, Version 2.0 (the
-#  "License"); you may not use this file except in compliance
-#  with the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing,
-#  software distributed under the License is distributed on an
-#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#  KIND, either express or implied.  See the License for the
-#  specific language governing permissions and limitations
-#  under the License.
-# ----------------------------------------------------------------------------
-#  This script could be used to deploy load balancer cartridge definitions via the rest-api.
-#
-
-# Parameter values
-stratos_manager_host=
-stratos_manager_https_port=
-username=admin
-password=admin
-json_file="/path/to/load-balancer-cartridge.json"
-
-# Send request
-curl -X POST -H "Content-Type: application/json" -d @'${json_file}' -k -v -u ${username}:${password} https://${stratos_manager_host}:${stratos_manager_https_port}/stratos/admin/cartridge/definition
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/rest-api-client/deploy-partition.sh
----------------------------------------------------------------------
diff --git a/tools/rest-api-client/deploy-partition.sh b/tools/rest-api-client/deploy-partition.sh
deleted file mode 100755
index 22a5278..0000000
--- a/tools/rest-api-client/deploy-partition.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-#  Licensed to the Apache Software Foundation (ASF) under one
-#  or more contributor license agreements.  See the NOTICE file
-#  distributed with this work for additional information
-#  regarding copyright ownership.  The ASF licenses this file
-#  to you under the Apache License, Version 2.0 (the
-#  "License"); you may not use this file except in compliance
-#  with the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing,
-#  software distributed under the License is distributed on an
-#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#  KIND, either express or implied.  See the License for the
-#  specific language governing permissions and limitations
-#  under the License.
-# ----------------------------------------------------------------------------
-#  This script could be used to deploy partition definitions via the rest-api.
-#
-
-# Parameter values
-stratos_manager_host=
-stratos_manager_https_port=
-username=admin
-password=admin
-json_file="/path/to/partition.json"
-
-# Send request
-curl -X POST -H "Content-Type: application/json" -d @'${json_file}' -k -v -u ${username}:${password} https://${stratos_manager_host}:${stratos_manager_https_port}/stratos/admin/policy/deployment/partition
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/stratos/blob/c509f887/tools/rest-api-client/subscribe.sh
----------------------------------------------------------------------
diff --git a/tools/rest-api-client/subscribe.sh b/tools/rest-api-client/subscribe.sh
deleted file mode 100755
index b7eec10..0000000
--- a/tools/rest-api-client/subscribe.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-#  Licensed to the Apache Software Foundation (ASF) under one
-#  or more contributor license agreements.  See the NOTICE file
-#  distributed with this work for additional information
-#  regarding copyright ownership.  The ASF licenses this file
-#  to you under the Apache License, Version 2.0 (the
-#  "License"); you may not use this file except in compliance
-#  with the License.  You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-#  Unless required by applicable law or agreed to in writing,
-#  software distributed under the License is distributed on an
-#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-#  KIND, either express or implied.  See the License for the
-#  specific language governing permissions and limitations
-#  under the License.
-# ----------------------------------------------------------------------------
-#  This script could be used to subscribe to a service via the rest-api.
-#
-
-# Parameter values
-stratos_manager_host=
-stratos_manager_https_port=
-username=admin
-password=admin
-json_file="/path/to/subscribe.json"
-
-# Send request
-curl -X POST -H "Content-Type: application/json" -d @'${json_file}' -k -v -u ${username}:${password} https://${stratos_manager_host}:${stratos_manager_https_port}/stratos/admin/cartridge/subscribe