You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ga...@apache.org on 2015/08/12 14:36:25 UTC
[01/11] stratos git commit: Merge the latest changes of integration
test from master branch
Repository: stratos
Updated Branches:
refs/heads/tenant-isolation 96899f7a7 -> 7fae8a72e
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/application-policy-test/network-partitions/mock/network-partition-8.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-policy-test/network-partitions/mock/network-partition-8.json b/products/stratos/modules/integration/src/test/resources/application-policy-test/network-partitions/mock/network-partition-8.json
deleted file mode 100644
index 354b837..0000000
--- a/products/stratos/modules/integration/src/test/resources/application-policy-test/network-partitions/mock/network-partition-8.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "id": "network-partition-8",
- "provider": "mock",
- "partitions": [
- {
- "id": "network-partition-8-partition-1",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- },
- {
- "id": "network-partition-8-partition-2",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/autoscaling-policy-test/autoscaling-policies/autoscaling-policy-c0-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/autoscaling-policy-test/autoscaling-policies/autoscaling-policy-c0-v1.json b/products/stratos/modules/integration/src/test/resources/autoscaling-policy-test/autoscaling-policies/autoscaling-policy-c0-v1.json
deleted file mode 100644
index 31c2b84..0000000
--- a/products/stratos/modules/integration/src/test/resources/autoscaling-policy-test/autoscaling-policies/autoscaling-policy-c0-v1.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscaling-policy-c0",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 30
- },
- "memoryConsumption": {
- "threshold": 40
- },
- "loadAverage": {
- "threshold": 20
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/autoscaling-policy-test/autoscaling-policies/autoscaling-policy-c0.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/autoscaling-policy-test/autoscaling-policies/autoscaling-policy-c0.json b/products/stratos/modules/integration/src/test/resources/autoscaling-policy-test/autoscaling-policies/autoscaling-policy-c0.json
deleted file mode 100644
index 4bcef26..0000000
--- a/products/stratos/modules/integration/src/test/resources/autoscaling-policy-test/autoscaling-policies/autoscaling-policy-c0.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscaling-policy-c0",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 35
- },
- "memoryConsumption": {
- "threshold": 45
- },
- "loadAverage": {
- "threshold": 25
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges-groups/g4-g5-g6-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges-groups/g4-g5-g6-v1.json b/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges-groups/g4-g5-g6-v1.json
deleted file mode 100644
index c0132f0..0000000
--- a/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges-groups/g4-g5-g6-v1.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "name": "G4",
- "dependencies": {
- "terminationBehaviour": "terminate-none",
- "startupOrders": [
- {
- "aliases": [
- "group.group2",
- "cartridge.c1-1x0"
- ]
- }
- ]
- },
- "cartridges": [
- "c4"
- ],
- "groups": [
- {
- "name": "G5",
- "dependencies": {
- "terminationBehaviour": "terminate-dependents",
- "startupOrders": [
- {
- "aliases": [
- "group.group6",
- "cartridge.c5-1x0"
- ]
- }
- ]
- },
- "cartridges": [
- "c5"
- ],
- "groups": [
- {
- "name": "G6",
- "dependencies": {
- "terminationBehaviour": "terminate-all",
- "startupOrders": []
- },
- "cartridges": [
- "c6"
- ],
- "groups": []
- }
- ]
- }
- ]
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges-groups/g4-g5-g6.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges-groups/g4-g5-g6.json b/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges-groups/g4-g5-g6.json
deleted file mode 100644
index ef28723..0000000
--- a/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges-groups/g4-g5-g6.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "name": "G4",
- "dependencies": {
- "terminationBehaviour": "terminate-none",
- "startupOrders": [
- {
- "aliases": [
- "group.group5",
- "cartridge.c4-1x0"
- ]
- }
- ]
- },
- "cartridges": [
- "c4"
- ],
- "groups": [
- {
- "name": "G5",
- "dependencies": {
- "terminationBehaviour": "terminate-dependents",
- "startupOrders": [
- {
- "aliases": [
- "group.group6",
- "cartridge.c5-1x0"
- ]
- }
- ]
- },
- "cartridges": [
- "c5"
- ],
- "groups": [
- {
- "name": "G6",
- "dependencies": {
- "terminationBehaviour": "terminate-all",
- "startupOrders": []
- },
- "cartridges": [
- "c6"
- ],
- "groups": []
- }
- ]
- }
- ]
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c4.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c4.json b/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c4.json
deleted file mode 100755
index ec7d8b2..0000000
--- a/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c4.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "type": "c4",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c4",
- "description": "c4 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "name": "http-22",
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "mock",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c5.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c5.json b/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c5.json
deleted file mode 100755
index 0e438fd..0000000
--- a/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c5.json
+++ /dev/null
@@ -1,124 +0,0 @@
-{
- "category": "Application",
- "description": "c5 Cartridge",
- "displayName": "c5",
- "host": "qmog.cisco.com",
- "iaasProvider": [
- {
- "imageId": "RegionOne/16e7e35b-0c88-4605-90ce-cbef9e9dde0f",
- "maxInstanceLimit": "4",
- "networkInterfaces": [
- {
- "floatingNetworks": [
- {
- "name": "public",
- "networkUuid": "26b4aa2b-06bc-4e4f-a6eb-c19fbc211af6"
- }
- ],
- "name": "core",
- "networkUuid": "5e107fbd-4820-47ad-84ea-6f135496f889"
- }
- ],
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/2cdbd576-8c9b-4c2d-8b1a-0f79dc4fb809"
- },
- {
- "name": "keyPair",
- "value": "phoenix"
- },
- {
- "name": "autoAssignIp",
- "value": "false"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ],
- "type": "mock"
- }
- ],
- "multiTenant": "false",
- "portMapping": [
- {
- "port": "22",
- "protocol": "http",
- "proxyPort": "8280"
- }
- ],
- "property": [
- {
- "name": "payload_parameter.MB_IP",
- "value": "octl.qmog.cisco.com"
- },
- {
- "name": "payload_parameter.MB_PORT",
- "value": "61616"
- },
- {
- "name": "payload_parameter.CEP_IP",
- "value": "octl.qmog.cisco.com"
- },
- {
- "name": "payload_parameter.CEP_PORT",
- "value": "7611"
- },
- {
- "name": "payload_parameter.CEP_ADMIN_USERNAME",
- "value": "admin"
- },
- {
- "name": "payload_parameter.CEP_ADMIN_PASSWORD",
- "value": "admin"
- },
- {
- "name": "payload_parameter.CERT_TRUSTSTORE",
- "value": "/opt/apache-stratos-cartridge-agent/security/client-truststore.jks"
- },
- {
- "name": "payload_parameter.TRUSTSTORE_PASSWORD",
- "value": "wso2carbon"
- },
- {
- "name": "payload_parameter.ENABLE_DATA_PUBLISHER",
- "value": "false"
- },
- {
- "name": "payload_parameter.MONITORING_SERVER_IP",
- "value": "octl.qmog.cisco.com"
- },
- {
- "name": "payload_parameter.MONITORING_SERVER_PORT",
- "value": "7611"
- },
- {
- "name": "payload_parameter.MONITORING_SERVER_SECURE_PORT",
- "value": "7711"
- },
- {
- "name": "payload_parameter.MONITORING_SERVER_ADMIN_USERNAME",
- "value": "admin"
- },
- {
- "name": "payload_parameter.MONITORING_SERVER_ADMIN_PASSWORD",
- "value": "admin"
- },
- {
- "name": "payload_parameter.QTCM_DNS_SEGMENT",
- "value": "test"
- },
- {
- "name": "payload_parameter.QTCM_NETWORK_COUNT",
- "value": "1"
- },
- {
- "name": "payload_parameter.SIMPLE_PROPERTY",
- "value": "value"
- }
- ],
- "provider": "cisco",
- "type": "c5",
- "version": "1.0"
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c6.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c6.json b/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c6.json
deleted file mode 100755
index 8f41441..0000000
--- a/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c6.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "type": "c6",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c6",
- "description": "c6 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "name": "http-22",
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "mock",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/cartridge-test/cartridges/mock/c0-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/cartridge-test/cartridges/mock/c0-v1.json b/products/stratos/modules/integration/src/test/resources/cartridge-test/cartridges/mock/c0-v1.json
deleted file mode 100755
index 6d922a9..0000000
--- a/products/stratos/modules/integration/src/test/resources/cartridge-test/cartridges/mock/c0-v1.json
+++ /dev/null
@@ -1,124 +0,0 @@
-{
- "category": "Data",
- "description": "c0 Cartridge",
- "displayName": "c0",
- "host": "qmog.cisco.com12",
- "iaasProvider": [
- {
- "imageId": "RegionOne/16e7e35b-0c88-4605-90ce-cbef9e9d123",
- "maxInstanceLimit": "4",
- "networkInterfaces": [
- {
- "floatingNetworks": [
- {
- "name": "private",
- "networkUuid": "26b4aa2b-06bc-4e4f-a6eb-c19fbc2112121"
- }
- ],
- "name": "core1",
- "networkUuid": "5e107fbd-4820-47ad-84ea-6f1354961212"
- }
- ],
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/2cdbd576-8c9b-4c2d-8b1a-0f79dc4fb812"
- },
- {
- "name": "keyPair",
- "value": "phoenix12"
- },
- {
- "name": "autoAssignIp",
- "value": "true"
- },
- {
- "name": "securityGroups",
- "value": "default123"
- }
- ],
- "type": "mock"
- }
- ],
- "multiTenant": "false",
- "portMapping": [
- {
- "port": "22",
- "protocol": "http",
- "proxyPort": "8280"
- }
- ],
- "property": [
- {
- "name": "payload_parameter.MB_IP",
- "value": "octl.qmog.cisco.com123"
- },
- {
- "name": "payload_parameter.MB_PORT",
- "value": "61617"
- },
- {
- "name": "payload_parameter.CEP_IP",
- "value": "octl.qmog.cisco.com123"
- },
- {
- "name": "payload_parameter.CEP_PORT",
- "value": "7612"
- },
- {
- "name": "payload_parameter.CEP_ADMIN_USERNAME",
- "value": "admin"
- },
- {
- "name": "payload_parameter.CEP_ADMIN_PASSWORD",
- "value": "admin123"
- },
- {
- "name": "payload_parameter.CERT_TRUSTSTORE",
- "value": "/opt/apache-stratos-cartridge-agent/security/client-truststore.jks"
- },
- {
- "name": "payload_parameter.TRUSTSTORE_PASSWORD",
- "value": "wso2carbon"
- },
- {
- "name": "payload_parameter.ENABLE_DATA_PUBLISHER",
- "value": "false"
- },
- {
- "name": "payload_parameter.MONITORING_SERVER_IP",
- "value": "octl.qmog.cisco.com123"
- },
- {
- "name": "payload_parameter.MONITORING_SERVER_PORT",
- "value": "7612"
- },
- {
- "name": "payload_parameter.MONITORING_SERVER_SECURE_PORT",
- "value": "7712"
- },
- {
- "name": "payload_parameter.MONITORING_SERVER_ADMIN_USERNAME",
- "value": "admin"
- },
- {
- "name": "payload_parameter.MONITORING_SERVER_ADMIN_PASSWORD",
- "value": "admin123"
- },
- {
- "name": "payload_parameter.QTCM_DNS_SEGMENT",
- "value": "test123"
- },
- {
- "name": "payload_parameter.QTCM_NETWORK_COUNT",
- "value": "3"
- },
- {
- "name": "payload_parameter.SIMPLE_PROPERTY",
- "value": "value"
- }
- ],
- "provider": "apache",
- "type": "c0",
- "version": "1.0"
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/cartridge-test/cartridges/mock/c0.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/cartridge-test/cartridges/mock/c0.json b/products/stratos/modules/integration/src/test/resources/cartridge-test/cartridges/mock/c0.json
deleted file mode 100755
index 44066e1..0000000
--- a/products/stratos/modules/integration/src/test/resources/cartridge-test/cartridges/mock/c0.json
+++ /dev/null
@@ -1,124 +0,0 @@
-{
- "category": "Application",
- "description": "c0 Cartridge",
- "displayName": "c0",
- "host": "qmog.cisco.com",
- "iaasProvider": [
- {
- "imageId": "RegionOne/16e7e35b-0c88-4605-90ce-cbef9e9dde0f",
- "maxInstanceLimit": "4",
- "networkInterfaces": [
- {
- "floatingNetworks": [
- {
- "name": "public",
- "networkUuid": "26b4aa2b-06bc-4e4f-a6eb-c19fbc211af6"
- }
- ],
- "name": "core",
- "networkUuid": "5e107fbd-4820-47ad-84ea-6f135496f889"
- }
- ],
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/2cdbd576-8c9b-4c2d-8b1a-0f79dc4fb809"
- },
- {
- "name": "keyPair",
- "value": "phoenix"
- },
- {
- "name": "autoAssignIp",
- "value": "false"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ],
- "type": "mock"
- }
- ],
- "multiTenant": "false",
- "portMapping": [
- {
- "port": "22",
- "protocol": "http",
- "proxyPort": "8280"
- }
- ],
- "property": [
- {
- "name": "payload_parameter.MB_IP",
- "value": "octl.qmog.cisco.com"
- },
- {
- "name": "payload_parameter.MB_PORT",
- "value": "61616"
- },
- {
- "name": "payload_parameter.CEP_IP",
- "value": "octl.qmog.cisco.com"
- },
- {
- "name": "payload_parameter.CEP_PORT",
- "value": "7611"
- },
- {
- "name": "payload_parameter.CEP_ADMIN_USERNAME",
- "value": "admin"
- },
- {
- "name": "payload_parameter.CEP_ADMIN_PASSWORD",
- "value": "admin"
- },
- {
- "name": "payload_parameter.CERT_TRUSTSTORE",
- "value": "/opt/apache-stratos-cartridge-agent/security/client-truststore.jks"
- },
- {
- "name": "payload_parameter.TRUSTSTORE_PASSWORD",
- "value": "wso2carbon"
- },
- {
- "name": "payload_parameter.ENABLE_DATA_PUBLISHER",
- "value": "false"
- },
- {
- "name": "payload_parameter.MONITORING_SERVER_IP",
- "value": "octl.qmog.cisco.com"
- },
- {
- "name": "payload_parameter.MONITORING_SERVER_PORT",
- "value": "7611"
- },
- {
- "name": "payload_parameter.MONITORING_SERVER_SECURE_PORT",
- "value": "7711"
- },
- {
- "name": "payload_parameter.MONITORING_SERVER_ADMIN_USERNAME",
- "value": "admin"
- },
- {
- "name": "payload_parameter.MONITORING_SERVER_ADMIN_PASSWORD",
- "value": "admin"
- },
- {
- "name": "payload_parameter.QTCM_DNS_SEGMENT",
- "value": "test"
- },
- {
- "name": "payload_parameter.QTCM_NETWORK_COUNT",
- "value": "1"
- },
- {
- "name": "payload_parameter.SIMPLE_PROPERTY",
- "value": "value"
- }
- ],
- "provider": "cisco",
- "type": "c0",
- "version": "1.0"
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-2-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-2-v1.json b/products/stratos/modules/integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-2-v1.json
deleted file mode 100644
index b5c305c..0000000
--- a/products/stratos/modules/integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-2-v1.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "id": "deployment-policy-2",
- "networkPartitions": [
- {
- "id": "network-partition-5",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "partition-1",
- "partitionMax": 25
- },
- {
- "id": "partition-2",
- "partitionMax": 20
- }
- ]
- },
- {
- "id": "network-partition-6",
- "partitionAlgo": "round-robin",
- "partitions": [
- {
- "id": "network-partition-6-partition-1",
- "partitionMax": 15
- },
- {
- "id": "network-partition-6-partition-2",
- "partitionMax": 5
- }
- ]
- }
- ]
-}
-
-
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-2.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-2.json b/products/stratos/modules/integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-2.json
deleted file mode 100644
index 5df3e24..0000000
--- a/products/stratos/modules/integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-2.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "id": "deployment-policy-2",
- "networkPartitions": [
- {
- "id": "network-partition-5",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "partition-1",
- "partitionMax": 20
- }
- ]
- },
- {
- "id": "network-partition-6",
- "partitionAlgo": "round-robin",
- "partitions": [
- {
- "id": "network-partition-6-partition-1",
- "partitionMax": 10
- },
- {
- "id": "network-partition-6-partition-2",
- "partitionMax": 9
- }
- ]
- }
- ]
-}
-
-
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-5-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-5-v1.json b/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-5-v1.json
deleted file mode 100644
index 275b536..0000000
--- a/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-5-v1.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "id": "network-partition-5",
- "provider": "mock",
- "partitions": [
- {
- "id": "partition-1",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- },
- {
- "id": "partition-2",
- "property": [
- {
- "name": "region",
- "value": "default1"
- },
- {
- "name": "zone",
- "value": "z1"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-5.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-5.json b/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-5.json
deleted file mode 100644
index 5464aa9..0000000
--- a/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-5.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "id": "network-partition-5",
- "provider": "mock",
- "partitions": [
- {
- "id": "partition-1",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-6.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-6.json b/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-6.json
deleted file mode 100644
index d200b70..0000000
--- a/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-6.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "id": "network-partition-6",
- "provider": "mock",
- "partitions": [
- {
- "id": "network-partition-6-partition-1",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- },
- {
- "id": "network-partition-6-partition-2",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/mock-iaas.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/mock-iaas.xml b/products/stratos/modules/integration/src/test/resources/mock-iaas.xml
index 24e423c..a0f1066 100644
--- a/products/stratos/modules/integration/src/test/resources/mock-iaas.xml
+++ b/products/stratos/modules/integration/src/test/resources/mock-iaas.xml
@@ -39,6 +39,46 @@
<sampleDuration>60</sampleDuration>
</pattern>
</cartridge>
+ <cartridge type="c7-single-cluster-scaling-test">
+ <!-- factor:memory-consumption|load-average|requests-in-flight-->
+ <!-- mode:loop|continue|stop -->
+ <!-- Mode defines the action needs to be taken after the last sample value:
+ loop: start from beginning
+ continue: continue the last sample value
+ stop: stop publishing statistics -->
+ <pattern factor="memory-consumption" mode="continue">
+ <!-- Sample values -->
+ <sampleValues>60,70,80,90,90,90,40,60,50,60</sampleValues>
+ <!-- Duration of each sample value in seconds -->
+ <sampleDuration>60</sampleDuration>
+ </pattern>
+ <pattern factor="load-average" mode="continue">
+ <!-- Sample values -->
+ <sampleValues>70,70,70</sampleValues>
+ <!-- Duration of each sample value in seconds -->
+ <sampleDuration>60</sampleDuration>
+ </pattern>
+ </cartridge>
+ <cartridge type="c7-partition-round-robin-test">
+ <!-- factor:memory-consumption|load-average|requests-in-flight-->
+ <!-- mode:loop|continue|stop -->
+ <!-- Mode defines the action needs to be taken after the last sample value:
+ loop: start from beginning
+ continue: continue the last sample value
+ stop: stop publishing statistics -->
+ <pattern factor="memory-consumption" mode="stop">
+ <!-- Sample values -->
+ <sampleValues>20,20,20,20</sampleValues>
+ <!-- Duration of each sample value in seconds -->
+ <sampleDuration>30</sampleDuration>
+ </pattern>
+ <pattern factor="load-average" mode="stop">
+ <!-- Sample values -->
+ <sampleValues>20,20,20,20</sampleValues>
+ <!-- Duration of each sample value in seconds -->
+ <sampleDuration>30</sampleDuration>
+ </pattern>
+ </cartridge>
<cartridge type="php">
<!-- factor:memory-consumption|load-average|requests-in-flight-->
<!-- mode:loop|continue|stop -->
@@ -60,4 +100,4 @@
</pattern>
</cartridge>
</health-statistics>
-</mock-iaas>
\ No newline at end of file
+</mock-iaas>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-3-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-3-v1.json b/products/stratos/modules/integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-3-v1.json
deleted file mode 100644
index c7d4733..0000000
--- a/products/stratos/modules/integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-3-v1.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "id": "network-partition-3",
- "provider": "mock",
- "partitions": [
- {
- "id": "partition-1",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- },
- {
- "id": "partition-2",
- "property": [
- {
- "name": "region",
- "value": "default1"
- },
- {
- "name": "zone",
- "value": "z1"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-3.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-3.json b/products/stratos/modules/integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-3.json
deleted file mode 100644
index 1bb7f2a..0000000
--- a/products/stratos/modules/integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-3.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "id": "network-partition-3",
- "provider": "mock",
- "partitions": [
- {
- "id": "partition-1",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/sample-applications-test/application-policies/application-policy-1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/application-policies/application-policy-1.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/application-policies/application-policy-1.json
deleted file mode 100644
index d2699a1..0000000
--- a/products/stratos/modules/integration/src/test/resources/sample-applications-test/application-policies/application-policy-1.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "id": "application-policy-1",
- "algorithm": "one-after-another",
- "networkPartitions": [
- "network-partition-1",
- "network-partition-2"
- ],
- "properties": [
- {
- "name": "key-1",
- "value": "network-partition-1,network-partition-2"
- },
- {
- "name": "key-2",
- "value": "value-2"
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-v1.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-v1.json
deleted file mode 100644
index a91c4e0..0000000
--- a/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-v1.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "alias": "g-sc-G123-1",
- "applicationId": "g-sc-G123-1",
- "components": {
- "cartridges": [],
- "groups": [
- {
- "name": "G1",
- "groupMaxInstances": 1,
- "groupMinInstances": 1,
- "alias": "group1",
- "cartridges": [
- {
- "cartridgeMin": 2,
- "cartridgeMax": 3,
- "type": "c1",
- "subscribableInfo": {
- "alias": "c1-1x0",
- "deploymentPolicy": "deployment-policy-1",
- "artifactRepository": {
- "repoUsername": "user",
- "repoUrl": "http://stratos.apache.org:10080/git/default.git",
- "privateRepo": true,
- "repoPassword": "c-policy"
- },
- "autoscalingPolicy": "autoscaling-policy-1"
- }
- }
- ],
- "groups": [
- {
- "name": "G2",
- "groupMaxInstances": 1,
- "groupMinInstances": 1,
- "alias": "group2",
- "cartridges": [
- {
- "cartridgeMin": 2,
- "cartridgeMax": 4,
- "type": "c2",
- "subscribableInfo": {
- "alias": "c2-1x0",
- "deploymentPolicy": "deployment-policy-1",
- "artifactRepository": {
- "repoUsername": "user",
- "repoUrl": "http://stratos.apache.org:10080/git/default.git",
- "privateRepo": true,
- "repoPassword": "c-policy"
- },
- "autoscalingPolicy": "autoscaling-policy-1"
- }
- }
- ],
- "groups": [
- {
- "name": "G3",
- "groupMaxInstances": 3,
- "groupMinInstances": 2,
- "deploymentPolicy": "deployment-policy-1",
- "alias": "group3",
- "cartridges": [
- {
- "cartridgeMin": 2,
- "cartridgeMax": 3,
- "type": "c3",
- "subscribableInfo": {
- "alias": "c3-1x0",
- "artifactRepository": {
- "repoUsername": "user",
- "repoUrl": "http://stratos.apache.org:10080/git/default.git",
- "privateRepo": true,
- "repoPassword": "c-policy"
- },
- "autoscalingPolicy": "autoscaling-policy-1"
- }
- }
- ],
- "groups": []
- }
- ]
- }
- ]
- }
- ]
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-v2.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-v2.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-v2.json
deleted file mode 100644
index 6f827c2..0000000
--- a/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-v2.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "alias": "g-sc-G123-1",
- "applicationId": "g-sc-G123-1",
- "components": {
- "cartridges": [],
- "groups": [
- {
- "name": "G1",
- "groupMaxInstances": 5,
- "groupMinInstances": 2,
- "alias": "group1",
- "cartridges": [
- {
- "cartridgeMin": 2,
- "cartridgeMax": 3,
- "type": "c1",
- "subscribableInfo": {
- "alias": "c1-1x0",
- "deploymentPolicy": "deployment-policy-1",
- "artifactRepository": {
- "repoUsername": "user",
- "repoUrl": "http://stratos.apache.org:10080/git/default.git",
- "privateRepo": true,
- "repoPassword": "c-policy"
- },
- "autoscalingPolicy": "autoscaling-policy-1"
- }
- }
- ],
- "groups": [
- {
- "name": "G2",
- "groupMaxInstances": 1,
- "groupMinInstances": 1,
- "alias": "group2",
- "cartridges": [
- {
- "cartridgeMin": 2,
- "cartridgeMax": 4,
- "type": "c2",
- "subscribableInfo": {
- "alias": "c2-1x0",
- "deploymentPolicy": "deployment-policy-1",
- "artifactRepository": {
- "repoUsername": "user",
- "repoUrl": "http://stratos.apache.org:10080/git/default.git",
- "privateRepo": true,
- "repoPassword": "c-policy"
- },
- "autoscalingPolicy": "autoscaling-policy-1"
- }
- }
- ],
- "groups": [
- {
- "name": "G3",
- "groupMaxInstances": 3,
- "groupMinInstances": 2,
- "deploymentPolicy": "static-1",
- "alias": "group3",
- "cartridges": [
- {
- "cartridgeMin": 2,
- "cartridgeMax": 3,
- "type": "c3",
- "subscribableInfo": {
- "alias": "c3-1x0",
- "artifactRepository": {
- "repoUsername": "user",
- "repoUrl": "http://stratos.apache.org:10080/git/default.git",
- "privateRepo": true,
- "repoPassword": "c-policy"
- },
- "autoscalingPolicy": "autoscaling-policy-1"
- }
- }
- ],
- "groups": []
- }
- ]
- }
- ]
- }
- ]
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-v3.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-v3.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-v3.json
deleted file mode 100644
index a6e5fd7..0000000
--- a/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-v3.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "alias": "g-sc-G123-1",
- "applicationId": "g-sc-G123-1",
- "components": {
- "cartridges": [],
- "groups": [
- {
- "name": "G1",
- "groupMaxInstances": 1,
- "groupMinInstances": 1,
- "alias": "group1",
- "cartridges": [
- {
- "cartridgeMin": 2,
- "cartridgeMax": 3,
- "type": "c1",
- "subscribableInfo": {
- "alias": "c1-1x0",
- "deploymentPolicy": "deployment-policy-1",
- "artifactRepository": {
- "repoUsername": "user",
- "repoUrl": "http://stratos.apache.org:10080/git/default.git",
- "privateRepo": true,
- "repoPassword": "c-policy"
- },
- "autoscalingPolicy": "autoscaling-policy-1"
- }
- }
- ],
- "groups": [
- {
- "name": "G2",
- "groupMaxInstances": 1,
- "groupMinInstances": 1,
- "alias": "group2",
- "cartridges": [
- {
- "cartridgeMin": 2,
- "cartridgeMax": 4,
- "type": "c2",
- "subscribableInfo": {
- "alias": "c2-1x0",
- "deploymentPolicy": "deployment-policy-1",
- "artifactRepository": {
- "repoUsername": "user",
- "repoUrl": "http://stratos.apache.org:10080/git/default.git",
- "privateRepo": true,
- "repoPassword": "c-policy"
- },
- "autoscalingPolicy": "autoscaling-policy-1"
- }
- }
- ],
- "groups": [
- {
- "name": "G3",
- "groupMaxInstances": 4,
- "groupMinInstances": 3,
- "deploymentPolicy": "static-1",
- "alias": "group3",
- "cartridges": [
- {
- "cartridgeMin": 2,
- "cartridgeMax": 3,
- "type": "c3",
- "subscribableInfo": {
- "alias": "c3-1x0",
- "artifactRepository": {
- "repoUsername": "user",
- "repoUrl": "http://stratos.apache.org:10080/git/default.git",
- "privateRepo": true,
- "repoPassword": "c-policy"
- },
- "autoscalingPolicy": "autoscaling-policy-1"
- }
- }
- ],
- "groups": []
- }
- ]
- }
- ]
- }
- ]
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1.json
deleted file mode 100644
index 76d72c8..0000000
--- a/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "alias": "g-sc-G123-1",
- "applicationId": "g-sc-G123-1",
- "components": {
- "cartridges": [],
- "groups": [
- {
- "name": "G1",
- "groupMaxInstances": 1,
- "groupMinInstances": 1,
- "alias": "group1",
- "cartridges": [
- {
- "cartridgeMin": 1,
- "cartridgeMax": 2,
- "type": "c1",
- "subscribableInfo": {
- "alias": "c1-1x0",
- "deploymentPolicy": "deployment-policy-1",
- "artifactRepository": {
- "repoUsername": "user",
- "repoUrl": "http://stratos.apache.org:10080/git/default.git",
- "privateRepo": true,
- "repoPassword": "c-policy"
- },
- "autoscalingPolicy": "autoscaling-policy-1"
- }
- }
- ],
- "groups": [
- {
- "name": "G2",
- "groupMaxInstances": 1,
- "groupMinInstances": 1,
- "alias": "group2",
- "cartridges": [
- {
- "cartridgeMin": 1,
- "cartridgeMax": 2,
- "type": "c2",
- "subscribableInfo": {
- "alias": "c2-1x0",
- "deploymentPolicy": "deployment-policy-1",
- "artifactRepository": {
- "repoUsername": "user",
- "repoUrl": "http://stratos.apache.org:10080/git/default.git",
- "privateRepo": true,
- "repoPassword": "c-policy"
- },
- "autoscalingPolicy": "autoscaling-policy-1"
- }
- }
- ],
- "groups": [
- {
- "name": "G3",
- "groupMaxInstances": 2,
- "groupMinInstances": 1,
- "deploymentPolicy": "deployment-policy-1",
- "alias": "group3",
- "cartridges": [
- {
- "cartridgeMin": 1,
- "cartridgeMax": 2,
- "type": "c3",
- "subscribableInfo": {
- "alias": "c3-1x0",
- "artifactRepository": {
- "repoUsername": "user",
- "repoUrl": "http://stratos.apache.org:10080/git/default.git",
- "privateRepo": true,
- "repoPassword": "c-policy"
- },
- "autoscalingPolicy": "autoscaling-policy-1"
- }
- }
- ],
- "groups": []
- }
- ]
- }
- ]
- }
- ]
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/sample-applications-test/autoscaling-policies/autoscaling-policy-1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/autoscaling-policies/autoscaling-policy-1.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/autoscaling-policies/autoscaling-policy-1.json
deleted file mode 100644
index f82403b..0000000
--- a/products/stratos/modules/integration/src/test/resources/sample-applications-test/autoscaling-policies/autoscaling-policy-1.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscaling-policy-1",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 35
- },
- "memoryConsumption": {
- "threshold": 45
- },
- "loadAverage": {
- "threshold": 25
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges-groups/cartrdige-nested-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges-groups/cartrdige-nested-v1.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges-groups/cartrdige-nested-v1.json
deleted file mode 100644
index 6020e1e..0000000
--- a/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges-groups/cartrdige-nested-v1.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "name": "G1",
- "dependencies": {
- "terminationBehaviour": "terminate-none",
- "startupOrders": [
- {
- "aliases": [
- "group.group2",
- "cartridge.c1-1x0"
- ]
- }
- ]
- },
- "cartridges": [
- "c1"
- ],
- "groups": [
- {
- "name": "G2",
- "dependencies": {
- "terminationBehaviour": "terminate-dependents",
- "startupOrders": [
- {
- "aliases": [
- "group.group3",
- "cartridge.c2-1x0"
- ]
- }
- ]
- },
- "cartridges": [
- "c2"
- ],
- "groups": [
- {
- "name": "G3",
- "dependencies": {
- "terminationBehaviour": "terminate-all",
- "startupOrders": []
- },
- "cartridges": [
- "c3"
- ],
- "groups": []
- }
- ]
- }
- ]
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges-groups/cartrdige-nested.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges-groups/cartrdige-nested.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges-groups/cartrdige-nested.json
deleted file mode 100644
index 6020e1e..0000000
--- a/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges-groups/cartrdige-nested.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "name": "G1",
- "dependencies": {
- "terminationBehaviour": "terminate-none",
- "startupOrders": [
- {
- "aliases": [
- "group.group2",
- "cartridge.c1-1x0"
- ]
- }
- ]
- },
- "cartridges": [
- "c1"
- ],
- "groups": [
- {
- "name": "G2",
- "dependencies": {
- "terminationBehaviour": "terminate-dependents",
- "startupOrders": [
- {
- "aliases": [
- "group.group3",
- "cartridge.c2-1x0"
- ]
- }
- ]
- },
- "cartridges": [
- "c2"
- ],
- "groups": [
- {
- "name": "G3",
- "dependencies": {
- "terminationBehaviour": "terminate-all",
- "startupOrders": []
- },
- "cartridges": [
- "c3"
- ],
- "groups": []
- }
- ]
- }
- ]
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c1.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c1.json
deleted file mode 100755
index 145e2ce..0000000
--- a/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c1.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "type": "c1",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c1",
- "description": "c1 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "name": "http-22",
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "mock",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c2.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c2.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c2.json
deleted file mode 100755
index fd85892..0000000
--- a/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c2.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "type": "c2",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c2",
- "description": "c2 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "name": "http-22",
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "mock",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c3.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c3.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c3.json
deleted file mode 100755
index 937e8d3..0000000
--- a/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c3.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "type": "c3",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "data",
- "displayName": "c3",
- "description": "c3 Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "name": "http-22",
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "mock",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-1-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-1-v1.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-1-v1.json
deleted file mode 100644
index 2ba5eb3..0000000
--- a/products/stratos/modules/integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-1-v1.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "id": "deployment-policy-1",
- "networkPartitions": [
- {
- "id": "network-partition-1",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "partition-1",
- "partitionMax": 25
- },
- {
- "id": "partition-2",
- "partitionMax": 20
- }
- ]
- },
- {
- "id": "network-partition-2",
- "partitionAlgo": "round-robin",
- "partitions": [
- {
- "id": "network-partition-2-partition-1",
- "partitionMax": 15
- },
- {
- "id": "network-partition-2-partition-2",
- "partitionMax": 5
- }
- ]
- }
- ]
-}
-
-
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-1.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-1.json
deleted file mode 100644
index e186690..0000000
--- a/products/stratos/modules/integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-1.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "id": "deployment-policy-1",
- "networkPartitions": [
- {
- "id": "network-partition-1",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "partition-1",
- "partitionMax": 20
- }
- ]
- },
- {
- "id": "network-partition-2",
- "partitionAlgo": "round-robin",
- "partitions": [
- {
- "id": "network-partition-2-partition-1",
- "partitionMax": 10
- },
- {
- "id": "network-partition-2-partition-2",
- "partitionMax": 9
- }
- ]
- }
- ]
-}
-
-
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-1-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-1-v1.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-1-v1.json
deleted file mode 100644
index 054265a..0000000
--- a/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-1-v1.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "id": "network-partition-1",
- "provider": "mock",
- "partitions": [
- {
- "id": "partition-1",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- },
- {
- "id": "partition-2",
- "property": [
- {
- "name": "region",
- "value": "default1"
- },
- {
- "name": "zone",
- "value": "z1"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-1.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-1.json
deleted file mode 100644
index 466da28..0000000
--- a/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-1.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "id": "network-partition-1",
- "provider": "mock",
- "partitions": [
- {
- "id": "partition-1",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-2.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-2.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-2.json
deleted file mode 100644
index 23236e2..0000000
--- a/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-2.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "id": "network-partition-2",
- "provider": "mock",
- "partitions": [
- {
- "id": "network-partition-2-partition-1",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- },
- {
- "id": "network-partition-2-partition-2",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/stratos-testing.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/stratos-testing.xml b/products/stratos/modules/integration/src/test/resources/stratos-testing.xml
index 356b5ec..c530c1c 100644
--- a/products/stratos/modules/integration/src/test/resources/stratos-testing.xml
+++ b/products/stratos/modules/integration/src/test/resources/stratos-testing.xml
@@ -21,13 +21,12 @@
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="StratosIntegrationSuite">
-
<test name="CartridgeTest">
<classes>
<class name="org.apache.stratos.integration.tests.group.CartridgeTest" />
</classes>
</test>
- <test name="CartridgeGroupTest">
+ <test name="CartridgeGroupTest" >
<classes>
<class name="org.apache.stratos.integration.tests.group.CartridgeGroupTest" />
</classes>
@@ -57,6 +56,21 @@
<class name="org.apache.stratos.integration.tests.application.SampleApplicationsTest" />
</classes>
</test>
+ <!-- <test name="ApplicationUpdateTest">
+ <classes>
+ <class name="org.apache.stratos.integration.tests.application.ApplicationUpdateTest" />
+ </classes>
+ </test>
+ <test name="SingleClusterScalingTest">
+ <classes>
+ <class name="org.apache.stratos.integration.tests.application.SingleClusterScalingTest" />
+ </classes>
+ </test>
+ <test name="PartitionRoundRobinClusterTest">
+ <classes>
+ <class name="org.apache.stratos.integration.tests.application.PartitionRoundRobinClusterTest" />
+ </classes>
+ </test> -->
<test name="ApplicationBurstingTest">
<classes>
<class name="org.apache.stratos.integration.tests.application.ApplicationBurstingTest" />
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/tenant/tenant1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/tenant/tenant1.json b/products/stratos/modules/integration/src/test/resources/tenant/tenant1.json
deleted file mode 100644
index f575b1b..0000000
--- a/products/stratos/modules/integration/src/test/resources/tenant/tenant1.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "admin": "admin",
- "firstName": "Frank",
- "lastName": "Myers",
- "adminPassword": "admin123",
- "tenantDomain": "test1.com",
- "email": "foo1@bar.com",
- "active": "true"
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/tenant/tenant2.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/tenant/tenant2.json b/products/stratos/modules/integration/src/test/resources/tenant/tenant2.json
deleted file mode 100644
index 3d2baf2..0000000
--- a/products/stratos/modules/integration/src/test/resources/tenant/tenant2.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "admin": "admin",
- "firstName": "Frank",
- "lastName": "Myers",
- "adminPassword": "admin123",
- "tenantDomain": "test2.com",
- "email": "foo2@bar.com",
- "active": "true"
-}
[10/11] stratos git commit: Merge the latest changes of integration
test from master branch
Posted by ga...@apache.org.
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-bursting-test/deployment-policies/deployment-policy-application-bursting-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/deployment-policies/deployment-policy-application-bursting-test.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/deployment-policies/deployment-policy-application-bursting-test.json
new file mode 100644
index 0000000..4adc0f2
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-bursting-test/deployment-policies/deployment-policy-application-bursting-test.json
@@ -0,0 +1,32 @@
+{
+ "id": "deployment-policy-application-bursting-test",
+ "networkPartitions": [
+ {
+ "id": "network-partition-application-bursting-test-1",
+ "partitionAlgo": "one-after-another",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "partitionMax": 4
+ }
+ ]
+ },
+ {
+ "id": "network-partition-application-bursting-test-2",
+ "partitionAlgo": "round-robin",
+ "partitions": [
+ {
+ "id": "network-partition-10-partition-1",
+ "partitionMax": 4
+ },
+ {
+ "id": "network-partition-10-partition-2",
+ "partitionMax": 4
+ }
+ ]
+ }
+ ]
+}
+
+
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-bursting-test/network-partitions/mock/network-partition-application-bursting-test-1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/network-partitions/mock/network-partition-application-bursting-test-1.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/network-partitions/mock/network-partition-application-bursting-test-1.json
new file mode 100644
index 0000000..78f7d01
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-bursting-test/network-partitions/mock/network-partition-application-bursting-test-1.json
@@ -0,0 +1,15 @@
+{
+ "id": "network-partition-application-bursting-test-1",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-bursting-test/network-partitions/mock/network-partition-application-bursting-test-2.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/network-partitions/mock/network-partition-application-bursting-test-2.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/network-partitions/mock/network-partition-application-bursting-test-2.json
new file mode 100644
index 0000000..588bfff
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-bursting-test/network-partitions/mock/network-partition-application-bursting-test-2.json
@@ -0,0 +1,24 @@
+{
+ "id": "network-partition-application-bursting-test-2",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "network-partition-10-partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ },
+ {
+ "id": "network-partition-10-partition-2",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-policy-test/application-policies/application-policy-application-policy-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-policy-test/application-policies/application-policy-application-policy-test.json b/products/stratos/modules/integration/src/test/resources/application-policy-test/application-policies/application-policy-application-policy-test.json
new file mode 100644
index 0000000..cf1aace
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-policy-test/application-policies/application-policy-application-policy-test.json
@@ -0,0 +1,18 @@
+{
+ "id": "application-policy-application-policy-test",
+ "algorithm": "one-after-another",
+ "networkPartitions": [
+ "network-partition-application-policy-test-1",
+ "network-partition-application-policy-test-2"
+ ],
+ "properties": [
+ {
+ "name": "networkPartitionGroups",
+ "value": "network-partition-application-policy-test-1,network-partition-application-policy-test-2"
+ },
+ {
+ "name": "key-2",
+ "value": "value-2"
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-policy-test/network-partitions/mock/network-partition-application-policy-test-1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-policy-test/network-partitions/mock/network-partition-application-policy-test-1.json b/products/stratos/modules/integration/src/test/resources/application-policy-test/network-partitions/mock/network-partition-application-policy-test-1.json
new file mode 100644
index 0000000..79a9024
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-policy-test/network-partitions/mock/network-partition-application-policy-test-1.json
@@ -0,0 +1,24 @@
+{
+ "id": "network-partition-application-policy-test-1",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "network-partition-8-partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ },
+ {
+ "id": "network-partition-8-partition-2",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-policy-test/network-partitions/mock/network-partition-application-policy-test-2.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-policy-test/network-partitions/mock/network-partition-application-policy-test-2.json b/products/stratos/modules/integration/src/test/resources/application-policy-test/network-partitions/mock/network-partition-application-policy-test-2.json
new file mode 100644
index 0000000..a802378
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-policy-test/network-partitions/mock/network-partition-application-policy-test-2.json
@@ -0,0 +1,15 @@
+{
+ "id": "network-partition-application-policy-test-2",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-update-test/application-policies/application-policy-application-update-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-update-test/application-policies/application-policy-application-update-test.json b/products/stratos/modules/integration/src/test/resources/application-update-test/application-policies/application-policy-application-update-test.json
new file mode 100644
index 0000000..1b29165
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-update-test/application-policies/application-policy-application-update-test.json
@@ -0,0 +1,18 @@
+{
+ "id": "application-policy-application-update-test",
+ "algorithm": "one-after-another",
+ "networkPartitions": [
+ "network-partition-application-update-test-1",
+ "network-partition-application-update-test-2"
+ ],
+ "properties": [
+ {
+ "name": "networkPartitionGroups",
+ "value": "network-partition-application-update-test-1,network-partition-application-update-test-2"
+ },
+ {
+ "name": "key-2",
+ "value": "value-2"
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-update-test/applications/g-sc-G123-1-application-update-test-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-update-test/applications/g-sc-G123-1-application-update-test-v1.json b/products/stratos/modules/integration/src/test/resources/application-update-test/applications/g-sc-G123-1-application-update-test-v1.json
new file mode 100644
index 0000000..2509ab1
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-update-test/applications/g-sc-G123-1-application-update-test-v1.json
@@ -0,0 +1,86 @@
+{
+ "alias": "g-sc-G123-1-application-update-test",
+ "applicationId": "g-sc-G123-1-application-update-test",
+ "components": {
+ "cartridges": [],
+ "groups": [
+ {
+ "name": "G1-application-update-test",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "group1-application-update-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 2,
+ "cartridgeMax": 3,
+ "type": "c1-application-update-test",
+ "subscribableInfo": {
+ "alias": "c1-1x0-application-update-test",
+ "deploymentPolicy": "deployment-policy-application-update-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://stratos.apache.org:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-application-update-test"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "name": "G2-application-update-test",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "group2-application-update-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 2,
+ "cartridgeMax": 4,
+ "type": "c2-application-update-test",
+ "subscribableInfo": {
+ "alias": "c2-1x0-application-update-test",
+ "deploymentPolicy": "deployment-policy-application-update-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://stratos.apache.org:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-application-update-test"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "name": "G3-application-update-test",
+ "groupMaxInstances": 3,
+ "groupMinInstances": 2,
+ "deploymentPolicy": "deployment-policy-application-update-test",
+ "alias": "group3-application-update-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 2,
+ "cartridgeMax": 3,
+ "type": "c3-application-update-test",
+ "subscribableInfo": {
+ "alias": "c3-1x0-application-update-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://stratos.apache.org:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-application-update-test"
+ }
+ }
+ ],
+ "groups": []
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-update-test/applications/g-sc-G123-1-application-update-test-v1.json.orig
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-update-test/applications/g-sc-G123-1-application-update-test-v1.json.orig b/products/stratos/modules/integration/src/test/resources/application-update-test/applications/g-sc-G123-1-application-update-test-v1.json.orig
new file mode 100644
index 0000000..b3ba80e
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-update-test/applications/g-sc-G123-1-application-update-test-v1.json.orig
@@ -0,0 +1,91 @@
+{
+ "alias": "g-sc-G123-1-application-update-test",
+ "applicationId": "g-sc-G123-1-application-update-test",
+ "components": {
+ "cartridges": [],
+ "groups": [
+ {
+ "name": "G1-application-update-test",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "group1-application-update-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 2,
+ "cartridgeMax": 3,
+ "type": "c1-application-update-test",
+ "subscribableInfo": {
+ "alias": "c1-1x0-application-update-test",
+ "deploymentPolicy": "deployment-policy-application-update-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://stratos.apache.org:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-application-update-test"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "name": "G2-application-update-test",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "group2-application-update-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 2,
+ "cartridgeMax": 4,
+ "type": "c2-application-update-test",
+ "subscribableInfo": {
+ "alias": "c2-1x0-application-update-test",
+ "deploymentPolicy": "deployment-policy-application-update-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://stratos.apache.org:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-application-update-test"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "name": "G3-application-update-test",
+ "groupMaxInstances": 3,
+ "groupMinInstances": 2,
+<<<<<<< HEAD:products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-v1.json
+ "deploymentPolicy": "deployment-policy-1",
+ "alias": "group3",
+=======
+ "deploymentPolicy": "deployment-policy-application-update-test",
+ "alias": "group3-application-update-test",
+>>>>>>> f78ab82... Restructuring the integration test and adding more test cases:products/stratos/modules/integration/src/test/resources/application-update-test/applications/g-sc-G123-1-application-update-test-v1.json
+ "cartridges": [
+ {
+ "cartridgeMin": 2,
+ "cartridgeMax": 3,
+ "type": "c3-application-update-test",
+ "subscribableInfo": {
+ "alias": "c3-1x0-application-update-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://stratos.apache.org:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-application-update-test"
+ }
+ }
+ ],
+ "groups": []
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-update-test/applications/g-sc-G123-1-application-update-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-update-test/applications/g-sc-G123-1-application-update-test.json b/products/stratos/modules/integration/src/test/resources/application-update-test/applications/g-sc-G123-1-application-update-test.json
new file mode 100644
index 0000000..548e66c
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-update-test/applications/g-sc-G123-1-application-update-test.json
@@ -0,0 +1,86 @@
+{
+ "alias": "g-sc-G123-1-application-update-test",
+ "applicationId": "g-sc-G123-1-application-update-test",
+ "components": {
+ "cartridges": [],
+ "groups": [
+ {
+ "name": "G1-application-update-test",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "group1-application-update-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 2,
+ "type": "c1-application-update-test",
+ "subscribableInfo": {
+ "alias": "c1-1x0-application-update-test",
+ "deploymentPolicy": "deployment-policy-application-update-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://stratos.apache.org:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-application-update-test"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "name": "G2-application-update-test",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "group2-application-update-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 2,
+ "type": "c2-application-update-test",
+ "subscribableInfo": {
+ "alias": "c2-1x0-application-update-test",
+ "deploymentPolicy": "deployment-policy-application-update-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://stratos.apache.org:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-application-update-test"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "name": "G3-application-update-test",
+ "groupMaxInstances": 2,
+ "groupMinInstances": 1,
+ "deploymentPolicy": "deployment-policy-application-update-test",
+ "alias": "group3-application-update-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 2,
+ "type": "c3-application-update-test",
+ "subscribableInfo": {
+ "alias": "c3-1x0-application-update-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://stratos.apache.org:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-application-update-test"
+ }
+ }
+ ],
+ "groups": []
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-update-test/autoscaling-policies/autoscaling-policy-application-update-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-update-test/autoscaling-policies/autoscaling-policy-application-update-test.json b/products/stratos/modules/integration/src/test/resources/application-update-test/autoscaling-policies/autoscaling-policy-application-update-test.json
new file mode 100644
index 0000000..8d9b766
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-update-test/autoscaling-policies/autoscaling-policy-application-update-test.json
@@ -0,0 +1,14 @@
+{
+ "id": "autoscaling-policy-application-update-test",
+ "loadThresholds": {
+ "requestsInFlight": {
+ "threshold": 35
+ },
+ "memoryConsumption": {
+ "threshold": 45
+ },
+ "loadAverage": {
+ "threshold": 25
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges-groups/cartrdige-nested-application-update-test-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges-groups/cartrdige-nested-application-update-test-v1.json b/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges-groups/cartrdige-nested-application-update-test-v1.json
new file mode 100644
index 0000000..884ea0c
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges-groups/cartrdige-nested-application-update-test-v1.json
@@ -0,0 +1,50 @@
+{
+ "name": "G1-application-update-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-none",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.group2-application-update-test",
+ "cartridge.c1-1x0-application-update-test"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c1-application-update-test"
+ ],
+ "groups": [
+ {
+ "name": "G2-application-update-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-dependents",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.group3-application-update-test",
+ "cartridge.c2-1x0-application-update-test"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c2-application-update-test"
+ ],
+ "groups": [
+ {
+ "name": "G3-application-update-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-all",
+ "startupOrders": []
+ },
+ "cartridges": [
+ "c3-application-update-test"
+ ],
+ "groups": []
+ }
+ ]
+ }
+ ]
+}
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges-groups/cartrdige-nested-application-update-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges-groups/cartrdige-nested-application-update-test.json b/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges-groups/cartrdige-nested-application-update-test.json
new file mode 100644
index 0000000..884ea0c
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges-groups/cartrdige-nested-application-update-test.json
@@ -0,0 +1,50 @@
+{
+ "name": "G1-application-update-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-none",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.group2-application-update-test",
+ "cartridge.c1-1x0-application-update-test"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c1-application-update-test"
+ ],
+ "groups": [
+ {
+ "name": "G2-application-update-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-dependents",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.group3-application-update-test",
+ "cartridge.c2-1x0-application-update-test"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c2-application-update-test"
+ ],
+ "groups": [
+ {
+ "name": "G3-application-update-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-all",
+ "startupOrders": []
+ },
+ "cartridges": [
+ "c3-application-update-test"
+ ],
+ "groups": []
+ }
+ ]
+ }
+ ]
+}
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges/mock/c1-application-update-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges/mock/c1-application-update-test.json b/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges/mock/c1-application-update-test.json
new file mode 100755
index 0000000..fcfa6f2
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges/mock/c1-application-update-test.json
@@ -0,0 +1,45 @@
+{
+ "type": "c1-application-update-test",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c1-application-update-test",
+ "description": "c1-application-update-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "name": "http-22",
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges/mock/c2-application-update-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges/mock/c2-application-update-test.json b/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges/mock/c2-application-update-test.json
new file mode 100755
index 0000000..a1c1a97
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges/mock/c2-application-update-test.json
@@ -0,0 +1,45 @@
+{
+ "type": "c2-application-update-test",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c2-application-update-test",
+ "description": "c2-application-update-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "name": "http-22",
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges/mock/c3-application-update-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges/mock/c3-application-update-test.json b/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges/mock/c3-application-update-test.json
new file mode 100755
index 0000000..e3932fc
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-update-test/cartridges/mock/c3-application-update-test.json
@@ -0,0 +1,45 @@
+{
+ "type": "c3-application-update-test",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c3-application-update-test",
+ "description": "c3-application-update-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "name": "http-22",
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-update-test/deployment-policies/deployment-policy-application-update-test-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-update-test/deployment-policies/deployment-policy-application-update-test-v1.json b/products/stratos/modules/integration/src/test/resources/application-update-test/deployment-policies/deployment-policy-application-update-test-v1.json
new file mode 100644
index 0000000..5dc2081
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-update-test/deployment-policies/deployment-policy-application-update-test-v1.json
@@ -0,0 +1,36 @@
+{
+ "id": "deployment-policy-application-update-test",
+ "networkPartitions": [
+ {
+ "id": "network-partition-application-update-test-1",
+ "partitionAlgo": "one-after-another",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "partitionMax": 25
+ },
+ {
+ "id": "partition-2",
+ "partitionMax": 20
+ }
+ ]
+ },
+ {
+ "id": "network-partition-application-update-test-2",
+ "partitionAlgo": "round-robin",
+ "partitions": [
+ {
+ "id": "network-partition-2-partition-1",
+ "partitionMax": 15
+ },
+ {
+ "id": "network-partition-2-partition-2",
+ "partitionMax": 5
+ }
+ ]
+ }
+ ]
+}
+
+
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-update-test/deployment-policies/deployment-policy-application-update-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-update-test/deployment-policies/deployment-policy-application-update-test.json b/products/stratos/modules/integration/src/test/resources/application-update-test/deployment-policies/deployment-policy-application-update-test.json
new file mode 100644
index 0000000..647322b
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-update-test/deployment-policies/deployment-policy-application-update-test.json
@@ -0,0 +1,32 @@
+{
+ "id": "deployment-policy-application-update-test",
+ "networkPartitions": [
+ {
+ "id": "network-partition-application-update-test-1",
+ "partitionAlgo": "one-after-another",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "partitionMax": 20
+ }
+ ]
+ },
+ {
+ "id": "network-partition-application-update-test-2",
+ "partitionAlgo": "round-robin",
+ "partitions": [
+ {
+ "id": "network-partition-2-partition-1",
+ "partitionMax": 10
+ },
+ {
+ "id": "network-partition-2-partition-2",
+ "partitionMax": 9
+ }
+ ]
+ }
+ ]
+}
+
+
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-update-test/network-partitions/mock/network-partition-application-update-test-1-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-update-test/network-partitions/mock/network-partition-application-update-test-1-v1.json b/products/stratos/modules/integration/src/test/resources/application-update-test/network-partitions/mock/network-partition-application-update-test-1-v1.json
new file mode 100644
index 0000000..aaa3f04
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-update-test/network-partitions/mock/network-partition-application-update-test-1-v1.json
@@ -0,0 +1,28 @@
+{
+ "id": "network-partition-application-update-test-1",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ },
+ {
+ "id": "partition-2",
+ "property": [
+ {
+ "name": "region",
+ "value": "default1"
+ },
+ {
+ "name": "zone",
+ "value": "z1"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-update-test/network-partitions/mock/network-partition-application-update-test-1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-update-test/network-partitions/mock/network-partition-application-update-test-1.json b/products/stratos/modules/integration/src/test/resources/application-update-test/network-partitions/mock/network-partition-application-update-test-1.json
new file mode 100644
index 0000000..f1822af
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-update-test/network-partitions/mock/network-partition-application-update-test-1.json
@@ -0,0 +1,15 @@
+{
+ "id": "network-partition-application-update-test-1",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-update-test/network-partitions/mock/network-partition-application-update-test-2.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-update-test/network-partitions/mock/network-partition-application-update-test-2.json b/products/stratos/modules/integration/src/test/resources/application-update-test/network-partitions/mock/network-partition-application-update-test-2.json
new file mode 100644
index 0000000..19ddd83
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-update-test/network-partitions/mock/network-partition-application-update-test-2.json
@@ -0,0 +1,24 @@
+{
+ "id": "network-partition-application-update-test-2",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "network-partition-2-partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ },
+ {
+ "id": "network-partition-2-partition-2",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/autoscaling-policy-test/autoscaling-policies/autoscaling-policy-autoscaling-policy-test-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/autoscaling-policy-test/autoscaling-policies/autoscaling-policy-autoscaling-policy-test-v1.json b/products/stratos/modules/integration/src/test/resources/autoscaling-policy-test/autoscaling-policies/autoscaling-policy-autoscaling-policy-test-v1.json
new file mode 100644
index 0000000..d29a8e3
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/autoscaling-policy-test/autoscaling-policies/autoscaling-policy-autoscaling-policy-test-v1.json
@@ -0,0 +1,14 @@
+{
+ "id": "autoscaling-policy-autoscaling-policy-test",
+ "loadThresholds": {
+ "requestsInFlight": {
+ "threshold": 30
+ },
+ "memoryConsumption": {
+ "threshold": 40
+ },
+ "loadAverage": {
+ "threshold": 20
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/autoscaling-policy-test/autoscaling-policies/autoscaling-policy-autoscaling-policy-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/autoscaling-policy-test/autoscaling-policies/autoscaling-policy-autoscaling-policy-test.json b/products/stratos/modules/integration/src/test/resources/autoscaling-policy-test/autoscaling-policies/autoscaling-policy-autoscaling-policy-test.json
new file mode 100644
index 0000000..dce4c7a
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/autoscaling-policy-test/autoscaling-policies/autoscaling-policy-autoscaling-policy-test.json
@@ -0,0 +1,14 @@
+{
+ "id": "autoscaling-policy-autoscaling-policy-test",
+ "loadThresholds": {
+ "requestsInFlight": {
+ "threshold": 35
+ },
+ "memoryConsumption": {
+ "threshold": 45
+ },
+ "loadAverage": {
+ "threshold": 25
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges-groups/g4-g5-g6-cartridge-group-test-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges-groups/g4-g5-g6-cartridge-group-test-v1.json b/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges-groups/g4-g5-g6-cartridge-group-test-v1.json
new file mode 100644
index 0000000..38a976a
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges-groups/g4-g5-g6-cartridge-group-test-v1.json
@@ -0,0 +1,50 @@
+{
+ "name": "G4-cartridge-group-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-none",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.group2-cartridge-group-test",
+ "cartridge.c1-1x0-cartridge-group-test"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c4-cartridge-group-test"
+ ],
+ "groups": [
+ {
+ "name": "G5-cartridge-group-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-dependents",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.group6-cartridge-group-test",
+ "cartridge.c5-1x0-cartridge-group-test"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c5-cartridge-group-test"
+ ],
+ "groups": [
+ {
+ "name": "G6-cartridge-group-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-all",
+ "startupOrders": []
+ },
+ "cartridges": [
+ "c6-cartridge-group-test"
+ ],
+ "groups": []
+ }
+ ]
+ }
+ ]
+}
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges-groups/g4-g5-g6-cartridge-group-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges-groups/g4-g5-g6-cartridge-group-test.json b/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges-groups/g4-g5-g6-cartridge-group-test.json
new file mode 100644
index 0000000..741efe0
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges-groups/g4-g5-g6-cartridge-group-test.json
@@ -0,0 +1,50 @@
+{
+ "name": "G4-cartridge-group-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-none",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.group5-cartridge-group-test",
+ "cartridge.c4-1x0-cartridge-group-test"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c4-cartridge-group-test"
+ ],
+ "groups": [
+ {
+ "name": "G5-cartridge-group-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-dependents",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.group6-cartridge-group-test",
+ "cartridge.c5-1x0-cartridge-group-test"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c5-cartridge-group-test"
+ ],
+ "groups": [
+ {
+ "name": "G6-cartridge-group-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-all",
+ "startupOrders": []
+ },
+ "cartridges": [
+ "c6-cartridge-group-test"
+ ],
+ "groups": []
+ }
+ ]
+ }
+ ]
+}
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c4-cartridge-group-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c4-cartridge-group-test.json b/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c4-cartridge-group-test.json
new file mode 100755
index 0000000..f34c1c4
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c4-cartridge-group-test.json
@@ -0,0 +1,45 @@
+{
+ "type": "c4-cartridge-group-test",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c4-cartridge-group-test",
+ "description": "c4-cartridge-group-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "name": "http-22",
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c5-cartridge-group-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c5-cartridge-group-test.json b/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c5-cartridge-group-test.json
new file mode 100755
index 0000000..9c236a0
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c5-cartridge-group-test.json
@@ -0,0 +1,124 @@
+{
+ "category": "Application",
+ "description": "c5-cartridge-group-test Cartridge",
+ "displayName": "c5-cartridge-group-test",
+ "host": "qmog.cisco.com",
+ "iaasProvider": [
+ {
+ "imageId": "RegionOne/16e7e35b-0c88-4605-90ce-cbef9e9dde0f",
+ "maxInstanceLimit": "4",
+ "networkInterfaces": [
+ {
+ "floatingNetworks": [
+ {
+ "name": "public",
+ "networkUuid": "26b4aa2b-06bc-4e4f-a6eb-c19fbc211af6"
+ }
+ ],
+ "name": "core",
+ "networkUuid": "5e107fbd-4820-47ad-84ea-6f135496f889"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/2cdbd576-8c9b-4c2d-8b1a-0f79dc4fb809"
+ },
+ {
+ "name": "keyPair",
+ "value": "phoenix"
+ },
+ {
+ "name": "autoAssignIp",
+ "value": "false"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ],
+ "type": "mock"
+ }
+ ],
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "port": "22",
+ "protocol": "http",
+ "proxyPort": "8280"
+ }
+ ],
+ "property": [
+ {
+ "name": "payload_parameter.MB_IP",
+ "value": "octl.qmog.cisco.com"
+ },
+ {
+ "name": "payload_parameter.MB_PORT",
+ "value": "61616"
+ },
+ {
+ "name": "payload_parameter.CEP_IP",
+ "value": "octl.qmog.cisco.com"
+ },
+ {
+ "name": "payload_parameter.CEP_PORT",
+ "value": "7611"
+ },
+ {
+ "name": "payload_parameter.CEP_ADMIN_USERNAME",
+ "value": "admin"
+ },
+ {
+ "name": "payload_parameter.CEP_ADMIN_PASSWORD",
+ "value": "admin"
+ },
+ {
+ "name": "payload_parameter.CERT_TRUSTSTORE",
+ "value": "/opt/apache-stratos-cartridge-agent/security/client-truststore.jks"
+ },
+ {
+ "name": "payload_parameter.TRUSTSTORE_PASSWORD",
+ "value": "wso2carbon"
+ },
+ {
+ "name": "payload_parameter.ENABLE_DATA_PUBLISHER",
+ "value": "false"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_IP",
+ "value": "octl.qmog.cisco.com"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_PORT",
+ "value": "7611"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_SECURE_PORT",
+ "value": "7711"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_ADMIN_USERNAME",
+ "value": "admin"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_ADMIN_PASSWORD",
+ "value": "admin"
+ },
+ {
+ "name": "payload_parameter.QTCM_DNS_SEGMENT",
+ "value": "test"
+ },
+ {
+ "name": "payload_parameter.QTCM_NETWORK_COUNT",
+ "value": "1"
+ },
+ {
+ "name": "payload_parameter.SIMPLE_PROPERTY",
+ "value": "value"
+ }
+ ],
+ "provider": "cisco",
+ "type": "c5-cartridge-group-test",
+ "version": "1.0"
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c6-cartridge-group-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c6-cartridge-group-test.json b/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c6-cartridge-group-test.json
new file mode 100755
index 0000000..4bfcca6
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/cartridge-group-test/cartridges/mock/c6-cartridge-group-test.json
@@ -0,0 +1,45 @@
+{
+ "type": "c6-cartridge-group-test",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c6-cartridge-group-test",
+ "description": "c6-cartridge-group-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "name": "http-22",
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-cartridge-group-test-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6-cartridge-group-testd6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/cartridge-test/cartridges/mock/c0-cartridge-test-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/cartridge-test/cartridges/mock/c0-cartridge-test-v1.json b/products/stratos/modules/integration/src/test/resources/cartridge-test/cartridges/mock/c0-cartridge-test-v1.json
new file mode 100755
index 0000000..eb2cb3e
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/cartridge-test/cartridges/mock/c0-cartridge-test-v1.json
@@ -0,0 +1,124 @@
+{
+ "category": "Data",
+ "description": "c0-cartridge-test Cartridge",
+ "displayName": "c0-cartridge-test",
+ "host": "qmog.cisco.com12",
+ "iaasProvider": [
+ {
+ "imageId": "RegionOne/16e7e35b-0c88-4605-90ce-cbef9e9d123",
+ "maxInstanceLimit": "4",
+ "networkInterfaces": [
+ {
+ "floatingNetworks": [
+ {
+ "name": "private",
+ "networkUuid": "26b4aa2b-06bc-4e4f-a6eb-c19fbc2112121"
+ }
+ ],
+ "name": "core1",
+ "networkUuid": "5e107fbd-4820-47ad-84ea-6f1354961212"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/2cdbd576-8c9b-4c2d-8b1a-0f79dc4fb812"
+ },
+ {
+ "name": "keyPair",
+ "value": "phoenix12"
+ },
+ {
+ "name": "autoAssignIp",
+ "value": "true"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default123"
+ }
+ ],
+ "type": "mock"
+ }
+ ],
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "port": "22",
+ "protocol": "http",
+ "proxyPort": "8280"
+ }
+ ],
+ "property": [
+ {
+ "name": "payload_parameter.MB_IP",
+ "value": "octl.qmog.cisco.com123"
+ },
+ {
+ "name": "payload_parameter.MB_PORT",
+ "value": "61617"
+ },
+ {
+ "name": "payload_parameter.CEP_IP",
+ "value": "octl.qmog.cisco.com123"
+ },
+ {
+ "name": "payload_parameter.CEP_PORT",
+ "value": "7612"
+ },
+ {
+ "name": "payload_parameter.CEP_ADMIN_USERNAME",
+ "value": "admin"
+ },
+ {
+ "name": "payload_parameter.CEP_ADMIN_PASSWORD",
+ "value": "admin123"
+ },
+ {
+ "name": "payload_parameter.CERT_TRUSTSTORE",
+ "value": "/opt/apache-stratos-cartridge-agent/security/client-truststore.jks"
+ },
+ {
+ "name": "payload_parameter.TRUSTSTORE_PASSWORD",
+ "value": "wso2carbon"
+ },
+ {
+ "name": "payload_parameter.ENABLE_DATA_PUBLISHER",
+ "value": "false"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_IP",
+ "value": "octl.qmog.cisco.com123"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_PORT",
+ "value": "7612"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_SECURE_PORT",
+ "value": "7712"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_ADMIN_USERNAME",
+ "value": "admin"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_ADMIN_PASSWORD",
+ "value": "admin123"
+ },
+ {
+ "name": "payload_parameter.QTCM_DNS_SEGMENT",
+ "value": "test123"
+ },
+ {
+ "name": "payload_parameter.QTCM_NETWORK_COUNT",
+ "value": "3"
+ },
+ {
+ "name": "payload_parameter.SIMPLE_PROPERTY",
+ "value": "value"
+ }
+ ],
+ "provider": "apache",
+ "type": "c0-cartridge-test",
+ "version": "1.0"
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/cartridge-test/cartridges/mock/c0-cartridge-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/cartridge-test/cartridges/mock/c0-cartridge-test.json b/products/stratos/modules/integration/src/test/resources/cartridge-test/cartridges/mock/c0-cartridge-test.json
new file mode 100755
index 0000000..056d510
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/cartridge-test/cartridges/mock/c0-cartridge-test.json
@@ -0,0 +1,124 @@
+{
+ "category": "Application",
+ "description": "c0-cartridge-test Cartridge",
+ "displayName": "c0-cartridge-test",
+ "host": "qmog.cisco.com",
+ "iaasProvider": [
+ {
+ "imageId": "RegionOne/16e7e35b-0c88-4605-90ce-cbef9e9dde0f",
+ "maxInstanceLimit": "4",
+ "networkInterfaces": [
+ {
+ "floatingNetworks": [
+ {
+ "name": "public",
+ "networkUuid": "26b4aa2b-06bc-4e4f-a6eb-c19fbc211af6"
+ }
+ ],
+ "name": "core",
+ "networkUuid": "5e107fbd-4820-47ad-84ea-6f135496f889"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/2cdbd576-8c9b-4c2d-8b1a-0f79dc4fb809"
+ },
+ {
+ "name": "keyPair",
+ "value": "phoenix"
+ },
+ {
+ "name": "autoAssignIp",
+ "value": "false"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ],
+ "type": "mock"
+ }
+ ],
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "port": "22",
+ "protocol": "http",
+ "proxyPort": "8280"
+ }
+ ],
+ "property": [
+ {
+ "name": "payload_parameter.MB_IP",
+ "value": "octl.qmog.cisco.com"
+ },
+ {
+ "name": "payload_parameter.MB_PORT",
+ "value": "61616"
+ },
+ {
+ "name": "payload_parameter.CEP_IP",
+ "value": "octl.qmog.cisco.com"
+ },
+ {
+ "name": "payload_parameter.CEP_PORT",
+ "value": "7611"
+ },
+ {
+ "name": "payload_parameter.CEP_ADMIN_USERNAME",
+ "value": "admin"
+ },
+ {
+ "name": "payload_parameter.CEP_ADMIN_PASSWORD",
+ "value": "admin"
+ },
+ {
+ "name": "payload_parameter.CERT_TRUSTSTORE",
+ "value": "/opt/apache-stratos-cartridge-agent/security/client-truststore.jks"
+ },
+ {
+ "name": "payload_parameter.TRUSTSTORE_PASSWORD",
+ "value": "wso2carbon"
+ },
+ {
+ "name": "payload_parameter.ENABLE_DATA_PUBLISHER",
+ "value": "false"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_IP",
+ "value": "octl.qmog.cisco.com"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_PORT",
+ "value": "7611"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_SECURE_PORT",
+ "value": "7711"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_ADMIN_USERNAME",
+ "value": "admin"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_ADMIN_PASSWORD",
+ "value": "admin"
+ },
+ {
+ "name": "payload_parameter.QTCM_DNS_SEGMENT",
+ "value": "test"
+ },
+ {
+ "name": "payload_parameter.QTCM_NETWORK_COUNT",
+ "value": "1"
+ },
+ {
+ "name": "payload_parameter.SIMPLE_PROPERTY",
+ "value": "value"
+ }
+ ],
+ "provider": "cisco",
+ "type": "c0-cartridge-test",
+ "version": "1.0"
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-deployment-policy-test-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-deployment-policy-test-v1.json b/products/stratos/modules/integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-deployment-policy-test-v1.json
new file mode 100644
index 0000000..6c73878
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-deployment-policy-test-v1.json
@@ -0,0 +1,36 @@
+{
+ "id": "deployment-policy-deployment-policy-test",
+ "networkPartitions": [
+ {
+ "id": "network-partition-deployment-policy-test-1",
+ "partitionAlgo": "one-after-another",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "partitionMax": 25
+ },
+ {
+ "id": "partition-2",
+ "partitionMax": 20
+ }
+ ]
+ },
+ {
+ "id": "network-partition-deployment-policy-test-2",
+ "partitionAlgo": "round-robin",
+ "partitions": [
+ {
+ "id": "network-partition-6-partition-1",
+ "partitionMax": 15
+ },
+ {
+ "id": "network-partition-6-partition-2",
+ "partitionMax": 5
+ }
+ ]
+ }
+ ]
+}
+
+
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-deployment-policy-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-deployment-policy-test.json b/products/stratos/modules/integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-deployment-policy-test.json
new file mode 100644
index 0000000..49b3e0d
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/deployment-policy-test/deployment-policies/deployment-policy-deployment-policy-test.json
@@ -0,0 +1,32 @@
+{
+ "id": "deployment-policy-deployment-policy-test",
+ "networkPartitions": [
+ {
+ "id": "network-partition-deployment-policy-test-1",
+ "partitionAlgo": "one-after-another",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "partitionMax": 20
+ }
+ ]
+ },
+ {
+ "id": "network-partition-deployment-policy-test-2",
+ "partitionAlgo": "round-robin",
+ "partitions": [
+ {
+ "id": "network-partition-6-partition-1",
+ "partitionMax": 10
+ },
+ {
+ "id": "network-partition-6-partition-2",
+ "partitionMax": 9
+ }
+ ]
+ }
+ ]
+}
+
+
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-deployment-policy-test-1-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-deployment-policy-test-1-v1.json b/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-deployment-policy-test-1-v1.json
new file mode 100644
index 0000000..9670e48
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-deployment-policy-test-1-v1.json
@@ -0,0 +1,28 @@
+{
+ "id": "network-partition-deployment-policy-test-1",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ },
+ {
+ "id": "partition-2",
+ "property": [
+ {
+ "name": "region",
+ "value": "default1"
+ },
+ {
+ "name": "zone",
+ "value": "z1"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-deployment-policy-test-1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-deployment-policy-test-1.json b/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-deployment-policy-test-1.json
new file mode 100644
index 0000000..3b420fe
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-deployment-policy-test-1.json
@@ -0,0 +1,15 @@
+{
+ "id": "network-partition-deployment-policy-test-1",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-deployment-policy-test-2.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-deployment-policy-test-2.json b/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-deployment-policy-test-2.json
new file mode 100644
index 0000000..890ee6c
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/deployment-policy-test/network-partitions/mock/network-partition-deployment-policy-test-2.json
@@ -0,0 +1,24 @@
+{
+ "id": "network-partition-deployment-policy-test-2",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "network-partition-6-partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ },
+ {
+ "id": "network-partition-6-partition-2",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/application-policies/application-policy-application-bursting-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/application-policies/application-policy-application-bursting-test.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/application-policies/application-policy-application-bursting-test.json
new file mode 100644
index 0000000..7bc9c2d
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/application-policies/application-policy-application-bursting-test.json
@@ -0,0 +1,18 @@
+{
+ "id": "application-policy-group-startup-order-test",
+ "algorithm": "one-after-another",
+ "networkPartitions": [
+ "network-partition-group-startup-order-test-1",
+ "network-partition-group-startup-order-test-2"
+ ],
+ "properties": [
+ {
+ "name": "networkPartitionGroups",
+ "value": "network-partition-group-startup-order-test-1|network-partition-group-startup-order-test-2"
+ },
+ {
+ "name": "key-2",
+ "value": "value-2"
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/applications/app-bursting-single-cartriddge-group.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/applications/app-bursting-single-cartriddge-group.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/applications/app-bursting-single-cartriddge-group.json
new file mode 100644
index 0000000..db04c61
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/applications/app-bursting-single-cartriddge-group.json
@@ -0,0 +1,70 @@
+{
+ "applicationId": "group-startup-order-test",
+ "alias": "my-cartridge-group-app",
+ "components": {
+ "groups": [
+ {
+ "name": "esb-php-group-group-startup-order-test",
+ "alias": "my-esb-php-group-group-startup-order-test",
+ "deploymentPolicy": "deployment-policy-group-startup-order-test",
+ "groupMinInstances": 1,
+ "groupMaxInstances": 2,
+ "cartridges": [
+ {
+ "type": "esb-group-startup-order-test",
+ "cartridgeMin": 1,
+ "cartridgeMax": 2,
+ "subscribableInfo": {
+ "alias": "my-esb-group-startup-order-test",
+ "autoscalingPolicy": "autoscaling-policy-group-startup-order-test",
+ "artifactRepository": {
+ "privateRepo": false,
+ "repoUrl": "https://github.com/imesh/stratos-esb-applications.git",
+ "repoUsername": "",
+ "repoPassword": ""
+ }
+ }
+ },
+ {
+ "type": "php-group-startup-order-test",
+ "cartridgeMin": 2,
+ "cartridgeMax": 4,
+ "lvsVirtualIP": "192.168.56.50|255.255.255.0",
+ "subscribableInfo": {
+ "alias": "my-php-group-startup-order-test",
+ "autoscalingPolicy": "autoscaling-policy-group-startup-order-test",
+ "artifactRepository": {
+ "privateRepo": false,
+ "repoUrl": "https://github.com/imesh/stratos-php-applications.git",
+ "repoUsername": "",
+ "repoPassword": ""
+ }
+ }
+ }
+ ]
+ }
+ ],
+ "cartridges": [
+ {
+ "type": "tomcat-group-startup-order-test",
+ "cartridgeMin": 2,
+ "cartridgeMax": 4,
+ "subscribableInfo": {
+ "alias": "my-tomcat-group-startup-order-test",
+ "autoscalingPolicy": "autoscaling-policy-group-startup-order-test",
+ "deploymentPolicy": "deployment-policy-group-startup-order-test",
+ "artifactRepository": {
+ "privateRepo": false,
+ "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+ "repoUsername": "",
+ "repoPassword": ""
+ }
+ }
+ }
+ ],
+ "dependencies": {
+ "terminationBehaviour": "terminate-none"
+ }
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/autoscaling-policies/autoscaling-policy-application-bursting-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/autoscaling-policies/autoscaling-policy-application-bursting-test.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/autoscaling-policies/autoscaling-policy-application-bursting-test.json
new file mode 100644
index 0000000..0c6ec97
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/autoscaling-policies/autoscaling-policy-application-bursting-test.json
@@ -0,0 +1,14 @@
+{
+ "id": "autoscaling-policy-group-startup-order-test",
+ "loadThresholds": {
+ "requestsInFlight": {
+ "threshold": 35
+ },
+ "memoryConsumption": {
+ "threshold": 45
+ },
+ "loadAverage": {
+ "threshold": 25
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/cartridges-groups/esb-php-group-application-bursting-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/cartridges-groups/esb-php-group-application-bursting-test.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/cartridges-groups/esb-php-group-application-bursting-test.json
new file mode 100644
index 0000000..9c7d997
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/cartridges-groups/esb-php-group-application-bursting-test.json
@@ -0,0 +1,19 @@
+{
+ "name": "esb-php-group-group-startup-order-test",
+ "cartridges": [
+ "esb-group-startup-order-test",
+ "php-group-startup-order-test"
+ ],
+ "dependencies": {
+ "startupOrders": [
+ {
+ "aliases": [
+ "cartridge.my-esb-group-startup-order-test",
+ "cartridge.my-php-group-startup-order-test"
+ ]
+ }
+ ],
+ "terminationBehaviour": "terminate-none"
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/cartridges/mock/esb-application-bursting-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/cartridges/mock/esb-application-bursting-test.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/cartridges/mock/esb-application-bursting-test.json
new file mode 100755
index 0000000..b6f428e
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/cartridges/mock/esb-application-bursting-test.json
@@ -0,0 +1,50 @@
+{
+ "type": "esb-group-startup-order-test",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "framework",
+ "displayName": "esb-group-startup-order-test",
+ "description": "esb-group-startup-order-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "name": "http-22",
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ],
+ "metadataKeys": [
+ "server_ip",
+ "username",
+ "password"
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/cartridges/mock/php-application-bursting-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/cartridges/mock/php-application-bursting-test.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/cartridges/mock/php-application-bursting-test.json
new file mode 100755
index 0000000..95f78a5
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/cartridges/mock/php-application-bursting-test.json
@@ -0,0 +1,51 @@
+{
+ "type": "php-group-startup-order-test",
+ "provider": "apache",
+ "category": "framework",
+ "host": "php.stratos.org",
+ "displayName": "php-group-startup-order-test",
+ "description": "php-group-startup-order-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "name": "http-80",
+ "protocol": "http",
+ "port": "8080",
+ "proxyPort": "8280"
+ },
+ {
+ "name": "http-22",
+ "protocol": "tcp",
+ "port": "22",
+ "proxyPort": "8222"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "reka"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
[03/11] stratos git commit: Merge the latest changes of integration
test from master branch
Posted by ga...@apache.org.
Merge the latest changes of integration test from master branch
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/6c6f4cc3
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/6c6f4cc3
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/6c6f4cc3
Branch: refs/heads/tenant-isolation
Commit: 6c6f4cc3fa9771f8883eaf4e5c27e81d1f85be6b
Parents: 96899f7
Author: Gayan Gunarathne <ga...@wso2.com>
Authored: Wed Aug 12 17:45:08 2015 +0530
Committer: Gayan Gunarathne <ga...@wso2.com>
Committed: Wed Aug 12 17:45:08 2015 +0530
----------------------------------------------------------------------
products/stratos/modules/integration/pom.xml | 11 +-
.../integration/tests/RestConstants.java | 6 -
.../tests/StratosTestServerManager.java | 18 +-
.../integration/tests/TopologyHandler.java | 175 +++++++-
.../application/ApplicationBurstingTest.java | 98 ++---
.../application/SampleApplicationsTest.java | 409 ++++++-------------
.../application/SingleClusterScalingTest.java | 193 ++++-----
.../tests/config/ApplicationBean.java | 25 --
.../tests/config/ApplicationConfigParser.java | 25 --
.../tests/group/CartridgeGroupTest.java | 78 ++--
.../integration/tests/group/CartridgeTest.java | 14 +-
.../tests/policies/ApplicationPolicyTest.java | 40 +-
.../tests/policies/AutoscalingPolicyTest.java | 12 +-
.../tests/policies/DeploymentPolicyTest.java | 111 ++---
.../tests/policies/NetworkPartitionTest.java | 37 +-
.../integration/tests/rest/RestClient.java | 22 +-
.../application-policy-3.json | 18 -
.../app-bursting-single-cartriddge-group.json | 28 +-
.../autoscaling-policy-2.json | 14 -
.../cartridges-groups/esb-php-group.json | 19 -
.../cartridges/mock/esb.json | 50 ---
.../cartridges/mock/php.json | 51 ---
.../cartridges/mock/tomcat.json | 53 ---
.../deployment-policy-4.json | 32 --
.../mock/network-partition-10.json | 24 --
.../mock/network-partition-9.json | 15 -
.../application-policy-2.json | 18 -
.../mock/network-partition-7.json | 15 -
.../mock/network-partition-8.json | 24 --
.../autoscaling-policy-c0-v1.json | 14 -
.../autoscaling-policy-c0.json | 14 -
.../cartridges-groups/g4-g5-g6-v1.json | 50 ---
.../cartridges-groups/g4-g5-g6.json | 50 ---
.../cartridges/mock/c4.json | 45 --
.../cartridges/mock/c5.json | 124 ------
.../cartridges/mock/c6.json | 45 --
.../cartridge-test/cartridges/mock/c0-v1.json | 124 ------
.../cartridge-test/cartridges/mock/c0.json | 124 ------
.../deployment-policy-2-v1.json | 36 --
.../deployment-policy-2.json | 32 --
.../mock/network-partition-5-v1.json | 28 --
.../mock/network-partition-5.json | 15 -
.../mock/network-partition-6.json | 24 --
.../src/test/resources/mock-iaas.xml | 42 +-
.../mock/network-partition-3-v1.json | 28 --
.../mock/network-partition-3.json | 15 -
.../application-policy-1.json | 18 -
.../applications/g-sc-G123-1-v1.json | 86 ----
.../applications/g-sc-G123-1-v2.json | 86 ----
.../applications/g-sc-G123-1-v3.json | 86 ----
.../applications/g-sc-G123-1.json | 86 ----
.../autoscaling-policy-1.json | 14 -
.../cartridges-groups/cartrdige-nested-v1.json | 50 ---
.../cartridges-groups/cartrdige-nested.json | 50 ---
.../cartridges/mock/c1.json | 45 --
.../cartridges/mock/c2.json | 45 --
.../cartridges/mock/c3.json | 45 --
.../deployment-policy-1-v1.json | 36 --
.../deployment-policy-1.json | 32 --
.../mock/network-partition-1-v1.json | 28 --
.../mock/network-partition-1.json | 15 -
.../mock/network-partition-2.json | 24 --
.../src/test/resources/stratos-testing.xml | 18 +-
.../src/test/resources/tenant/tenant1.json | 9 -
.../src/test/resources/tenant/tenant2.json | 9 -
65 files changed, 680 insertions(+), 2547 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/pom.xml
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/pom.xml b/products/stratos/modules/integration/pom.xml
index edca877..ab6fa04 100755
--- a/products/stratos/modules/integration/pom.xml
+++ b/products/stratos/modules/integration/pom.xml
@@ -95,7 +95,13 @@
<dependency>
<groupId>org.apache.stratos</groupId>
<artifactId>org.apache.stratos.messaging</artifactId>
- <version>4.1.0-SNAPSHOT</version>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.stratos</groupId>
+ <artifactId>org.apache.stratos.mock.iaas.client</artifactId>
+ <version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
@@ -117,6 +123,9 @@
<extracted.dir>stratos-parent-${project.version}</extracted.dir>
<emma.home>${basedir}/target/emma</emma.home>
</systemProperties>
+ <suiteXmlFiles>
+ <suiteXmlFile>src/test/resources/stratos-testing.xml</suiteXmlFile>
+ </suiteXmlFiles>
<workingDirectory>${basedir}/target</workingDirectory>
</configuration>
</plugin>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/RestConstants.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/RestConstants.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/RestConstants.java
index 747a131..bf7de6c 100644
--- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/RestConstants.java
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/RestConstants.java
@@ -49,10 +49,4 @@ public class RestConstants {
public static final String APPLICATION_POLICIES_PATH = "/application-policies/";
public static final String APPLICATION_POLICIES_NAME = "applicationPolicy";
- public static final String TENANT1_RESOURCE ="/tenant/tenant1.json";
- public static final String TENANT2_RESOURCE ="/tenant/tenant2.json";
- public static final String TENANT_API = "/" + API + "/tenants";
- public static final String TENANTS_NAME = "tenants";
-
-
}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/StratosTestServerManager.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/StratosTestServerManager.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/StratosTestServerManager.java
index 13fcb5d..f191743 100755
--- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/StratosTestServerManager.java
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/StratosTestServerManager.java
@@ -27,9 +27,10 @@ import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.stratos.common.test.TestLogAppender;
import org.apache.stratos.integration.tests.application.SampleApplicationsTest;
+import org.apache.stratos.integration.tests.rest.IntegrationMockClient;
import org.apache.stratos.integration.tests.rest.RestClient;
+import org.apache.stratos.mock.iaas.client.MockIaasApiClient;
import org.testng.annotations.AfterSuite;
-import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeSuite;
import org.wso2.carbon.integration.framework.TestServerManager;
import org.wso2.carbon.integration.framework.utils.FrameworkSettings;
@@ -40,7 +41,6 @@ import java.io.File;
import java.io.IOException;
import java.net.URL;
-import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNotNull;
/**
@@ -57,7 +57,6 @@ public class StratosTestServerManager extends TestServerManager {
private static final String MOCK_IAAS_XML_FILE = "mock-iaas.xml";
private static final String JNDI_PROPERTIES_FILE = "jndi.properties";
private static final String JMS_OUTPUT_ADAPTER_FILE = "JMSOutputAdaptor.xml";
- protected RestClient restClientAdmin;
protected RestClient restClient;
private String endpoint = "https://localhost:9443";
@@ -65,12 +64,13 @@ public class StratosTestServerManager extends TestServerManager {
private TestLogAppender testLogAppender = new TestLogAppender();
private ServerUtils serverUtils;
private String carbonHome;
+ protected IntegrationMockClient mockIaasApiClient;
public StratosTestServerManager() {
super(CARBON_ZIP, PORT_OFFSET);
serverUtils = new ServerUtils();
- restClientAdmin=new RestClient(endpoint,"admin","admin");
restClient = new RestClient(endpoint, "admin", "admin");
+ mockIaasApiClient = new IntegrationMockClient(endpoint + "/mock-iaas/api");
}
@Override
@@ -127,7 +127,6 @@ public class StratosTestServerManager extends TestServerManager {
long time4 = System.currentTimeMillis();
log.info(String.format("Stratos server started in %d sec", (time4 - time3) / 1000));
- tenantCreation();
return carbonHome;
}
}
@@ -198,13 +197,4 @@ public class StratosTestServerManager extends TestServerManager {
}
return false;
}
-
-
- public void tenantCreation(){
- log.info("Added tenants to the testing suit");
- boolean addedTenant1=restClientAdmin.addEntity(RestConstants.TENANT1_RESOURCE,RestConstants.TENANT_API,RestConstants.TENANTS_NAME);
- assertEquals(addedTenant1,true);
- boolean addedTenant2=restClientAdmin.addEntity(RestConstants.TENANT2_RESOURCE,RestConstants.TENANT_API,RestConstants.TENANTS_NAME);
- assertEquals(addedTenant2,true);
- }
}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/TopologyHandler.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/TopologyHandler.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/TopologyHandler.java
index 2ff1cc5..fb0718d 100644
--- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/TopologyHandler.java
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/TopologyHandler.java
@@ -24,6 +24,7 @@ import org.apache.commons.logging.LogFactory;
import org.apache.stratos.autoscaler.stub.pojo.ApplicationContext;
import org.apache.stratos.common.client.AutoscalerServiceClient;
import org.apache.stratos.common.threading.StratosThreadPool;
+import org.apache.stratos.integration.tests.rest.IntegrationMockClient;
import org.apache.stratos.messaging.domain.application.*;
import org.apache.stratos.messaging.domain.instance.ClusterInstance;
import org.apache.stratos.messaging.domain.instance.GroupInstance;
@@ -31,7 +32,13 @@ import org.apache.stratos.messaging.domain.topology.Cluster;
import org.apache.stratos.messaging.domain.topology.Member;
import org.apache.stratos.messaging.domain.topology.MemberStatus;
import org.apache.stratos.messaging.domain.topology.Service;
-import org.apache.stratos.messaging.listener.topology.MemberInitializedEventListener;
+import org.apache.stratos.messaging.event.Event;
+import org.apache.stratos.messaging.event.application.GroupInstanceCreatedEvent;
+import org.apache.stratos.messaging.event.topology.ClusterInstanceCreatedEvent;
+import org.apache.stratos.messaging.event.topology.MemberCreatedEvent;
+import org.apache.stratos.messaging.event.topology.MemberTerminatedEvent;
+import org.apache.stratos.messaging.listener.application.*;
+import org.apache.stratos.messaging.listener.topology.*;
import org.apache.stratos.messaging.message.receiver.application.ApplicationManager;
import org.apache.stratos.messaging.message.receiver.application.ApplicationsEventReceiver;
import org.apache.stratos.messaging.message.receiver.topology.TopologyEventReceiver;
@@ -40,12 +47,12 @@ import org.apache.stratos.messaging.message.receiver.topology.TopologyManager;
import java.io.File;
import java.rmi.RemoteException;
import java.util.Collection;
+import java.util.Map;
import java.util.Set;
+import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutorService;
-import static junit.framework.Assert.assertEquals;
-import static junit.framework.Assert.assertNotNull;
-import static junit.framework.Assert.assertNull;
+import static junit.framework.Assert.*;
/**
* To start the Topology receivers
@@ -53,13 +60,18 @@ import static junit.framework.Assert.assertNull;
public class TopologyHandler {
private static final Log log = LogFactory.getLog(TopologyHandler.class);
- public static final int APPLICATION_ACTIVATION_TIMEOUT = 120000;
+ public static final int APPLICATION_ACTIVATION_TIMEOUT = 300000;
+ public static final int APPLICATION_UNDEPLOYMENT_TIMEOUT = 60000;
public static final int APPLICATION_TOPOLOGY_TIMEOUT = 60000;
public static final String APPLICATION_STATUS_CREATED = "Created";
public static final String APPLICATION_STATUS_UNDEPLOYING = "Undeploying";
private ApplicationsEventReceiver applicationsEventReceiver;
private TopologyEventReceiver topologyEventReceiver;
public static TopologyHandler topologyHandler;
+ private Map<String, Map<String, Long>> terminatedNodes = new ConcurrentHashMap<String, Map<String, Long>>();
+ private Map<String, Long> terminatedMembers = new ConcurrentHashMap<String, Long>();
+ private Map<String, Map<String, Long>> createdNodes = new ConcurrentHashMap<String, Map<String, Long>>();
+ private Map<String, Map<String, Long>> activeNodes = new ConcurrentHashMap<String, Map<String, Long>>();
private TopologyHandler() {
// Set jndi.properties.dir system property for initializing event receivers
@@ -69,6 +81,7 @@ public class TopologyHandler {
initializeTopologyEventReceiver();
assertApplicationTopologyInitialized();
assertTopologyInitialized();
+ addTopologyEventListeners();
}
public static TopologyHandler getInstance() {
@@ -150,10 +163,10 @@ public class TopologyHandler {
*
* @param applicationName
*/
- public void assertApplicationActivation(String applicationName) {
+ public void assertApplicationStatus(String applicationName, ApplicationStatus status) {
long startTime = System.currentTimeMillis();
Application application = ApplicationManager.getApplications().getApplicationByTenant(applicationName,-1234);
- while (!((application != null) && (application.getStatus() == ApplicationStatus.Active))) {
+ while (!((application != null) && (application.getStatus() == status))) {
try {
Thread.sleep(1000);
} catch (InterruptedException ignore) {
@@ -164,8 +177,9 @@ public class TopologyHandler {
}
}
assertNotNull(String.format("Application is not found: [application-id] %s", applicationName), application);
- assertEquals(String.format("Application status did not change to active: [application-id] %s", applicationName),
- ApplicationStatus.Active, application.getStatus());
+ assertEquals(String.format("Application status did not change to %s: [application-id] %s",
+ status.toString(), applicationName),
+ status, application.getStatus());
}
/**
@@ -228,6 +242,53 @@ public class TopologyHandler {
}
+ /**
+ * Assert application activation
+ *
+ * @param applicationName
+ */
+ public void terminateMemberFromCluster(String cartridgeName, String applicationName, IntegrationMockClient mockIaasApiClient) {
+ Application application = ApplicationManager.getApplications().getApplicationByTenant(applicationName,-1234);
+ assertNotNull(String.format("Application is not found: [application-id] %s",
+ applicationName), application);
+
+ Set<ClusterDataHolder> clusterDataHolderSet = application.getClusterDataRecursively();
+ for (ClusterDataHolder clusterDataHolder : clusterDataHolderSet) {
+ String serviceName = clusterDataHolder.getServiceType();
+ if(cartridgeName.equals(serviceName)) {
+ String clusterId = clusterDataHolder.getClusterId();
+ Service service = TopologyManager.getTopology().getService(serviceName);
+ assertNotNull(String.format("Service is not found: [application-id] %s [service] %s",
+ applicationName, serviceName), service);
+
+ Cluster cluster = service.getCluster(clusterId);
+ assertNotNull(String.format("Cluster is not found: [application-id] %s [service] %s [cluster-id] %s",
+ applicationName, serviceName, clusterId), cluster);
+ boolean memberTerminated = false;
+
+ for (ClusterInstance instance : cluster.getInstanceIdToInstanceContextMap().values()) {
+ for (Member member : cluster.getMembers()) {
+ if (member.getClusterInstanceId().equals(instance.getInstanceId())) {
+ if (member.getStatus().equals(MemberStatus.Active)) {
+ mockIaasApiClient.terminateInstance(member.getMemberId());
+ memberTerminated = true;
+ break;
+ }
+ }
+ }
+
+ if(memberTerminated) {
+ break;
+ }
+
+ }
+ assertTrue("Any member couldn't be terminated from the mock IaaS client", memberTerminated);
+ }
+
+ }
+
+ }
+
public void assertClusterMinMemberCount(String applicationName, int minMembers) {
long startTime = System.currentTimeMillis();
@@ -319,7 +380,7 @@ public class TopologyHandler {
} catch (RemoteException e) {
log.error("Error while getting the application context for [application] " + applicationName);
}
- if ((System.currentTimeMillis() - startTime) > APPLICATION_ACTIVATION_TIMEOUT) {
+ if ((System.currentTimeMillis() - startTime) > APPLICATION_UNDEPLOYMENT_TIMEOUT) {
break;
}
}
@@ -390,4 +451,98 @@ public class TopologyHandler {
String path = getClass().getResource("/").getPath();
return StringUtils.removeEnd(path, File.separator);
}
+
+ private void addTopologyEventListeners() {
+ topologyEventReceiver.addEventListener(new MemberTerminatedEventListener() {
+ @Override
+ protected void onEvent(Event event) {
+ MemberTerminatedEvent memberTerminatedEvent = (MemberTerminatedEvent) event;
+ terminatedMembers.put(memberTerminatedEvent.getMemberId(), System.currentTimeMillis());
+
+ }
+ });
+
+ topologyEventReceiver.addEventListener(new MemberCreatedEventListener() {
+ @Override
+ protected void onEvent(Event event) {
+
+
+ }
+ });
+
+ topologyEventReceiver.addEventListener(new ClusterInstanceCreatedEventListener() {
+ @Override
+ protected void onEvent(Event event) {
+ ClusterInstanceCreatedEvent event1 = (ClusterInstanceCreatedEvent) event;
+
+ }
+ });
+
+ topologyEventReceiver.addEventListener(new ClusterInstanceActivatedEventListener() {
+ @Override
+ protected void onEvent(Event event) {
+
+ }
+ });
+
+ topologyEventReceiver.addEventListener(new ClusterInstanceInactivateEventListener() {
+ @Override
+ protected void onEvent(Event event) {
+
+ }
+ });
+
+ topologyEventReceiver.addEventListener(new ClusterInstanceTerminatedEventListener() {
+ @Override
+ protected void onEvent(Event event) {
+
+ }
+ });
+
+
+ }
+
+ private void addApplicationEventListeners() {
+ applicationsEventReceiver.addEventListener(new ApplicationInstanceCreatedEventListener() {
+ @Override
+ protected void onEvent(Event event) {
+
+
+ }
+ });
+
+ applicationsEventReceiver.addEventListener(new GroupInstanceCreatedEventListener() {
+ @Override
+ protected void onEvent(Event event) {
+ GroupInstanceCreatedEvent event1 = (GroupInstanceCreatedEvent) event;
+ String appId = event1.getAppId();
+ String id = event1.getGroupId();
+ String instanceId = event1.getGroupInstance().getInstanceId();
+
+ }
+ });
+
+
+
+ applicationsEventReceiver.addEventListener(new GroupInstanceActivatedEventListener() {
+ @Override
+ protected void onEvent(Event event) {
+
+ }
+ });
+
+ applicationsEventReceiver.addEventListener(new GroupInstanceInactivateEventListener() {
+ @Override
+ protected void onEvent(Event event) {
+
+ }
+ });
+
+ applicationsEventReceiver.addEventListener(new GroupInstanceTerminatedEventListener() {
+ @Override
+ protected void onEvent(Event event) {
+
+ }
+ });
+ }
}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/ApplicationBurstingTest.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/ApplicationBurstingTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/ApplicationBurstingTest.java
index a1f2c6a..6c62056 100644
--- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/ApplicationBurstingTest.java
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/ApplicationBurstingTest.java
@@ -26,6 +26,7 @@ import org.apache.stratos.common.beans.policy.deployment.ApplicationPolicyBean;
import org.apache.stratos.integration.tests.RestConstants;
import org.apache.stratos.integration.tests.StratosTestServerManager;
import org.apache.stratos.integration.tests.TopologyHandler;
+import org.apache.stratos.messaging.domain.application.ApplicationStatus;
import org.testng.annotations.Test;
import static junit.framework.Assert.assertEquals;
@@ -36,86 +37,87 @@ import static junit.framework.Assert.assertTrue;
*/
public class ApplicationBurstingTest extends StratosTestServerManager {
private static final Log log = LogFactory.getLog(SampleApplicationsTest.class);
- private static final String TEST_PATH = "/application-bursting-test";
+ private static final String RESOURCES_PATH = "/application-bursting-test";
@Test
public void testApplicationBusting() {
try {
- log.info("Started application Bursting test case**************************************");
+ log.info("-------------------------------Started application Bursting test case-------------------------------");
- String autoscalingPolicyId = "autoscaling-policy-2";
+ String autoscalingPolicyId = "autoscaling-policy-application-bursting-test";
- boolean addedScalingPolicy = restClient.addEntity(TEST_PATH + RestConstants.AUTOSCALING_POLICIES_PATH
+ boolean addedScalingPolicy = restClient.addEntity(RESOURCES_PATH + RestConstants.AUTOSCALING_POLICIES_PATH
+ "/" + autoscalingPolicyId + ".json",
RestConstants.AUTOSCALING_POLICIES, RestConstants.AUTOSCALING_POLICIES_NAME);
assertEquals(addedScalingPolicy, true);
- boolean addedC1 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" + "esb.json",
+ boolean addedC1 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" + "esb-application-bursting-test.json",
RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
assertEquals(addedC1, true);
- boolean addedC2 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" + "php.json",
+ boolean addedC2 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" + "php-application-bursting-test.json",
RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
assertEquals(addedC2, true);
- boolean addedC3 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" + "tomcat.json",
+ boolean addedC3 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" + "tomcat-application-bursting-test.json",
RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
assertEquals(addedC3, true);
- boolean addedG1 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGE_GROUPS_PATH +
- "/" + "esb-php-group.json", RestConstants.CARTRIDGE_GROUPS,
+ boolean addedG1 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGE_GROUPS_PATH +
+ "/" + "esb-php-group-application-bursting-test.json", RestConstants.CARTRIDGE_GROUPS,
RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(addedG1, true);
CartridgeGroupBean beanG1 = (CartridgeGroupBean) restClient.
- getEntity(RestConstants.CARTRIDGE_GROUPS, "esb-php-group",
+ getEntity(RestConstants.CARTRIDGE_GROUPS, "esb-php-group-application-bursting-test",
CartridgeGroupBean.class, RestConstants.CARTRIDGE_GROUPS_NAME);
- assertEquals(beanG1.getName(), "esb-php-group");
+ assertEquals(beanG1.getName(), "esb-php-group-application-bursting-test");
- boolean addedN1 = restClient.addEntity(TEST_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
- "network-partition-9.json",
+ boolean addedN1 = restClient.addEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ "network-partition-application-bursting-test-1.json",
RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(addedN1, true);
- boolean addedN2 = restClient.addEntity(TEST_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
- "network-partition-10.json",
+ boolean addedN2 = restClient.addEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ "network-partition-application-bursting-test-2.json",
RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(addedN2, true);
- boolean addedDep = restClient.addEntity(TEST_PATH + RestConstants.DEPLOYMENT_POLICIES_PATH + "/" +
- "deployment-policy-4.json",
+ boolean addedDep = restClient.addEntity(RESOURCES_PATH + RestConstants.DEPLOYMENT_POLICIES_PATH + "/" +
+ "deployment-policy-application-bursting-test.json",
RestConstants.DEPLOYMENT_POLICIES, RestConstants.DEPLOYMENT_POLICIES_NAME);
assertEquals(addedDep, true);
- boolean added = restClient.addEntity(TEST_PATH + RestConstants.APPLICATIONS_PATH + "/" +
+ boolean added = restClient.addEntity(RESOURCES_PATH + RestConstants.APPLICATIONS_PATH + "/" +
"app-bursting-single-cartriddge-group.json", RestConstants.APPLICATIONS,
RestConstants.APPLICATIONS_NAME);
assertEquals(added, true);
ApplicationBean bean = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
- "cartridge-group-app", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
- assertEquals(bean.getApplicationId(), "cartridge-group-app");
+ "application-bursting-test", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+ assertEquals(bean.getApplicationId(), "application-bursting-test");
- boolean addAppPolicy = restClient.addEntity(TEST_PATH + RestConstants.APPLICATION_POLICIES_PATH + "/" +
- "application-policy-3.json", RestConstants.APPLICATION_POLICIES,
+ boolean addAppPolicy = restClient.addEntity(RESOURCES_PATH + RestConstants.APPLICATION_POLICIES_PATH + "/" +
+ "application-policy-application-bursting-test.json", RestConstants.APPLICATION_POLICIES,
RestConstants.APPLICATION_POLICIES_NAME);
assertEquals(addAppPolicy, true);
ApplicationPolicyBean policyBean = (ApplicationPolicyBean) restClient.getEntity(
RestConstants.APPLICATION_POLICIES,
- "application-policy-3", ApplicationPolicyBean.class,
+ "application-policy-application-bursting-test", ApplicationPolicyBean.class,
RestConstants.APPLICATION_POLICIES_NAME);
//deploy the application
- String resourcePath = RestConstants.APPLICATIONS + "/" + "cartridge-group-app" +
- RestConstants.APPLICATIONS_DEPLOY + "/" + "application-policy-3";
+ String resourcePath = RestConstants.APPLICATIONS + "/" + "application-bursting-test" +
+ RestConstants.APPLICATIONS_DEPLOY + "/" + "application-policy-application-bursting-test";
boolean deployed = restClient.deployEntity(resourcePath,
RestConstants.APPLICATIONS_NAME);
assertEquals(deployed, true);
//Application active handling
- TopologyHandler.getInstance().assertApplicationActivation(bean.getApplicationId());
+ TopologyHandler.getInstance().assertApplicationStatus(bean.getApplicationId(),
+ ApplicationStatus.Active);
//Group active handling
TopologyHandler.getInstance().assertGroupActivation(bean.getApplicationId());
@@ -123,7 +125,7 @@ public class ApplicationBurstingTest extends StratosTestServerManager {
//Cluster active handling
TopologyHandler.getInstance().assertClusterActivation(bean.getApplicationId());
- boolean removedGroup = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "esb-php-group",
+ boolean removedGroup = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "esb-php-group-application-bursting-test",
RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(removedGroup, false);
@@ -132,58 +134,58 @@ public class ApplicationBurstingTest extends StratosTestServerManager {
assertEquals(removedAuto, false);
boolean removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-9",
+ "network-partition-application-bursting-test-1",
RestConstants.NETWORK_PARTITIONS_NAME);
//Trying to remove the used network partition
assertEquals(removedNet, false);
boolean removedDep = restClient.removeEntity(RestConstants.DEPLOYMENT_POLICIES,
- "deployment-policy-4", RestConstants.DEPLOYMENT_POLICIES_NAME);
+ "deployment-policy-application-bursting-test", RestConstants.DEPLOYMENT_POLICIES_NAME);
assertEquals(removedDep, false);
//Un-deploying the application
- String resourcePathUndeploy = RestConstants.APPLICATIONS + "/" + "cartridge-group-app" +
+ String resourcePathUndeploy = RestConstants.APPLICATIONS + "/" + "application-bursting-test" +
RestConstants.APPLICATIONS_UNDEPLOY;
boolean unDeployed = restClient.undeployEntity(resourcePathUndeploy,
RestConstants.APPLICATIONS_NAME);
assertEquals(unDeployed, true);
- boolean undeploy = TopologyHandler.getInstance().assertApplicationUndeploy("cartridge-group-app");
+ boolean undeploy = TopologyHandler.getInstance().assertApplicationUndeploy("application-bursting-test");
if (!undeploy) {
//Need to forcefully undeploy the application
- log.info("Force undeployment is going to start for the [application] " + "cartridge-group-app");
+ log.info("Force undeployment is going to start for the [application] " + "application-bursting-test");
- restClient.undeployEntity(RestConstants.APPLICATIONS + "/" + "cartridge-group-app" +
+ restClient.undeployEntity(RestConstants.APPLICATIONS + "/" + "application-bursting-test" +
RestConstants.APPLICATIONS_UNDEPLOY + "?force=true", RestConstants.APPLICATIONS);
- boolean forceUndeployed = TopologyHandler.getInstance().assertApplicationUndeploy("cartridge-group-app");
+ boolean forceUndeployed = TopologyHandler.getInstance().assertApplicationUndeploy("application-bursting-test");
assertEquals(String.format("Forceful undeployment failed for the application %s",
- "cartridge-group-app"), forceUndeployed, true);
+ "application-bursting-test"), forceUndeployed, true);
}
- boolean removed = restClient.removeEntity(RestConstants.APPLICATIONS, "cartridge-group-app",
+ boolean removed = restClient.removeEntity(RestConstants.APPLICATIONS, "application-bursting-test",
RestConstants.APPLICATIONS_NAME);
assertEquals(removed, true);
ApplicationBean beanRemoved = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
- "cartridge-group-app", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+ "application-bursting-test", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
assertEquals(beanRemoved, null);
- removedGroup = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "esb-php-group",
+ removedGroup = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "esb-php-group-application-bursting-test",
RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(removedGroup, true);
- boolean removedC1 = restClient.removeEntity(RestConstants.CARTRIDGES, "esb",
+ boolean removedC1 = restClient.removeEntity(RestConstants.CARTRIDGES, "esb-application-bursting-test",
RestConstants.CARTRIDGES_NAME);
assertEquals(removedC1, true);
- boolean removedC2 = restClient.removeEntity(RestConstants.CARTRIDGES, "php",
+ boolean removedC2 = restClient.removeEntity(RestConstants.CARTRIDGES, "php-application-bursting-test",
RestConstants.CARTRIDGES_NAME);
assertEquals(removedC2, true);
- boolean removedC3 = restClient.removeEntity(RestConstants.CARTRIDGES, "tomcat",
+ boolean removedC3 = restClient.removeEntity(RestConstants.CARTRIDGES, "tomcat-application-bursting-test",
RestConstants.CARTRIDGES_NAME);
assertEquals(removedC3, true);
@@ -192,30 +194,30 @@ public class ApplicationBurstingTest extends StratosTestServerManager {
assertEquals(removedAuto, true);
removedDep = restClient.removeEntity(RestConstants.DEPLOYMENT_POLICIES,
- "deployment-policy-4", RestConstants.DEPLOYMENT_POLICIES_NAME);
+ "deployment-policy-application-bursting-test", RestConstants.DEPLOYMENT_POLICIES_NAME);
assertEquals(removedDep, true);
removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-9", RestConstants.NETWORK_PARTITIONS_NAME);
+ "network-partition-application-bursting-test-1", RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(removedNet, false);
boolean removedN2 = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-10", RestConstants.NETWORK_PARTITIONS_NAME);
+ "network-partition-application-bursting-test-2", RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(removedN2, false);
boolean removeAppPolicy = restClient.removeEntity(RestConstants.APPLICATION_POLICIES,
- "application-policy-3", RestConstants.APPLICATION_POLICIES_NAME);
+ "application-policy-application-bursting-test", RestConstants.APPLICATION_POLICIES_NAME);
assertEquals(removeAppPolicy, true);
removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-9", RestConstants.NETWORK_PARTITIONS_NAME);
+ "network-partition-application-bursting-test-1", RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(removedNet, true);
removedN2 = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-10", RestConstants.NETWORK_PARTITIONS_NAME);
+ "network-partition-application-bursting-test-2", RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(removedN2, true);
- log.info("Ended application bursting test case**************************************");
+ log.info("-------------------------------Ended application bursting test case-------------------------------");
} catch (Exception e) {
log.error("An error occurred while handling application bursting", e);
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/SampleApplicationsTest.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/SampleApplicationsTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/SampleApplicationsTest.java
index 2dad064..4ca3632 100644
--- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/SampleApplicationsTest.java
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/SampleApplicationsTest.java
@@ -23,13 +23,15 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.stratos.common.beans.application.ApplicationBean;
import org.apache.stratos.common.beans.cartridge.CartridgeGroupBean;
-import org.apache.stratos.common.beans.policy.deployment.ApplicationPolicyBean;
+import org.apache.stratos.common.beans.cartridge.CartridgeGroupReferenceBean;
+import org.apache.stratos.common.beans.cartridge.CartridgeReferenceBean;
import org.apache.stratos.integration.tests.RestConstants;
import org.apache.stratos.integration.tests.StratosTestServerManager;
-import org.apache.stratos.integration.tests.TopologyHandler;
+import org.apache.stratos.messaging.domain.application.Group;
import org.testng.annotations.Test;
import static junit.framework.Assert.assertEquals;
+import static junit.framework.Assert.assertFalse;
import static junit.framework.Assert.assertTrue;
/**
@@ -37,167 +39,183 @@ import static junit.framework.Assert.assertTrue;
*/
public class SampleApplicationsTest extends StratosTestServerManager {
private static final Log log = LogFactory.getLog(SampleApplicationsTest.class);
- private static final String TEST_PATH = "/sample-applications-test";
+ private static final String RESOURCES_PATH = "/sample-applications-test";
@Test
public void testApplication() {
- log.info("Started application test case**************************************");
- String autoscalingPolicyId = "autoscaling-policy-1";
-
+ log.info("-------------------------------Started application test case-------------------------------");
try {
- boolean addedScalingPolicy = restClient.addEntity(TEST_PATH + RestConstants.AUTOSCALING_POLICIES_PATH
+ String autoscalingPolicyId = "autoscaling-policy-sample-applications-test";
+
+ boolean addedScalingPolicy = restClient.addEntity(RESOURCES_PATH + RestConstants.AUTOSCALING_POLICIES_PATH
+ "/" + autoscalingPolicyId + ".json",
RestConstants.AUTOSCALING_POLICIES, RestConstants.AUTOSCALING_POLICIES_NAME);
assertEquals(addedScalingPolicy, true);
- boolean addedC1 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c1.json",
+ boolean addedC1 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c1-sample-applications-test.json",
RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
assertEquals(addedC1, true);
- boolean addedC2 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c2.json",
+ boolean addedC2 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c2-sample-applications-test.json",
RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
assertEquals(addedC2, true);
- boolean addedC3 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c3.json",
+ boolean addedC3 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c3-sample-applications-test.json",
RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
assertEquals(addedC3, true);
- boolean addedG1 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGE_GROUPS_PATH +
- "/" + "cartrdige-nested.json", RestConstants.CARTRIDGE_GROUPS,
+ boolean addedG1 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGE_GROUPS_PATH +
+ "/" + "cartrdige-nested-sample-applications-test.json", RestConstants.CARTRIDGE_GROUPS,
RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(addedG1, true);
CartridgeGroupBean beanG1 = (CartridgeGroupBean) restClient.
- getEntity(RestConstants.CARTRIDGE_GROUPS, "G1",
+ getEntity(RestConstants.CARTRIDGE_GROUPS, "G1-sample-applications-test",
CartridgeGroupBean.class, RestConstants.CARTRIDGE_GROUPS_NAME);
- assertEquals(beanG1.getName(), "G1");
+ assertEquals(beanG1.getName(), "G1-sample-applications-test");
- boolean addedN1 = restClient.addEntity(TEST_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
- "network-partition-1.json",
+ boolean addedN1 = restClient.addEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ "network-partition-sample-applications-test-1.json",
RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(addedN1, true);
- boolean addedN2 = restClient.addEntity(TEST_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
- "network-partition-2.json",
+ boolean addedN2 = restClient.addEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ "network-partition-sample-applications-test-2.json",
RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(addedN2, true);
- boolean addedDep = restClient.addEntity(TEST_PATH + RestConstants.DEPLOYMENT_POLICIES_PATH + "/" +
- "deployment-policy-1.json",
+ boolean addedDep = restClient.addEntity(RESOURCES_PATH + RestConstants.DEPLOYMENT_POLICIES_PATH + "/" +
+ "deployment-policy-sample-applications-test.json",
RestConstants.DEPLOYMENT_POLICIES, RestConstants.DEPLOYMENT_POLICIES_NAME);
assertEquals(addedDep, true);
- boolean added = restClient.addEntity(TEST_PATH + RestConstants.APPLICATIONS_PATH + "/" +
- "g-sc-G123-1.json", RestConstants.APPLICATIONS,
+ boolean added = restClient.addEntity(RESOURCES_PATH + RestConstants.APPLICATIONS_PATH + "/" +
+ "g-sc-G123-1-sample-applications-test.json", RestConstants.APPLICATIONS,
RestConstants.APPLICATIONS_NAME);
assertEquals(added, true);
ApplicationBean bean = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
- "g-sc-G123-1", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
- assertEquals(bean.getApplicationId(), "g-sc-G123-1");
-
- assertEquals(bean.getComponents().getGroups().get(0).getName(), "G1");
- assertEquals(bean.getComponents().getGroups().get(0).getAlias(), "group1");
- assertEquals(bean.getComponents().getGroups().get(0).getGroupMaxInstances(), 1);
- assertEquals(bean.getComponents().getGroups().get(0).getGroupMinInstances(), 1);
-
- assertEquals(bean.getComponents().getGroups().get(0).getCartridges().get(0).getType(), "c1");
- assertEquals(bean.getComponents().getGroups().get(0).getCartridges().get(0).getCartridgeMin(), 1);
- assertEquals(bean.getComponents().getGroups().get(0).getCartridges().get(0).getCartridgeMax(), 2);
-
- assertEquals(bean.getComponents().getGroups().get(0).getGroups().get(0).getAlias(), "group2");
- assertEquals(bean.getComponents().getGroups().get(0).getGroups().get(0).getName(), "G2");
- assertEquals(bean.getComponents().getGroups().get(0).getGroups().get(0).getGroupMaxInstances(), 1);
- assertEquals(bean.getComponents().getGroups().get(0).getGroups().get(0).getGroupMinInstances(), 1);
-
- assertEquals(bean.getComponents().getGroups().get(0).getGroups().get(0).getCartridges().get(0).getType(), "c2");
- assertEquals(bean.getComponents().getGroups().get(0).getGroups().get(0).getCartridges().get(0).getCartridgeMin(), 1);
- assertEquals(bean.getComponents().getGroups().get(0).getGroups().get(0).getCartridges().get(0).getCartridgeMax(), 2);
-
- assertEquals(bean.getComponents().getGroups().get(0).getGroups().get(0).getGroups().get(0).getAlias(), "group3");
- assertEquals(bean.getComponents().getGroups().get(0).getGroups().get(0).getGroups().get(0).getName(), "G3");
- assertEquals(bean.getComponents().getGroups().get(0).getGroups().get(0).getGroups().get(0).getGroupMaxInstances(), 2);
- assertEquals(bean.getComponents().getGroups().get(0).getGroups().get(0).getGroups().get(0).getGroupMinInstances(), 1);
-
- assertEquals(bean.getComponents().getGroups().get(0).getGroups().get(0).getGroups().get(0).getCartridges().get(0).getType(), "c3");
- assertEquals(bean.getComponents().getGroups().get(0).getGroups().get(0).getGroups().get(0).getCartridges().get(0).getCartridgeMin(), 1);
- assertEquals(bean.getComponents().getGroups().get(0).getGroups().get(0).getGroups().get(0).getCartridges().get(0).getCartridgeMax(), 2);
-
- boolean updated = restClient.updateEntity(TEST_PATH + RestConstants.APPLICATIONS_PATH + "/g-sc-G123-1-v1.json",
+ "g-sc-G123-1-sample-applications-test", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+ assertEquals(bean.getApplicationId(), "g-sc-G123-1-sample-applications-test");
+
+ CartridgeGroupReferenceBean group1 = bean.getComponents().getGroups().get(0);
+ CartridgeGroupReferenceBean group2 = group1.getGroups().get(0);
+ CartridgeGroupReferenceBean group3 = group2.getGroups().get(0);
+ CartridgeReferenceBean c1 = group1.getCartridges().get(0);
+ CartridgeReferenceBean c2 = group2.getCartridges().get(0);
+ CartridgeReferenceBean c3 = group3.getCartridges().get(0);
+
+ assertEquals(group1.getName(), "G1-sample-applications-test");
+ assertEquals(group1.getAlias(), "group1-sample-applications-test");
+ assertEquals(group1.getGroupMaxInstances(), 1);
+ assertEquals(group1.getGroupMinInstances(), 1);
+
+ assertEquals(c1.getType(), "c1-sample-applications-test");
+ assertEquals(c1.getCartridgeMin(), 1);
+ assertEquals(c1.getCartridgeMax(), 2);
+
+ assertEquals(group2.getAlias(), "group2-sample-applications-test");
+ assertEquals(group2.getName(), "G2-sample-applications-test");
+ assertEquals(group2.getGroupMaxInstances(), 1);
+ assertEquals(group2.getGroupMinInstances(), 1);
+
+ assertEquals(c2.getType(), "c2-sample-applications-test");
+ assertEquals(c2.getCartridgeMin(), 1);
+ assertEquals(c2.getCartridgeMax(), 2);
+
+ assertEquals(group3.getAlias(), "group3-sample-applications-test");
+ assertEquals(group3.getName(), "G3-sample-applications-test");
+ assertEquals(group3.getGroupMaxInstances(), 2);
+ assertEquals(group3.getGroupMinInstances(), 1);
+
+ assertEquals(c3.getType(), "c3-sample-applications-test");
+ assertEquals(c3.getCartridgeMin(), 1);
+ assertEquals(c3.getCartridgeMax(), 2);
+
+ boolean updated = restClient.updateEntity(RESOURCES_PATH + RestConstants.APPLICATIONS_PATH +
+ "/g-sc-G123-1-sample-applications-test-v1.json",
RestConstants.APPLICATIONS, RestConstants.APPLICATIONS_NAME);
assertEquals(updated, true);
ApplicationBean updatedBean = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
- "g-sc-G123-1", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+ "g-sc-G123-1-sample-applications-test", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+
+ assertEquals(bean.getApplicationId(), "g-sc-G123-1-sample-applications-test");
- assertEquals(bean.getApplicationId(), "g-sc-G123-1");
- assertEquals(updatedBean.getComponents().getGroups().get(0).getName(), "G1");
- assertEquals(updatedBean.getComponents().getGroups().get(0).getAlias(), "group1");
- assertEquals(updatedBean.getComponents().getGroups().get(0).getGroupMaxInstances(), 1);
- assertEquals(updatedBean.getComponents().getGroups().get(0).getGroupMinInstances(), 1);
+ group1 = updatedBean.getComponents().getGroups().get(0);
+ group2 = group1.getGroups().get(0);
+ group3 = group2.getGroups().get(0);
+ c1 = group1.getCartridges().get(0);
+ c2 = group2.getCartridges().get(0);
+ c3 = group3.getCartridges().get(0);
- assertEquals(updatedBean.getComponents().getGroups().get(0).getCartridges().get(0).getType(), "c1");
- assertEquals(updatedBean.getComponents().getGroups().get(0).getCartridges().get(0).getCartridgeMin(), 2);
- assertEquals(updatedBean.getComponents().getGroups().get(0).getCartridges().get(0).getCartridgeMax(), 3);
+ assertEquals(group1.getName(), "G1-sample-applications-test");
+ assertEquals(group1.getAlias(), "group1-sample-applications-test");
+ assertEquals(group1.getGroupMaxInstances(), 1);
+ assertEquals(group1.getGroupMinInstances(), 1);
- assertEquals(updatedBean.getComponents().getGroups().get(0).getGroups().get(0).getAlias(), "group2");
- assertEquals(updatedBean.getComponents().getGroups().get(0).getGroups().get(0).getName(), "G2");
- assertEquals(updatedBean.getComponents().getGroups().get(0).getGroups().get(0).getGroupMaxInstances(), 1);
- assertEquals(updatedBean.getComponents().getGroups().get(0).getGroups().get(0).getGroupMinInstances(), 1);
+ assertEquals(c1.getType(), "c1-sample-applications-test");
+ assertEquals(c1.getCartridgeMin(), 2);
+ assertEquals(c1.getCartridgeMax(), 3);
- assertEquals(updatedBean.getComponents().getGroups().get(0).getGroups().get(0).getCartridges().get(0).getType(), "c2");
- assertEquals(updatedBean.getComponents().getGroups().get(0).getGroups().get(0).getCartridges().get(0).getCartridgeMin(), 2);
- assertEquals(updatedBean.getComponents().getGroups().get(0).getGroups().get(0).getCartridges().get(0).getCartridgeMax(), 4);
+ assertEquals(group2.getAlias(), "group2-sample-applications-test");
+ assertEquals(group2.getName(), "G2-sample-applications-test");
+ assertEquals(group2.getGroupMaxInstances(), 1);
+ assertEquals(group2.getGroupMinInstances(), 1);
- assertEquals(updatedBean.getComponents().getGroups().get(0).getGroups().get(0).getGroups().get(0).getAlias(), "group3");
- assertEquals(updatedBean.getComponents().getGroups().get(0).getGroups().get(0).getGroups().get(0).getName(), "G3");
- assertEquals(updatedBean.getComponents().getGroups().get(0).getGroups().get(0).getGroups().get(0).getGroupMaxInstances(), 3);
- assertEquals(updatedBean.getComponents().getGroups().get(0).getGroups().get(0).getGroups().get(0).getGroupMinInstances(), 2);
+ assertEquals(c2.getType(), "c2-sample-applications-test");
+ assertEquals(c2.getCartridgeMin(), 2);
+ assertEquals(c2.getCartridgeMax(), 4);
- assertEquals(updatedBean.getComponents().getGroups().get(0).getGroups().get(0).getGroups().get(0).getCartridges().get(0).getType(), "c3");
- assertEquals(updatedBean.getComponents().getGroups().get(0).getGroups().get(0).getGroups().get(0).getCartridges().get(0).getCartridgeMin(), 2);
- assertEquals(updatedBean.getComponents().getGroups().get(0).getGroups().get(0).getGroups().get(0).getCartridges().get(0).getCartridgeMax(), 3);
+ assertEquals(group3.getAlias(), "group3-sample-applications-test");
+ assertEquals(group3.getName(), "G3-sample-applications-test");
+ assertEquals(group3.getGroupMaxInstances(), 3);
+ assertEquals(group3.getGroupMinInstances(), 2);
+ assertEquals(c3.getType(), "c3-sample-applications-test");
+ assertEquals(c3.getCartridgeMin(), 2);
+ assertEquals(c3.getCartridgeMax(), 3);
- boolean removedGroup = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "G1",
+
+ boolean removedGroup = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "G1-sample-applications-test",
RestConstants.CARTRIDGE_GROUPS_NAME);
- assertEquals(removedGroup, false);
+ assertFalse(removedGroup);
boolean removedAuto = restClient.removeEntity(RestConstants.AUTOSCALING_POLICIES,
autoscalingPolicyId, RestConstants.AUTOSCALING_POLICIES_NAME);
- assertEquals(removedAuto, false);
+ assertFalse(removedAuto);
boolean removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-1",
+ "network-partition-sample-applications-test-1",
RestConstants.NETWORK_PARTITIONS_NAME);
//Trying to remove the used network partition
- assertEquals(removedNet, false);
+ assertFalse(removedNet);
boolean removedDep = restClient.removeEntity(RestConstants.DEPLOYMENT_POLICIES,
- "deployment-policy-1", RestConstants.DEPLOYMENT_POLICIES_NAME);
- assertEquals(removedDep, false);
+ "deployment-policy-sample-applications-test", RestConstants.DEPLOYMENT_POLICIES_NAME);
+ assertFalse(removedDep);
- boolean removed = restClient.removeEntity(RestConstants.APPLICATIONS, "g-sc-G123-1",
+ boolean removed = restClient.removeEntity(RestConstants.APPLICATIONS, "g-sc-G123-1-sample-applications-test",
RestConstants.APPLICATIONS_NAME);
- assertEquals(removed, true);
+ assertTrue(removed);
ApplicationBean beanRemoved = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
- "g-sc-G123-1", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+ "g-sc-G123-1-sample-applications-test", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
assertEquals(beanRemoved, null);
- removedGroup = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "G1",
+ removedGroup = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "G1-sample-applications-test",
RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(removedGroup, true);
- boolean removedC1 = restClient.removeEntity(RestConstants.CARTRIDGES, "c1",
+ boolean removedC1 = restClient.removeEntity(RestConstants.CARTRIDGES, "c1-sample-applications-test",
RestConstants.CARTRIDGES_NAME);
assertEquals(removedC1, true);
- boolean removedC2 = restClient.removeEntity(RestConstants.CARTRIDGES, "c2",
+ boolean removedC2 = restClient.removeEntity(RestConstants.CARTRIDGES, "c2-sample-applications-test",
RestConstants.CARTRIDGES_NAME);
assertEquals(removedC2, true);
- boolean removedC3 = restClient.removeEntity(RestConstants.CARTRIDGES, "c3",
+ boolean removedC3 = restClient.removeEntity(RestConstants.CARTRIDGES, "c3-sample-applications-test",
RestConstants.CARTRIDGES_NAME);
assertEquals(removedC3, true);
@@ -206,222 +224,23 @@ public class SampleApplicationsTest extends StratosTestServerManager {
assertEquals(removedAuto, true);
removedDep = restClient.removeEntity(RestConstants.DEPLOYMENT_POLICIES,
- "deployment-policy-1", RestConstants.DEPLOYMENT_POLICIES_NAME);
+ "deployment-policy-sample-applications-test", RestConstants.DEPLOYMENT_POLICIES_NAME);
assertEquals(removedDep, true);
removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-1", RestConstants.NETWORK_PARTITIONS_NAME);
+ "network-partition-sample-applications-test-1", RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(removedNet, true);
boolean removedN2 = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-2", RestConstants.NETWORK_PARTITIONS_NAME);
- assertEquals(removedN2, true);
+ "network-partition-sample-applications-test-2", RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(String.format("[Network partition] network-partition-sample-applications-test-2 " +
+ "could not be removed for [application] g-sc-G123-1-sample-applications-test"),removedN2, true);
- log.info("Ended application test case**************************************");
+ log.info("-------------------------------Ended application test case-------------------------------");
} catch (Exception e) {
log.error("An error occurred while handling application test case", e);
assertTrue("An error occurred while handling application test case", false);
}
}
-
- @Test(dependsOnMethods = {"testApplication"})
- public void testDeployApplication() {
- try {
- log.info("Started application deploy/undeploy test case**************************************");
-
- String autoscalingPolicyId = "autoscaling-policy-1";
-
- boolean addedScalingPolicy = restClient.addEntity(TEST_PATH + RestConstants.AUTOSCALING_POLICIES_PATH
- + "/" + autoscalingPolicyId + ".json",
- RestConstants.AUTOSCALING_POLICIES, RestConstants.AUTOSCALING_POLICIES_NAME);
- assertEquals(addedScalingPolicy, true);
-
- boolean addedC1 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c1.json",
- RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
- assertEquals(addedC1, true);
-
- boolean addedC2 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c2.json",
- RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
- assertEquals(addedC2, true);
-
- boolean addedC3 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c3.json",
- RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
- assertEquals(addedC3, true);
-
- boolean addedG1 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGE_GROUPS_PATH +
- "/" + "cartrdige-nested.json", RestConstants.CARTRIDGE_GROUPS,
- RestConstants.CARTRIDGE_GROUPS_NAME);
- assertEquals(addedG1, true);
-
- CartridgeGroupBean beanG1 = (CartridgeGroupBean) restClient.
- getEntity(RestConstants.CARTRIDGE_GROUPS, "G1",
- CartridgeGroupBean.class, RestConstants.CARTRIDGE_GROUPS_NAME);
- assertEquals(beanG1.getName(), "G1");
-
- boolean addedN1 = restClient.addEntity(TEST_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
- "network-partition-1.json",
- RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
- assertEquals(addedN1, true);
-
- boolean addedN2 = restClient.addEntity(TEST_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
- "network-partition-2.json",
- RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
- assertEquals(addedN2, true);
-
- boolean addedDep = restClient.addEntity(TEST_PATH + RestConstants.DEPLOYMENT_POLICIES_PATH + "/" +
- "deployment-policy-1.json",
- RestConstants.DEPLOYMENT_POLICIES, RestConstants.DEPLOYMENT_POLICIES_NAME);
- assertEquals(addedDep, true);
-
- boolean added = restClient.addEntity(TEST_PATH + RestConstants.APPLICATIONS_PATH + "/" +
- "g-sc-G123-1.json", RestConstants.APPLICATIONS,
- RestConstants.APPLICATIONS_NAME);
- assertEquals(added, true);
-
- ApplicationBean bean = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
- "g-sc-G123-1", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
- assertEquals(bean.getApplicationId(), "g-sc-G123-1");
-
- boolean addAppPolicy = restClient.addEntity(TEST_PATH + RestConstants.APPLICATION_POLICIES_PATH + "/" +
- "application-policy-1.json", RestConstants.APPLICATION_POLICIES,
- RestConstants.APPLICATION_POLICIES_NAME);
- assertEquals(addAppPolicy, true);
-
- ApplicationPolicyBean policyBean = (ApplicationPolicyBean) restClient.getEntity(
- RestConstants.APPLICATION_POLICIES,
- "application-policy-1", ApplicationPolicyBean.class,
- RestConstants.APPLICATION_POLICIES_NAME);
-
- //deploy the application
- String resourcePath = RestConstants.APPLICATIONS + "/" + "g-sc-G123-1" +
- RestConstants.APPLICATIONS_DEPLOY + "/" + "application-policy-1";
- boolean deployed = restClient.deployEntity(resourcePath,
- RestConstants.APPLICATIONS_NAME);
- assertEquals(deployed, true);
-
- //Application active handling
- TopologyHandler.getInstance().assertApplicationActivation(bean.getApplicationId());
-
- //Group active handling
- TopologyHandler.getInstance().assertGroupActivation(bean.getApplicationId());
-
- //Cluster active handling
- TopologyHandler.getInstance().assertClusterActivation(bean.getApplicationId());
-
- //Updating application
- boolean updated = restClient.updateEntity(TEST_PATH + RestConstants.APPLICATIONS_PATH + "/" +
- "g-sc-G123-1-v1.json", RestConstants.APPLICATIONS,
- RestConstants.APPLICATIONS_NAME);
- assertEquals(updated, true);
-
- TopologyHandler.getInstance().assertGroupInstanceCount(bean.getApplicationId(), "group3", 2);
-
- TopologyHandler.getInstance().assertClusterMinMemberCount(bean.getApplicationId(), 2);
-
- ApplicationBean updatedBean = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
- "g-sc-G123-1", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
- assertEquals(updatedBean.getApplicationId(), "g-sc-G123-1");
-
- boolean removedGroup = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "G1",
- RestConstants.CARTRIDGE_GROUPS_NAME);
- assertEquals(removedGroup, false);
-
- boolean removedAuto = restClient.removeEntity(RestConstants.AUTOSCALING_POLICIES,
- autoscalingPolicyId, RestConstants.AUTOSCALING_POLICIES_NAME);
- assertEquals(removedAuto, false);
-
- boolean removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-1",
- RestConstants.NETWORK_PARTITIONS_NAME);
- //Trying to remove the used network partition
- assertEquals(removedNet, false);
-
- boolean removedDep = restClient.removeEntity(RestConstants.DEPLOYMENT_POLICIES,
- "deployment-policy-1", RestConstants.DEPLOYMENT_POLICIES_NAME);
- assertEquals(removedDep, false);
-
- //Un-deploying the application
- String resourcePathUndeploy = RestConstants.APPLICATIONS + "/" + "g-sc-G123-1" +
- RestConstants.APPLICATIONS_UNDEPLOY;
-
- boolean unDeployed = restClient.undeployEntity(resourcePathUndeploy,
- RestConstants.APPLICATIONS_NAME);
- assertEquals(unDeployed, true);
-
- boolean undeploy = TopologyHandler.getInstance().assertApplicationUndeploy("g-sc-G123-1");
- if (!undeploy) {
- //Need to forcefully undeploy the application
- log.info("Force undeployment is going to start for the [application] " + "g-sc-G123-1");
-
- restClient.undeployEntity(RestConstants.APPLICATIONS + "/" + "g-sc-G123-1" +
- RestConstants.APPLICATIONS_UNDEPLOY + "?force=true", RestConstants.APPLICATIONS);
-
- boolean forceUndeployed = TopologyHandler.getInstance().assertApplicationUndeploy("g-sc-G123-1");
- assertEquals(String.format("Forceful undeployment failed for the application %s",
- "g-sc-G123-1"), forceUndeployed, true);
-
- }
-
- boolean removed = restClient.removeEntity(RestConstants.APPLICATIONS, "g-sc-G123-1",
- RestConstants.APPLICATIONS_NAME);
- assertEquals(removed, true);
-
- ApplicationBean beanRemoved = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
- "g-sc-G123-1", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
- assertEquals(beanRemoved, null);
-
- removedGroup = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "G1",
- RestConstants.CARTRIDGE_GROUPS_NAME);
- assertEquals(removedGroup, true);
-
- boolean removedC1 = restClient.removeEntity(RestConstants.CARTRIDGES, "c1",
- RestConstants.CARTRIDGES_NAME);
- assertEquals(removedC1, true);
-
- boolean removedC2 = restClient.removeEntity(RestConstants.CARTRIDGES, "c2",
- RestConstants.CARTRIDGES_NAME);
- assertEquals(removedC2, true);
-
- boolean removedC3 = restClient.removeEntity(RestConstants.CARTRIDGES, "c3",
- RestConstants.CARTRIDGES_NAME);
- assertEquals(removedC3, true);
-
- removedAuto = restClient.removeEntity(RestConstants.AUTOSCALING_POLICIES,
- autoscalingPolicyId, RestConstants.AUTOSCALING_POLICIES_NAME);
- assertEquals(removedAuto, true);
-
- removedDep = restClient.removeEntity(RestConstants.DEPLOYMENT_POLICIES,
- "deployment-policy-1", RestConstants.DEPLOYMENT_POLICIES_NAME);
- assertEquals(removedDep, true);
-
- removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-1", RestConstants.NETWORK_PARTITIONS_NAME);
- assertEquals(removedNet, false);
-
- boolean removedN2 = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-2", RestConstants.NETWORK_PARTITIONS_NAME);
- assertEquals(removedN2, false);
-
- boolean removeAppPolicy = restClient.removeEntity(RestConstants.APPLICATION_POLICIES,
- "application-policy-1", RestConstants.APPLICATION_POLICIES_NAME);
- assertEquals(removeAppPolicy, true);
-
- removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-1", RestConstants.NETWORK_PARTITIONS_NAME);
- assertEquals(removedNet, true);
-
- removedN2 = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-2", RestConstants.NETWORK_PARTITIONS_NAME);
- assertEquals(removedN2, true);
-
- log.info("Ended application deploy/undeploy test case**************************************");
-
- } catch (Exception e) {
- log.error("An error occurred while handling application deployment/undeployment", e);
- assertTrue("An error occurred while handling application deployment/undeployment", false);
- }
- }
-
-
}
[11/11] stratos git commit: Merge the latest changes of integration
test from master branch
Posted by ga...@apache.org.
Merge the latest changes of integration test from master branch
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/7fae8a72
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/7fae8a72
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/7fae8a72
Branch: refs/heads/tenant-isolation
Commit: 7fae8a72eebd6bf6bf49fec4aa1748f4680361fb
Parents: 6c6f4cc
Author: Gayan Gunarathne <ga...@wso2.com>
Authored: Wed Aug 12 17:46:54 2015 +0530
Committer: Gayan Gunarathne <ga...@wso2.com>
Committed: Wed Aug 12 17:46:54 2015 +0530
----------------------------------------------------------------------
.../application/ApplicationUpdateTest.java | 243 ++++
.../application/GroupStartupOrderTest.java | 226 ++++
.../GroupTerminationBehaviorTest.java | 27 +
.../PartitionOneAfterAnotherClusterTest.java | 298 +++++
.../PartitionRoundRobinClusterTest.java | 305 +++++
.../tests/rest/IntegrationMockClient.java | 105 ++
.../application-policy-3.json.orig | 18 +
...cation-policy-application-bursting-test.json | 18 +
...caling-policy-application-bursting-test.json | 14 +
...esb-php-group-application-bursting-test.json | 19 +
.../mock/esb-application-bursting-test.json | 50 +
.../mock/php-application-bursting-test.json | 51 +
.../mock/tomcat-application-bursting-test.json | 53 +
...oyment-policy-application-bursting-test.json | 32 +
...k-partition-application-bursting-test-1.json | 15 +
...k-partition-application-bursting-test-2.json | 24 +
...lication-policy-application-policy-test.json | 18 +
...ork-partition-application-policy-test-1.json | 24 +
...ork-partition-application-policy-test-2.json | 15 +
...lication-policy-application-update-test.json | 18 +
.../g-sc-G123-1-application-update-test-v1.json | 86 ++
...-G123-1-application-update-test-v1.json.orig | 91 ++
.../g-sc-G123-1-application-update-test.json | 86 ++
...oscaling-policy-application-update-test.json | 14 +
...rdige-nested-application-update-test-v1.json | 50 +
...artrdige-nested-application-update-test.json | 50 +
.../mock/c1-application-update-test.json | 45 +
.../mock/c2-application-update-test.json | 45 +
.../mock/c3-application-update-test.json | 45 +
...yment-policy-application-update-test-v1.json | 36 +
...ployment-policy-application-update-test.json | 32 +
...-partition-application-update-test-1-v1.json | 28 +
...ork-partition-application-update-test-1.json | 15 +
...ork-partition-application-update-test-2.json | 24 +
...aling-policy-autoscaling-policy-test-v1.json | 14 +
...oscaling-policy-autoscaling-policy-test.json | 14 +
.../g4-g5-g6-cartridge-group-test-v1.json | 50 +
.../g4-g5-g6-cartridge-group-test.json | 50 +
.../mock/c4-cartridge-group-test.json | 45 +
.../mock/c5-cartridge-group-test.json | 124 +++
.../mock/c6-cartridge-group-test.json | 45 +
.../cartridges/mock/c0-cartridge-test-v1.json | 124 +++
.../cartridges/mock/c0-cartridge-test.json | 124 +++
...oyment-policy-deployment-policy-test-v1.json | 36 +
...eployment-policy-deployment-policy-test.json | 32 +
...k-partition-deployment-policy-test-1-v1.json | 28 +
...work-partition-deployment-policy-test-1.json | 15 +
...work-partition-deployment-policy-test-2.json | 24 +
...cation-policy-application-bursting-test.json | 18 +
.../app-bursting-single-cartriddge-group.json | 70 ++
...caling-policy-application-bursting-test.json | 14 +
...esb-php-group-application-bursting-test.json | 19 +
.../mock/esb-application-bursting-test.json | 50 +
.../mock/php-application-bursting-test.json | 51 +
.../mock/tomcat-application-bursting-test.json | 53 +
...oyment-policy-application-bursting-test.json | 32 +
...k-partition-application-bursting-test-1.json | 15 +
...k-partition-application-bursting-test-2.json | 24 +
.../RegionOne.json | 17 +
.../application-martin.json | 100 ++
.../application-policy-1.json | 17 +
.../application-s-g-c1-c2-c3-s.json | 130 +++
.../application.json | 108 ++
.../application.json.orig | 89 ++
.../startup-order-termination-behavior/c1.json | 45 +
.../startup-order-termination-behavior/c2.json | 45 +
.../startup-order-termination-behavior/c3.json | 45 +
.../startup-order-termination-behavior/c4.json | 45 +
.../startup-order-termination-behavior/c5.json | 132 +++
.../cartridge-groups-s-g-c1-c2-c3-s.json | 26 +
.../cartridge-groups-working.json | 34 +
.../cartridge-groups.json | 77 ++
.../cartridge-groups.json.back | 53 +
.../deploy.sh | 43 +
.../economy-policy.json | 15 +
.../static-1.json | 17 +
.../wso2carbon 2.log | 992 +++++++++++++++++
.../wso2carbon-working 2.log | 1053 ++++++++++++++++++
.../wso2carbon-working.log | 1053 ++++++++++++++++++
.../wso2carbon.log | 992 +++++++++++++++++
...cation-policy-application-bursting-test.json | 17 +
.../group-termination-behavior-test.json | 101 ++
...caling-policy-application-bursting-test.json | 14 +
...-groups-group-termination-behavior-test.json | 58 +
.../c1-group-termination-behavior-test.json | 45 +
.../c2-group-termination-behavior-test.json | 45 +
.../c3-group-termination-behavior-test.json | 45 +
.../c4-group-termination-behavior-test.json | 45 +
...oyment-policy-termination-behavior-test.json | 22 +
...k-partition-application-bursting-test-1.json | 15 +
...ork-partition-network-partition-test-v1.json | 28 +
...etwork-partition-network-partition-test.json | 15 +
...ation-policy-partition-round-robin-test.json | 13 +
.../partition-round-robin-test.json | 28 +
...aling-policy-partition-round-robin-test.json | 14 +
.../mock/c7-partition-round-robin-test.json | 45 +
...yment-policy-partition-round-robin-test.json | 22 +
...rk-partition-partition-round-robin-test.json | 24 +
...ication-policy-sample-applications-test.json | 18 +
...g-sc-G123-1-sample-applications-test-v1.json | 86 ++
.../g-sc-G123-1-sample-applications-test.json | 86 ++
...scaling-policy-sample-applications-test.json | 14 +
...dige-nested-sample-applications-test-v1.json | 50 +
...rtrdige-nested-sample-applications-test.json | 50 +
.../mock/c1-sample-applications-test.json | 45 +
.../mock/c2-sample-applications-test.json | 45 +
.../mock/c3-sample-applications-test.json | 45 +
...ment-policy-sample-applications-test-v1.json | 36 +
...loyment-policy-sample-applications-test.json | 32 +
...partition-sample-applications-test-1-v1.json | 28 +
...rk-partition-sample-applications-test-1.json | 15 +
...rk-partition-sample-applications-test-2.json | 24 +
...tion-policy-single-cluster-scaling-test.json | 13 +
.../single-cluster-scaling-test.json | 28 +
...ling-policy-single-cluster-scaling-test.json | 14 +
.../mock/c7-single-cluster-scaling-test.json | 45 +
...ment-policy-single-cluster-scaling-test.json | 22 +
...k-partition-single-cluster-scaling-test.json | 24 +
118 files changed, 9735 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/ApplicationUpdateTest.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/ApplicationUpdateTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/ApplicationUpdateTest.java
new file mode 100644
index 0000000..c9e64b2
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/ApplicationUpdateTest.java
@@ -0,0 +1,243 @@
+/*
+ * 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.
+ */
+
+package org.apache.stratos.integration.tests.application;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.stratos.common.beans.application.ApplicationBean;
+import org.apache.stratos.common.beans.cartridge.CartridgeGroupBean;
+import org.apache.stratos.common.beans.policy.deployment.ApplicationPolicyBean;
+import org.apache.stratos.integration.tests.RestConstants;
+import org.apache.stratos.integration.tests.StratosTestServerManager;
+import org.apache.stratos.integration.tests.TopologyHandler;
+import org.apache.stratos.messaging.domain.application.ApplicationStatus;
+import org.testng.annotations.Test;
+
+import static junit.framework.Assert.assertEquals;
+import static junit.framework.Assert.assertTrue;
+
+/**
+ * Sample application tests with application add, .
+ */
+public class ApplicationUpdateTest extends StratosTestServerManager {
+ private static final Log log = LogFactory.getLog(ApplicationUpdateTest.class);
+ private static final String RESOURCES_PATH = "/application-update-test";
+
+ @Test
+ public void testDeployApplication() {
+ try {
+ log.info("-------------------------Started application runtime update test case-------------------------");
+
+ String autoscalingPolicyId = "autoscaling-policy-application-update-test";
+
+ boolean addedScalingPolicy = restClient.addEntity(RESOURCES_PATH + RestConstants.AUTOSCALING_POLICIES_PATH
+ + "/" + autoscalingPolicyId + ".json",
+ RestConstants.AUTOSCALING_POLICIES, RestConstants.AUTOSCALING_POLICIES_NAME);
+ assertEquals(addedScalingPolicy, true);
+
+ boolean addedC1 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c1-application-update-test.json",
+ RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
+ assertEquals(addedC1, true);
+
+ boolean addedC2 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c2-application-update-test.json",
+ RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
+ assertEquals(addedC2, true);
+
+ boolean addedC3 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c3-application-update-test.json",
+ RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
+ assertEquals(addedC3, true);
+
+ boolean addedG1 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGE_GROUPS_PATH +
+ "/" + "cartrdige-nested-application-update-test.json", RestConstants.CARTRIDGE_GROUPS,
+ RestConstants.CARTRIDGE_GROUPS_NAME);
+ assertEquals(addedG1, true);
+
+ CartridgeGroupBean beanG1 = (CartridgeGroupBean) restClient.
+ getEntity(RestConstants.CARTRIDGE_GROUPS, "G1-application-update-test",
+ CartridgeGroupBean.class, RestConstants.CARTRIDGE_GROUPS_NAME);
+ assertEquals(beanG1.getName(), "G1-application-update-test");
+
+ boolean addedN1 = restClient.addEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ "network-partition-application-update-test-1.json",
+ RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(addedN1, true);
+
+ boolean addedN2 = restClient.addEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ "network-partition-application-update-test-2.json",
+ RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(addedN2, true);
+
+ boolean addedDep = restClient.addEntity(RESOURCES_PATH + RestConstants.DEPLOYMENT_POLICIES_PATH + "/" +
+ "deployment-policy-application-update-test.json",
+ RestConstants.DEPLOYMENT_POLICIES, RestConstants.DEPLOYMENT_POLICIES_NAME);
+ assertEquals(addedDep, true);
+
+ boolean added = restClient.addEntity(RESOURCES_PATH + RestConstants.APPLICATIONS_PATH + "/" +
+ "g-sc-G123-1-application-update-test.json", RestConstants.APPLICATIONS,
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(added, true);
+
+ ApplicationBean bean = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
+ "g-sc-G123-1-application-update-test", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+ assertEquals(bean.getApplicationId(), "g-sc-G123-1-application-update-test");
+
+ boolean addAppPolicy = restClient.addEntity(RESOURCES_PATH + RestConstants.APPLICATION_POLICIES_PATH + "/" +
+ "application-policy-application-update-test.json", RestConstants.APPLICATION_POLICIES,
+ RestConstants.APPLICATION_POLICIES_NAME);
+ assertEquals(addAppPolicy, true);
+
+ ApplicationPolicyBean policyBean = (ApplicationPolicyBean) restClient.getEntity(
+ RestConstants.APPLICATION_POLICIES,
+ "application-policy-application-update-test", ApplicationPolicyBean.class,
+ RestConstants.APPLICATION_POLICIES_NAME);
+
+ //deploy the application
+ String resourcePath = RestConstants.APPLICATIONS + "/" + "g-sc-G123-1-application-update-test" +
+ RestConstants.APPLICATIONS_DEPLOY + "/" + "application-policy-application-update-test";
+ boolean deployed = restClient.deployEntity(resourcePath,
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(deployed, true);
+
+ //Application active handling
+ TopologyHandler.getInstance().assertApplicationStatus(bean.getApplicationId(),
+ ApplicationStatus.Active);
+
+ //Group active handling
+ TopologyHandler.getInstance().assertGroupActivation(bean.getApplicationId());
+
+ //Cluster active handling
+ TopologyHandler.getInstance().assertClusterActivation(bean.getApplicationId());
+
+ //Updating application
+ boolean updated = restClient.updateEntity(RESOURCES_PATH + RestConstants.APPLICATIONS_PATH + "/" +
+ "g-sc-G123-1-application-update-test-v1.json", RestConstants.APPLICATIONS,
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(updated, true);
+
+ TopologyHandler.getInstance().assertGroupInstanceCount(bean.getApplicationId(), "group3-application-update-test", 2);
+
+ TopologyHandler.getInstance().assertClusterMinMemberCount(bean.getApplicationId(), 2);
+
+ ApplicationBean updatedBean = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
+ "g-sc-G123-1-application-update-test", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+ assertEquals(updatedBean.getApplicationId(), "g-sc-G123-1-application-update-test");
+
+ boolean removedGroup = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "G1-application-update-test",
+ RestConstants.CARTRIDGE_GROUPS_NAME);
+ assertEquals(removedGroup, false);
+
+ boolean removedAuto = restClient.removeEntity(RestConstants.AUTOSCALING_POLICIES,
+ autoscalingPolicyId, RestConstants.AUTOSCALING_POLICIES_NAME);
+ assertEquals(removedAuto, false);
+
+ boolean removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
+ "network-partition-application-update-test-1",
+ RestConstants.NETWORK_PARTITIONS_NAME);
+ //Trying to remove the used network partition
+ assertEquals(removedNet, false);
+
+ boolean removedDep = restClient.removeEntity(RestConstants.DEPLOYMENT_POLICIES,
+ "deployment-policy-application-update-test", RestConstants.DEPLOYMENT_POLICIES_NAME);
+ assertEquals(removedDep, false);
+
+ //Un-deploying the application
+ String resourcePathUndeploy = RestConstants.APPLICATIONS + "/" + "g-sc-G123-1-application-update-test" +
+ RestConstants.APPLICATIONS_UNDEPLOY;
+
+ boolean unDeployed = restClient.undeployEntity(resourcePathUndeploy,
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(unDeployed, true);
+
+ boolean undeploy = TopologyHandler.getInstance().assertApplicationUndeploy("g-sc-G123-1-application-update-test");
+ if (!undeploy) {
+ //Need to forcefully undeploy the application
+ log.info("Force undeployment is going to start for the [application] " + "g-sc-G123-1-application-update-test");
+
+ restClient.undeployEntity(RestConstants.APPLICATIONS + "/" + "g-sc-G123-1-application-update-test" +
+ RestConstants.APPLICATIONS_UNDEPLOY + "?force=true", RestConstants.APPLICATIONS);
+
+ boolean forceUndeployed = TopologyHandler.getInstance().assertApplicationUndeploy("g-sc-G123-1-application-update-test");
+ assertEquals(String.format("Forceful undeployment failed for the application %s",
+ "g-sc-G123-1-application-update-test"), forceUndeployed, true);
+
+ }
+
+ boolean removed = restClient.removeEntity(RestConstants.APPLICATIONS, "g-sc-G123-1-application-update-test",
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(removed, true);
+
+ ApplicationBean beanRemoved = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
+ "g-sc-G123-1-application-update-test", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+ assertEquals(beanRemoved, null);
+
+ removedGroup = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "G1-application-update-test",
+ RestConstants.CARTRIDGE_GROUPS_NAME);
+ assertEquals(removedGroup, true);
+
+ boolean removedC1 = restClient.removeEntity(RestConstants.CARTRIDGES, "c1-application-update-test",
+ RestConstants.CARTRIDGES_NAME);
+ assertEquals(removedC1, true);
+
+ boolean removedC2 = restClient.removeEntity(RestConstants.CARTRIDGES, "c2-application-update-test",
+ RestConstants.CARTRIDGES_NAME);
+ assertEquals(removedC2, true);
+
+ boolean removedC3 = restClient.removeEntity(RestConstants.CARTRIDGES, "c3-application-update-test",
+ RestConstants.CARTRIDGES_NAME);
+ assertEquals(removedC3, true);
+
+ removedAuto = restClient.removeEntity(RestConstants.AUTOSCALING_POLICIES,
+ autoscalingPolicyId, RestConstants.AUTOSCALING_POLICIES_NAME);
+ assertEquals(removedAuto, true);
+
+ removedDep = restClient.removeEntity(RestConstants.DEPLOYMENT_POLICIES,
+ "deployment-policy-application-update-test", RestConstants.DEPLOYMENT_POLICIES_NAME);
+ assertEquals(removedDep, true);
+
+ removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
+ "network-partition-application-update-test-1", RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(removedNet, false);
+
+ boolean removedN2 = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
+ "network-partition-application-update-test-2", RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(removedN2, false);
+
+ boolean removeAppPolicy = restClient.removeEntity(RestConstants.APPLICATION_POLICIES,
+ "application-policy-application-update-test", RestConstants.APPLICATION_POLICIES_NAME);
+ assertEquals(removeAppPolicy, true);
+
+ removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
+ "network-partition-application-update-test-1", RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(removedNet, true);
+
+ removedN2 = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
+ "network-partition-application-update-test-2", RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(removedN2, true);
+
+ log.info("-------------------------Ended application runtime update test case-------------------------");
+
+ } catch (Exception e) {
+ log.error("An error occurred while handling application deployment/undeployment and update", e);
+ assertTrue("An error occurred while handling application deployment/undeployment and update", false);
+ }
+ }
+
+
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/GroupStartupOrderTest.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/GroupStartupOrderTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/GroupStartupOrderTest.java
new file mode 100644
index 0000000..1f3aa56
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/GroupStartupOrderTest.java
@@ -0,0 +1,226 @@
+/*
+ * 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.
+ */
+package org.apache.stratos.integration.tests.application;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.stratos.common.beans.application.ApplicationBean;
+import org.apache.stratos.common.beans.cartridge.CartridgeGroupBean;
+import org.apache.stratos.common.beans.policy.deployment.ApplicationPolicyBean;
+import org.apache.stratos.integration.tests.RestConstants;
+import org.apache.stratos.integration.tests.StratosTestServerManager;
+import org.apache.stratos.integration.tests.TopologyHandler;
+import org.apache.stratos.messaging.domain.application.ApplicationStatus;
+import org.testng.annotations.Test;
+
+import static junit.framework.Assert.assertEquals;
+import static junit.framework.Assert.assertTrue;
+
+/**
+ * Handling the startup order of the group
+ */
+public class GroupStartupOrderTest extends StratosTestServerManager {
+ private static final Log log = LogFactory.getLog(SampleApplicationsTest.class);
+ private static final String RESOURCES_PATH = "/application-bursting-test";
+
+ @Test
+ public void testApplicationBusting() {
+ try {
+ log.info("-------------------------------Started application Bursting test case-------------------------------");
+
+ String autoscalingPolicyId = "autoscaling-policy-application-bursting-test";
+
+ boolean addedScalingPolicy = restClient.addEntity(RESOURCES_PATH + RestConstants.AUTOSCALING_POLICIES_PATH
+ + "/" + autoscalingPolicyId + ".json",
+ RestConstants.AUTOSCALING_POLICIES, RestConstants.AUTOSCALING_POLICIES_NAME);
+ assertEquals(addedScalingPolicy, true);
+
+ boolean addedC1 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" + "esb-application-bursting-test.json",
+ RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
+ assertEquals(addedC1, true);
+
+ boolean addedC2 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" + "php-application-bursting-test.json",
+ RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
+ assertEquals(addedC2, true);
+
+ boolean addedC3 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" + "tomcat-application-bursting-test.json",
+ RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
+ assertEquals(addedC3, true);
+
+ boolean addedG1 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGE_GROUPS_PATH +
+ "/" + "esb-php-group-application-bursting-test.json", RestConstants.CARTRIDGE_GROUPS,
+ RestConstants.CARTRIDGE_GROUPS_NAME);
+ assertEquals(addedG1, true);
+
+ CartridgeGroupBean beanG1 = (CartridgeGroupBean) restClient.
+ getEntity(RestConstants.CARTRIDGE_GROUPS, "esb-php-group-application-bursting-test",
+ CartridgeGroupBean.class, RestConstants.CARTRIDGE_GROUPS_NAME);
+ assertEquals(beanG1.getName(), "esb-php-group-application-bursting-test");
+
+ boolean addedN1 = restClient.addEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ "network-partition-application-bursting-test-1.json",
+ RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(addedN1, true);
+
+ boolean addedN2 = restClient.addEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ "network-partition-application-bursting-test-2.json",
+ RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(addedN2, true);
+
+ boolean addedDep = restClient.addEntity(RESOURCES_PATH + RestConstants.DEPLOYMENT_POLICIES_PATH + "/" +
+ "deployment-policy-application-bursting-test.json",
+ RestConstants.DEPLOYMENT_POLICIES, RestConstants.DEPLOYMENT_POLICIES_NAME);
+ assertEquals(addedDep, true);
+
+ boolean added = restClient.addEntity(RESOURCES_PATH + RestConstants.APPLICATIONS_PATH + "/" +
+ "app-bursting-single-cartriddge-group.json", RestConstants.APPLICATIONS,
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(added, true);
+
+ ApplicationBean bean = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
+ "application-bursting-test", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+ assertEquals(bean.getApplicationId(), "application-bursting-test");
+
+ boolean addAppPolicy = restClient.addEntity(RESOURCES_PATH + RestConstants.APPLICATION_POLICIES_PATH + "/" +
+ "application-policy-application-bursting-test.json", RestConstants.APPLICATION_POLICIES,
+ RestConstants.APPLICATION_POLICIES_NAME);
+ assertEquals(addAppPolicy, true);
+
+ ApplicationPolicyBean policyBean = (ApplicationPolicyBean) restClient.getEntity(
+ RestConstants.APPLICATION_POLICIES,
+ "application-policy-application-bursting-test", ApplicationPolicyBean.class,
+ RestConstants.APPLICATION_POLICIES_NAME);
+
+ //deploy the application
+ String resourcePath = RestConstants.APPLICATIONS + "/" + "application-bursting-test" +
+ RestConstants.APPLICATIONS_DEPLOY + "/" + "application-policy-application-bursting-test";
+ boolean deployed = restClient.deployEntity(resourcePath,
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(deployed, true);
+
+ //Application active handling
+ TopologyHandler.getInstance().assertApplicationStatus(bean.getApplicationId(),
+ ApplicationStatus.Active);
+
+ //Group active handling
+ TopologyHandler.getInstance().assertGroupActivation(bean.getApplicationId());
+
+ //Cluster active handling
+ TopologyHandler.getInstance().assertClusterActivation(bean.getApplicationId());
+
+ boolean removedGroup = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "esb-php-group-application-bursting-test",
+ RestConstants.CARTRIDGE_GROUPS_NAME);
+ assertEquals(removedGroup, false);
+
+ boolean removedAuto = restClient.removeEntity(RestConstants.AUTOSCALING_POLICIES,
+ autoscalingPolicyId, RestConstants.AUTOSCALING_POLICIES_NAME);
+ assertEquals(removedAuto, false);
+
+ boolean removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
+ "network-partition-application-bursting-test-1",
+ RestConstants.NETWORK_PARTITIONS_NAME);
+ //Trying to remove the used network partition
+ assertEquals(removedNet, false);
+
+ boolean removedDep = restClient.removeEntity(RestConstants.DEPLOYMENT_POLICIES,
+ "deployment-policy-application-bursting-test", RestConstants.DEPLOYMENT_POLICIES_NAME);
+ assertEquals(removedDep, false);
+
+ //Un-deploying the application
+ String resourcePathUndeploy = RestConstants.APPLICATIONS + "/" + "application-bursting-test" +
+ RestConstants.APPLICATIONS_UNDEPLOY;
+
+ boolean unDeployed = restClient.undeployEntity(resourcePathUndeploy,
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(unDeployed, true);
+
+ boolean undeploy = TopologyHandler.getInstance().assertApplicationUndeploy("application-bursting-test");
+ if (!undeploy) {
+ //Need to forcefully undeploy the application
+ log.info("Force undeployment is going to start for the [application] " + "application-bursting-test");
+
+ restClient.undeployEntity(RestConstants.APPLICATIONS + "/" + "application-bursting-test" +
+ RestConstants.APPLICATIONS_UNDEPLOY + "?force=true", RestConstants.APPLICATIONS);
+
+ boolean forceUndeployed = TopologyHandler.getInstance().assertApplicationUndeploy("application-bursting-test");
+ assertEquals(String.format("Forceful undeployment failed for the application %s",
+ "application-bursting-test"), forceUndeployed, true);
+
+ }
+
+ boolean removed = restClient.removeEntity(RestConstants.APPLICATIONS, "application-bursting-test",
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(removed, true);
+
+ ApplicationBean beanRemoved = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
+ "application-bursting-test", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+ assertEquals(beanRemoved, null);
+
+ removedGroup = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "esb-php-group-application-bursting-test",
+ RestConstants.CARTRIDGE_GROUPS_NAME);
+ assertEquals(removedGroup, true);
+
+ boolean removedC1 = restClient.removeEntity(RestConstants.CARTRIDGES, "esb-application-bursting-test",
+ RestConstants.CARTRIDGES_NAME);
+ assertEquals(removedC1, true);
+
+ boolean removedC2 = restClient.removeEntity(RestConstants.CARTRIDGES, "php-application-bursting-test",
+ RestConstants.CARTRIDGES_NAME);
+ assertEquals(removedC2, true);
+
+ boolean removedC3 = restClient.removeEntity(RestConstants.CARTRIDGES, "tomcat-application-bursting-test",
+ RestConstants.CARTRIDGES_NAME);
+ assertEquals(removedC3, true);
+
+ removedAuto = restClient.removeEntity(RestConstants.AUTOSCALING_POLICIES,
+ autoscalingPolicyId, RestConstants.AUTOSCALING_POLICIES_NAME);
+ assertEquals(removedAuto, true);
+
+ removedDep = restClient.removeEntity(RestConstants.DEPLOYMENT_POLICIES,
+ "deployment-policy-application-bursting-test", RestConstants.DEPLOYMENT_POLICIES_NAME);
+ assertEquals(removedDep, true);
+
+ removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
+ "network-partition-application-bursting-test-1", RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(removedNet, false);
+
+ boolean removedN2 = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
+ "network-partition-application-bursting-test-2", RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(removedN2, false);
+
+ boolean removeAppPolicy = restClient.removeEntity(RestConstants.APPLICATION_POLICIES,
+ "application-policy-application-bursting-test", RestConstants.APPLICATION_POLICIES_NAME);
+ assertEquals(removeAppPolicy, true);
+
+ removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
+ "network-partition-application-bursting-test-1", RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(removedNet, true);
+
+ removedN2 = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
+ "network-partition-application-bursting-test-2", RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(removedN2, true);
+
+ log.info("-------------------------------Ended application bursting test case-------------------------------");
+
+ } catch (Exception e) {
+ log.error("An error occurred while handling application bursting", e);
+ assertTrue("An error occurred while handling application bursting", false);
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/GroupTerminationBehaviorTest.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/GroupTerminationBehaviorTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/GroupTerminationBehaviorTest.java
new file mode 100644
index 0000000..b86d674
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/GroupTerminationBehaviorTest.java
@@ -0,0 +1,27 @@
+/*
+ * 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.
+ */
+package org.apache.stratos.integration.tests.application;
+
+import org.apache.stratos.integration.tests.StratosTestServerManager;
+
+/**
+ * Handling the termination behavior of the group
+ */
+public class GroupTerminationBehaviorTest extends StratosTestServerManager {
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/PartitionOneAfterAnotherClusterTest.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/PartitionOneAfterAnotherClusterTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/PartitionOneAfterAnotherClusterTest.java
new file mode 100644
index 0000000..d8f6965
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/PartitionOneAfterAnotherClusterTest.java
@@ -0,0 +1,298 @@
+/*
+ * 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.
+ */
+package org.apache.stratos.integration.tests.application;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.stratos.common.beans.application.ApplicationBean;
+import org.apache.stratos.common.beans.policy.deployment.ApplicationPolicyBean;
+import org.apache.stratos.integration.tests.RestConstants;
+import org.apache.stratos.integration.tests.StratosTestServerManager;
+import org.apache.stratos.integration.tests.TopologyHandler;
+import org.apache.stratos.messaging.domain.application.Application;
+import org.apache.stratos.messaging.domain.application.ApplicationStatus;
+import org.apache.stratos.messaging.domain.application.ClusterDataHolder;
+import org.apache.stratos.messaging.domain.instance.ClusterInstance;
+import org.apache.stratos.messaging.domain.topology.Cluster;
+import org.apache.stratos.messaging.domain.topology.Member;
+import org.apache.stratos.messaging.domain.topology.Service;
+import org.apache.stratos.messaging.message.receiver.application.ApplicationManager;
+import org.apache.stratos.messaging.message.receiver.topology.TopologyManager;
+import org.testng.annotations.Test;
+
+import java.util.*;
+
+import static junit.framework.Assert.*;
+
+/**
+ * This will handle the scale-up and scale-down of a particular cluster bursting test cases
+ */
+public class PartitionOneAfterAnotherClusterTest extends StratosTestServerManager {
+ private static final Log log = LogFactory.getLog(SampleApplicationsTest.class);
+ private static final String RESOURCES_PATH = "/partition-round-robin-cluster-test";
+
+
+ @Test
+ public void testDeployApplication() {
+ try {
+ log.info("-------------------------------Started Partition One after another test case-------------------------------");
+
+ String autoscalingPolicyId = "autoscaling-policy-3";
+
+ boolean addedScalingPolicy = restClient.addEntity(RESOURCES_PATH + RestConstants.AUTOSCALING_POLICIES_PATH
+ + "/" + autoscalingPolicyId + ".json",
+ RestConstants.AUTOSCALING_POLICIES, RestConstants.AUTOSCALING_POLICIES_NAME);
+ assertEquals(addedScalingPolicy, true);
+
+ boolean addedC1 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c7.json",
+ RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
+ assertEquals(addedC1, true);
+
+ boolean addedN1 = restClient.addEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ "network-partition-11.json",
+ RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(addedN1, true);
+
+ boolean addedDep = restClient.addEntity(RESOURCES_PATH + RestConstants.DEPLOYMENT_POLICIES_PATH + "/" +
+ "deployment-policy-5.json",
+ RestConstants.DEPLOYMENT_POLICIES, RestConstants.DEPLOYMENT_POLICIES_NAME);
+ assertEquals(addedDep, true);
+
+ boolean added = restClient.addEntity(RESOURCES_PATH + RestConstants.APPLICATIONS_PATH + "/" +
+ "single-cluster-scaling-test.json", RestConstants.APPLICATIONS,
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(added, true);
+
+ ApplicationBean bean = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
+ "single-cluster-scaling-test", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+ assertEquals(bean.getApplicationId(), "single-cluster-scaling-test");
+
+ boolean addAppPolicy = restClient.addEntity(RESOURCES_PATH + RestConstants.APPLICATION_POLICIES_PATH + "/" +
+ "application-policy-4.json", RestConstants.APPLICATION_POLICIES,
+ RestConstants.APPLICATION_POLICIES_NAME);
+ assertEquals(addAppPolicy, true);
+
+ ApplicationPolicyBean policyBean = (ApplicationPolicyBean) restClient.getEntity(
+ RestConstants.APPLICATION_POLICIES,
+ "application-policy-4", ApplicationPolicyBean.class,
+ RestConstants.APPLICATION_POLICIES_NAME);
+
+ //deploy the application
+ String resourcePath = RestConstants.APPLICATIONS + "/" + "single-cluster-scaling-test" +
+ RestConstants.APPLICATIONS_DEPLOY + "/" + "application-policy-4";
+ boolean deployed = restClient.deployEntity(resourcePath,
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(deployed, true);
+
+ //Application active handling
+ TopologyHandler.getInstance().assertApplicationStatus(bean.getApplicationId(),
+ ApplicationStatus.Active);
+
+ //Cluster active handling
+ TopologyHandler.getInstance().assertClusterActivation(bean.getApplicationId());
+
+ //Verifying whether members got created using round robin algorithm
+ assertClusterWithRoundRobinAlgorithm(bean.getApplicationId());
+
+ //Removing one member from cluster and check for auto healing
+
+
+ boolean removedAuto = restClient.removeEntity(RestConstants.AUTOSCALING_POLICIES,
+ autoscalingPolicyId, RestConstants.AUTOSCALING_POLICIES_NAME);
+ assertEquals(removedAuto, false);
+
+ boolean removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
+ "network-partition-11",
+ RestConstants.NETWORK_PARTITIONS_NAME);
+ //Trying to remove the used network partition
+ assertEquals(removedNet, false);
+
+ boolean removedDep = restClient.removeEntity(RestConstants.DEPLOYMENT_POLICIES,
+ "deployment-policy-5", RestConstants.DEPLOYMENT_POLICIES_NAME);
+ assertEquals(removedDep, false);
+
+ //Un-deploying the application
+ String resourcePathUndeploy = RestConstants.APPLICATIONS + "/" + "single-cluster-scaling-test" +
+ RestConstants.APPLICATIONS_UNDEPLOY;
+
+ boolean unDeployed = restClient.undeployEntity(resourcePathUndeploy,
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(unDeployed, true);
+
+ boolean undeploy = TopologyHandler.getInstance().assertApplicationUndeploy("single-cluster-scaling-test");
+ if (!undeploy) {
+ //Need to forcefully undeploy the application
+ log.info("Force undeployment is going to start for the [application] " + "single-cluster-scaling-test");
+
+ restClient.undeployEntity(RestConstants.APPLICATIONS + "/" + "single-cluster-scaling-test" +
+ RestConstants.APPLICATIONS_UNDEPLOY + "?force=true", RestConstants.APPLICATIONS);
+
+ boolean forceUndeployed = TopologyHandler.getInstance().assertApplicationUndeploy("single-cluster-scaling-test");
+ assertEquals(String.format("Forceful undeployment failed for the application %s",
+ "single-cluster-scaling-test"), forceUndeployed, true);
+
+ }
+
+ boolean removed = restClient.removeEntity(RestConstants.APPLICATIONS, "single-cluster-scaling-test",
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(removed, true);
+
+ ApplicationBean beanRemoved = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
+ "single-cluster-scaling-test", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+ assertEquals(beanRemoved, null);
+
+ boolean removedC1 = restClient.removeEntity(RestConstants.CARTRIDGES, "c7",
+ RestConstants.CARTRIDGES_NAME);
+ assertEquals(removedC1, true);
+
+
+ removedAuto = restClient.removeEntity(RestConstants.AUTOSCALING_POLICIES,
+ autoscalingPolicyId, RestConstants.AUTOSCALING_POLICIES_NAME);
+ assertEquals(removedAuto, true);
+
+ removedDep = restClient.removeEntity(RestConstants.DEPLOYMENT_POLICIES,
+ "deployment-policy-5", RestConstants.DEPLOYMENT_POLICIES_NAME);
+ assertEquals(removedDep, true);
+
+ removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
+ "network-partition-11", RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(removedNet, false);
+
+
+ boolean removeAppPolicy = restClient.removeEntity(RestConstants.APPLICATION_POLICIES,
+ "application-policy-4", RestConstants.APPLICATION_POLICIES_NAME);
+ assertEquals(removeAppPolicy, true);
+
+ removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
+ "network-partition-11", RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(removedNet, true);
+
+ log.info("-------------------------------Ended Partition one after another test case-------------------------------");
+
+ } catch (Exception e) {
+ log.error("An error occurred while handling application bursting", e);
+ assertTrue("An error occurred while handling application bursting", false);
+ }
+ }
+
+ /**
+ * Assert application activation
+ *
+ * @param applicationName
+ */
+ private void assertClusterWithRoundRobinAlgorithm(String applicationName) {
+ Application application = ApplicationManager.getApplications().getApplication(applicationName);
+ assertNotNull(String.format("Application is not found: [application-id] %s",
+ applicationName), application);
+
+ Set<ClusterDataHolder> clusterDataHolderSet = application.getClusterDataRecursively();
+ for (ClusterDataHolder clusterDataHolder : clusterDataHolderSet) {
+ String serviceName = clusterDataHolder.getServiceType();
+ String clusterId = clusterDataHolder.getClusterId();
+ Service service = TopologyManager.getTopology().getService(serviceName);
+ assertNotNull(String.format("Service is not found: [application-id] %s [service] %s",
+ applicationName, serviceName), service);
+
+ Cluster cluster = service.getCluster(clusterId);
+ assertNotNull(String.format("Cluster is not found: [application-id] %s [service] %s [cluster-id] %s",
+ applicationName, serviceName, clusterId), cluster);
+
+ for (ClusterInstance instance : cluster.getInstanceIdToInstanceContextMap().values()) {
+ List<String> partitionsUsedInMembers = new ArrayList<String>();
+ Map<String, List<Long>> partitionIdToMembersMap = new HashMap<String, List<Long>>();
+ for (Member member : cluster.getMembers()) {
+ String partitionId = member.getPartitionId();
+ if (!partitionIdToMembersMap.containsKey(partitionId)) {
+ List<Long> members = new ArrayList<Long>();
+ members.add(member.getInitTime());
+ partitionIdToMembersMap.put(partitionId, members);
+ } else {
+ partitionIdToMembersMap.get(partitionId).add(member.getInitTime());
+ }
+ if (!partitionsUsedInMembers.contains(partitionId)) {
+ partitionsUsedInMembers.add(partitionId);
+ }
+ }
+ String p1 = "network-partition-11-partition-1";
+ String p2 = "network-partition-11-partition-2";
+ List<Long> p1InitTime = partitionIdToMembersMap.get(p1);
+ Collections.sort(p1InitTime);
+
+ List<Long> p2InitTime = partitionIdToMembersMap.get(p2);
+ Collections.sort(p2InitTime);
+
+ List<Long> allInitTime = new ArrayList<Long>();
+ allInitTime.addAll(p1InitTime);
+ allInitTime.addAll(p2InitTime);
+ Collections.sort(allInitTime);
+
+ int p1Index = -1;
+ int p2Index = -1;
+ String previousPartition = null;
+ for (int i = 0; i < allInitTime.size(); i++) {
+ if (previousPartition == null) {
+ if (p1InitTime.get(0) == allInitTime.get(i)) {
+ previousPartition = p1;
+ p1Index++;
+ } else if (p2InitTime.get(0) == allInitTime.get(i)) {
+ previousPartition = p2;
+ p2Index++;
+
+ }
+ } else if (previousPartition.equals(p1)) {
+ p2Index++;
+ previousPartition = p2;
+ assertEquals("Partition-2 doesn't not contain correct values in current " +
+ "iteration", allInitTime.get(i), p2InitTime.get(p2Index));
+ if (p1Index >= 0) {
+ assertEquals("Partition-1 doesn't not contain correct values in the " +
+ "previous iteration", allInitTime.get(i - 1), p1InitTime.get(p1Index));
+ if (p1Index + 1 <= (p1InitTime.size() - 1) && i + 1 <= (allInitTime.size() - 1)) {
+ assertEquals("Partition-1 doesn't not contain correct " +
+ "values in the next iteration",
+ allInitTime.get(i + 1), p1InitTime.get(p1Index + 1));
+
+ }
+ }
+ } else {
+ p1Index++;
+ previousPartition = p1;
+ assertEquals("Partition-1 doesn't not contain correct values in current " +
+ "iteration", allInitTime.get(i), p1InitTime.get(p1Index));
+ if (p2Index >= 0) {
+ assertEquals("Partition-2 doesn't not contain correct values " +
+ "in the previous iteration", allInitTime.get(i - 1), p2InitTime.get(p2Index));
+ if ((p2Index + 1) <= (p2InitTime.size() - 1) && (i + 1) <= (allInitTime.size() - 1)) {
+ assertEquals("Partition-2 doesn't not contain correct values " +
+ "in the next iteration",
+ allInitTime.get(i + 1), p2InitTime.get(p2Index + 1));
+ }
+ }
+ }
+
+ }
+
+
+ }
+
+ }
+
+
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/PartitionRoundRobinClusterTest.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/PartitionRoundRobinClusterTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/PartitionRoundRobinClusterTest.java
new file mode 100644
index 0000000..ab7d592
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/PartitionRoundRobinClusterTest.java
@@ -0,0 +1,305 @@
+/*
+ * 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.
+ */
+package org.apache.stratos.integration.tests.application;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.stratos.common.beans.application.ApplicationBean;
+import org.apache.stratos.common.beans.policy.deployment.ApplicationPolicyBean;
+import org.apache.stratos.integration.tests.RestConstants;
+import org.apache.stratos.integration.tests.StratosTestServerManager;
+import org.apache.stratos.integration.tests.TopologyHandler;
+import org.apache.stratos.messaging.domain.application.Application;
+import org.apache.stratos.messaging.domain.application.ApplicationStatus;
+import org.apache.stratos.messaging.domain.application.ClusterDataHolder;
+import org.apache.stratos.messaging.domain.instance.ClusterInstance;
+import org.apache.stratos.messaging.domain.topology.Cluster;
+import org.apache.stratos.messaging.domain.topology.Member;
+import org.apache.stratos.messaging.domain.topology.Service;
+import org.apache.stratos.messaging.message.receiver.application.ApplicationManager;
+import org.apache.stratos.messaging.message.receiver.topology.TopologyManager;
+import org.testng.annotations.Test;
+
+import java.util.*;
+
+import static junit.framework.Assert.*;
+
+/**
+ * This will handle the scale-up and scale-down of a particular cluster bursting test cases
+ */
+public class PartitionRoundRobinClusterTest extends StratosTestServerManager {
+ private static final Log log = LogFactory.getLog(SampleApplicationsTest.class);
+ private static final String RESOURCES_PATH = "/partition-round-robin-cluster-test";
+
+
+ @Test
+ public void testDeployApplication() {
+ try {
+ log.info("-------------------------------Started application Bursting test case-------------------------------");
+
+ String autoscalingPolicyId = "autoscaling-policy-partition-round-robin-test";
+
+ boolean addedScalingPolicy = restClient.addEntity(RESOURCES_PATH + RestConstants.AUTOSCALING_POLICIES_PATH
+ + "/" + autoscalingPolicyId + ".json",
+ RestConstants.AUTOSCALING_POLICIES, RestConstants.AUTOSCALING_POLICIES_NAME);
+ assertEquals(addedScalingPolicy, true);
+
+ boolean addedC1 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c7-partition-round-robin-test.json",
+ RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
+ assertEquals(addedC1, true);
+
+ boolean addedN1 = restClient.addEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ "network-partition-partition-round-robin-test.json",
+ RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(addedN1, true);
+
+ boolean addedDep = restClient.addEntity(RESOURCES_PATH + RestConstants.DEPLOYMENT_POLICIES_PATH + "/" +
+ "deployment-policy-partition-round-robin-test.json",
+ RestConstants.DEPLOYMENT_POLICIES, RestConstants.DEPLOYMENT_POLICIES_NAME);
+ assertEquals(addedDep, true);
+
+ boolean added = restClient.addEntity(RESOURCES_PATH + RestConstants.APPLICATIONS_PATH + "/" +
+ "partition-round-robin-test.json", RestConstants.APPLICATIONS,
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(added, true);
+
+ ApplicationBean bean = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
+ "partition-round-robin-test", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+ assertEquals(bean.getApplicationId(), "partition-round-robin-test");
+
+ boolean addAppPolicy = restClient.addEntity(RESOURCES_PATH + RestConstants.APPLICATION_POLICIES_PATH + "/" +
+ "application-policy-partition-round-robin-test.json", RestConstants.APPLICATION_POLICIES,
+ RestConstants.APPLICATION_POLICIES_NAME);
+ assertEquals(addAppPolicy, true);
+
+ //deploy the application
+ String resourcePath = RestConstants.APPLICATIONS + "/" + "partition-round-robin-test" +
+ RestConstants.APPLICATIONS_DEPLOY + "/" + "application-policy-partition-round-robin-test";
+ boolean deployed = restClient.deployEntity(resourcePath,
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(deployed, true);
+
+
+ //Application active handling
+ TopologyHandler.getInstance().assertApplicationStatus(bean.getApplicationId(),
+ ApplicationStatus.Active);
+
+ //Cluster active handling
+ TopologyHandler.getInstance().assertClusterActivation(bean.getApplicationId());
+
+ //Verifying whether members got created using round robin algorithm
+ assertClusterWithRoundRobinAlgorithm(bean.getApplicationId());
+
+ //Application in-active handling
+ log.info("Waiting for the faulty member detection from " +
+ "CEP as the statistics are stopped...");
+ TopologyHandler.getInstance().assertApplicationStatus(bean.getApplicationId(),
+ ApplicationStatus.Inactive);
+
+ //Application active handling after application becomes active again
+ TopologyHandler.getInstance().assertApplicationStatus(bean.getApplicationId(),
+ ApplicationStatus.Active);
+
+ //Cluster active handling
+ TopologyHandler.getInstance().assertClusterActivation(bean.getApplicationId());
+
+ boolean removedAuto = restClient.removeEntity(RestConstants.AUTOSCALING_POLICIES,
+ autoscalingPolicyId, RestConstants.AUTOSCALING_POLICIES_NAME);
+ assertEquals(removedAuto, false);
+
+ boolean removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
+ "network-partition-partition-round-robin-test",
+ RestConstants.NETWORK_PARTITIONS_NAME);
+ //Trying to remove the used network partition
+ assertEquals(removedNet, false);
+
+ boolean removedDep = restClient.removeEntity(RestConstants.DEPLOYMENT_POLICIES,
+ "deployment-policy-partition-round-robin-test", RestConstants.DEPLOYMENT_POLICIES_NAME);
+ assertEquals(removedDep, false);
+
+ //Un-deploying the application
+ String resourcePathUndeploy = RestConstants.APPLICATIONS + "/" + "partition-round-robin-test" +
+ RestConstants.APPLICATIONS_UNDEPLOY;
+
+ boolean unDeployed = restClient.undeployEntity(resourcePathUndeploy,
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(unDeployed, true);
+
+ boolean undeploy = TopologyHandler.getInstance().assertApplicationUndeploy("partition-round-robin-test");
+ if (!undeploy) {
+ //Need to forcefully undeploy the application
+ log.info("Force undeployment is going to start for the [application] " + "partition-round-robin-test");
+
+ restClient.undeployEntity(RestConstants.APPLICATIONS + "/" + "partition-round-robin-test" +
+ RestConstants.APPLICATIONS_UNDEPLOY + "?force=true", RestConstants.APPLICATIONS);
+
+ boolean forceUndeployed = TopologyHandler.getInstance().assertApplicationUndeploy("partition-round-robin-test");
+ assertEquals(String.format("Forceful undeployment failed for the application %s",
+ "partition-round-robin-test"), forceUndeployed, true);
+
+ }
+
+ boolean removed = restClient.removeEntity(RestConstants.APPLICATIONS, "partition-round-robin-test",
+ RestConstants.APPLICATIONS_NAME);
+ assertEquals(removed, true);
+
+ ApplicationBean beanRemoved = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
+ "partition-round-robin-test", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+ assertEquals(beanRemoved, null);
+
+ boolean removedC1 = restClient.removeEntity(RestConstants.CARTRIDGES, "c7-partition-round-robin-test",
+ RestConstants.CARTRIDGES_NAME);
+ assertEquals(removedC1, true);
+
+
+ removedAuto = restClient.removeEntity(RestConstants.AUTOSCALING_POLICIES,
+ autoscalingPolicyId, RestConstants.AUTOSCALING_POLICIES_NAME);
+ assertEquals(removedAuto, true);
+
+ removedDep = restClient.removeEntity(RestConstants.DEPLOYMENT_POLICIES,
+ "deployment-policy-partition-round-robin-test", RestConstants.DEPLOYMENT_POLICIES_NAME);
+ assertEquals(removedDep, true);
+
+ removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
+ "network-partition-partition-round-robin-test", RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(removedNet, false);
+
+
+ boolean removeAppPolicy = restClient.removeEntity(RestConstants.APPLICATION_POLICIES,
+ "application-policy-partition-round-robin-test", RestConstants.APPLICATION_POLICIES_NAME);
+ assertEquals(removeAppPolicy, true);
+
+ removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
+ "network-partition-partition-round-robin-test", RestConstants.NETWORK_PARTITIONS_NAME);
+ assertEquals(removedNet, true);
+
+ log.info("-------------------------------Ended application bursting test case-------------------------------");
+
+ } catch (Exception e) {
+ log.error("An error occurred while handling application bursting", e);
+ assertTrue("An error occurred while handling application bursting", false);
+ }
+ }
+
+ /**
+ * Assert application activation
+ *
+ * @param applicationName
+ */
+ private void assertClusterWithRoundRobinAlgorithm(String applicationName) {
+ Application application = ApplicationManager.getApplications().getApplication(applicationName);
+ assertNotNull(String.format("Application is not found: [application-id] %s",
+ applicationName), application);
+
+ Set<ClusterDataHolder> clusterDataHolderSet = application.getClusterDataRecursively();
+ for (ClusterDataHolder clusterDataHolder : clusterDataHolderSet) {
+ String serviceName = clusterDataHolder.getServiceType();
+ String clusterId = clusterDataHolder.getClusterId();
+ Service service = TopologyManager.getTopology().getService(serviceName);
+ assertNotNull(String.format("Service is not found: [application-id] %s [service] %s",
+ applicationName, serviceName), service);
+
+ Cluster cluster = service.getCluster(clusterId);
+ assertNotNull(String.format("Cluster is not found: [application-id] %s [service] %s [cluster-id] %s",
+ applicationName, serviceName, clusterId), cluster);
+
+ for (ClusterInstance instance : cluster.getInstanceIdToInstanceContextMap().values()) {
+ List<String> partitionsUsedInMembers = new ArrayList<String>();
+ Map<String, List<Long>> partitionIdToMembersMap = new HashMap<String, List<Long>>();
+ for (Member member : cluster.getMembers()) {
+ String partitionId = member.getPartitionId();
+ if (!partitionIdToMembersMap.containsKey(partitionId)) {
+ List<Long> members = new ArrayList<Long>();
+ members.add(member.getInitTime());
+ partitionIdToMembersMap.put(partitionId, members);
+ } else {
+ partitionIdToMembersMap.get(partitionId).add(member.getInitTime());
+ }
+ if (!partitionsUsedInMembers.contains(partitionId)) {
+ partitionsUsedInMembers.add(partitionId);
+ }
+ }
+ String p1 = "network-partition-11-partition-1";
+ String p2 = "network-partition-11-partition-2";
+ List<Long> p1InitTime = partitionIdToMembersMap.get(p1);
+ Collections.sort(p1InitTime);
+
+ List<Long> p2InitTime = partitionIdToMembersMap.get(p2);
+ Collections.sort(p2InitTime);
+
+ List<Long> allInitTime = new ArrayList<Long>();
+ allInitTime.addAll(p1InitTime);
+ allInitTime.addAll(p2InitTime);
+ Collections.sort(allInitTime);
+
+ int p1Index = -1;
+ int p2Index = -1;
+ String previousPartition = null;
+ for (int i = 0; i < allInitTime.size(); i++) {
+ if (previousPartition == null) {
+ if (p1InitTime.get(0) == allInitTime.get(i)) {
+ previousPartition = p1;
+ p1Index++;
+ } else if (p2InitTime.get(0) == allInitTime.get(i)) {
+ previousPartition = p2;
+ p2Index++;
+
+ }
+ } else if (previousPartition.equals(p1)) {
+ p2Index++;
+ previousPartition = p2;
+ assertEquals("Partition-2 doesn't not contain correct values in current " +
+ "iteration", allInitTime.get(i), p2InitTime.get(p2Index));
+ if (p1Index >= 0) {
+ assertEquals("Partition-1 doesn't not contain correct values in the " +
+ "previous iteration", allInitTime.get(i - 1), p1InitTime.get(p1Index));
+ if (p1Index + 1 <= (p1InitTime.size() - 1) && i + 1 <= (allInitTime.size() - 1)) {
+ assertEquals("Partition-1 doesn't not contain correct " +
+ "values in the next iteration",
+ allInitTime.get(i + 1), p1InitTime.get(p1Index + 1));
+
+ }
+ }
+ } else {
+ p1Index++;
+ previousPartition = p1;
+ assertEquals("Partition-1 doesn't not contain correct values in current " +
+ "iteration", allInitTime.get(i), p1InitTime.get(p1Index));
+ if (p2Index >= 0) {
+ assertEquals("Partition-2 doesn't not contain correct values " +
+ "in the previous iteration", allInitTime.get(i - 1), p2InitTime.get(p2Index));
+ if ((p2Index + 1) <= (p2InitTime.size() - 1) && (i + 1) <= (allInitTime.size() - 1)) {
+ assertEquals("Partition-2 doesn't not contain correct values " +
+ "in the next iteration",
+ allInitTime.get(i + 1), p2InitTime.get(p2Index + 1));
+ }
+ }
+ }
+
+ }
+
+
+ }
+
+ }
+
+
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/rest/IntegrationMockClient.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/rest/IntegrationMockClient.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/rest/IntegrationMockClient.java
new file mode 100644
index 0000000..2b094a4
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/rest/IntegrationMockClient.java
@@ -0,0 +1,105 @@
+/*
+ * 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.
+ */
+package org.apache.stratos.integration.tests.rest;
+
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.http.client.methods.HttpDelete;
+import org.apache.http.client.methods.HttpRequestBase;
+import org.apache.http.client.utils.URIBuilder;
+import org.apache.http.impl.client.DefaultHttpClient;
+import org.apache.http.impl.conn.PoolingClientConnectionManager;
+import org.apache.stratos.mock.iaas.client.MockIaasApiClient;
+import org.apache.stratos.mock.iaas.client.rest.*;
+import org.apache.stratos.mock.iaas.client.rest.HttpResponse;
+import org.apache.stratos.mock.iaas.client.rest.HttpResponseHandler;
+import org.apache.stratos.mock.iaas.client.rest.RestClient;
+import org.apache.stratos.mock.iaas.domain.*;
+
+import java.net.URI;
+
+/**
+ * Mock client
+ */
+public class IntegrationMockClient extends MockIaasApiClient {
+ private static final Log log = LogFactory.getLog(IntegrationMockClient.class);
+ private static final String INSTANCES_CONTEXT = "/instances/";
+ private DefaultHttpClient httpClient;
+ private String endpoint;
+
+ public IntegrationMockClient(String endpoint) {
+ super(endpoint);
+ this.endpoint = endpoint;
+ PoolingClientConnectionManager cm = new PoolingClientConnectionManager();
+ // Increase max total connection to 200
+ cm.setMaxTotal(200);
+ // Increase default max connection per route to 50
+ cm.setDefaultMaxPerRoute(50);
+
+ httpClient = new DefaultHttpClient(cm);
+ httpClient = (DefaultHttpClient) WebClientWrapper.wrapClient(httpClient);
+ }
+
+ public void terminateInstance(String instanceId) {
+ try {
+ if (log.isDebugEnabled()) {
+ log.debug(String.format("Terminate instance: [instance-id] %s", instanceId));
+ }
+ URI uri = new URIBuilder(endpoint + INSTANCES_CONTEXT + instanceId).build();
+ org.apache.stratos.mock.iaas.client.rest.HttpResponse response = doDelete(uri);
+ if (response != null) {
+ if ((response.getStatusCode() >= 200) && (response.getStatusCode() < 300)) {
+ return;
+ } else {
+ GsonBuilder gsonBuilder = new GsonBuilder();
+ Gson gson = gsonBuilder.create();
+ ErrorResponse errorResponse = gson.fromJson(response.getContent(), ErrorResponse.class);
+ if (errorResponse != null) {
+ throw new RuntimeException(errorResponse.getErrorMessage());
+ }
+ }
+ }
+ throw new RuntimeException("An unknown error occurred");
+ } catch (Exception e) {
+ String message = "Could not start mock instance";
+ throw new RuntimeException(message, e);
+ }
+ }
+
+ public HttpResponse doDelete(URI resourcePath) throws Exception {
+ HttpDelete httpDelete = null;
+ try {
+ httpDelete = new HttpDelete(resourcePath);
+ httpDelete.addHeader("Content-Type", "application/json");
+
+ return httpClient.execute(httpDelete, new HttpResponseHandler());
+ } finally {
+ releaseConnection(httpDelete);
+ }
+ }
+
+ private void releaseConnection(HttpRequestBase request) {
+ if (request != null) {
+ request.releaseConnection();
+ }
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-bursting-test/application-policies/application-policy-3.json.orig
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/application-policies/application-policy-3.json.orig b/products/stratos/modules/integration/src/test/resources/application-bursting-test/application-policies/application-policy-3.json.orig
new file mode 100644
index 0000000..a461844
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-bursting-test/application-policies/application-policy-3.json.orig
@@ -0,0 +1,18 @@
+{
+ "id": "application-policy-3",
+ "algorithm": "one-after-another",
+ "networkPartitions": [
+ "network-partition-9",
+ "network-partition-10"
+ ],
+ "properties": [
+ {
+ "name": "key-1",
+ "value": "network-partition-9|network-partition-10"
+ },
+ {
+ "name": "key-2",
+ "value": "value-2"
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-bursting-test/application-policies/application-policy-application-bursting-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/application-policies/application-policy-application-bursting-test.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/application-policies/application-policy-application-bursting-test.json
new file mode 100644
index 0000000..4d1d35f
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-bursting-test/application-policies/application-policy-application-bursting-test.json
@@ -0,0 +1,18 @@
+{
+ "id": "application-policy-application-bursting-test",
+ "algorithm": "one-after-another",
+ "networkPartitions": [
+ "network-partition-application-bursting-test-1",
+ "network-partition-application-bursting-test-2"
+ ],
+ "properties": [
+ {
+ "name": "networkPartitionGroups",
+ "value": "network-partition-application-bursting-test-1|network-partition-application-bursting-test-2"
+ },
+ {
+ "name": "key-2",
+ "value": "value-2"
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-bursting-test/autoscaling-policies/autoscaling-policy-application-bursting-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/autoscaling-policies/autoscaling-policy-application-bursting-test.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/autoscaling-policies/autoscaling-policy-application-bursting-test.json
new file mode 100644
index 0000000..697cb70
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-bursting-test/autoscaling-policies/autoscaling-policy-application-bursting-test.json
@@ -0,0 +1,14 @@
+{
+ "id": "autoscaling-policy-application-bursting-test",
+ "loadThresholds": {
+ "requestsInFlight": {
+ "threshold": 35
+ },
+ "memoryConsumption": {
+ "threshold": 45
+ },
+ "loadAverage": {
+ "threshold": 25
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges-groups/esb-php-group-application-bursting-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges-groups/esb-php-group-application-bursting-test.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges-groups/esb-php-group-application-bursting-test.json
new file mode 100644
index 0000000..8fbab89
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges-groups/esb-php-group-application-bursting-test.json
@@ -0,0 +1,19 @@
+{
+ "name": "esb-php-group-application-bursting-test",
+ "cartridges": [
+ "esb-application-bursting-test",
+ "php-application-bursting-test"
+ ],
+ "dependencies": {
+ "startupOrders": [
+ {
+ "aliases": [
+ "cartridge.my-esb-application-bursting-test",
+ "cartridge.my-php-application-bursting-test"
+ ]
+ }
+ ],
+ "terminationBehaviour": "terminate-none"
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/esb-application-bursting-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/esb-application-bursting-test.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/esb-application-bursting-test.json
new file mode 100755
index 0000000..d97f9ff
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/esb-application-bursting-test.json
@@ -0,0 +1,50 @@
+{
+ "type": "esb-application-bursting-test",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "framework",
+ "displayName": "esb-application-bursting-test",
+ "description": "esb-application-bursting-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "name": "http-22",
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ],
+ "metadataKeys": [
+ "server_ip",
+ "username",
+ "password"
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/php-application-bursting-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/php-application-bursting-test.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/php-application-bursting-test.json
new file mode 100755
index 0000000..02d0d9d
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/php-application-bursting-test.json
@@ -0,0 +1,51 @@
+{
+ "type": "php-application-bursting-test",
+ "provider": "apache",
+ "category": "framework",
+ "host": "php.stratos.org",
+ "displayName": "php-application-bursting-test",
+ "description": "php-application-bursting-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "name": "http-80",
+ "protocol": "http",
+ "port": "8080",
+ "proxyPort": "8280"
+ },
+ {
+ "name": "http-22",
+ "protocol": "tcp",
+ "port": "22",
+ "proxyPort": "8222"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "reka"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/tomcat-application-bursting-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/tomcat-application-bursting-test.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/tomcat-application-bursting-test.json
new file mode 100755
index 0000000..b63d568
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/tomcat-application-bursting-test.json
@@ -0,0 +1,53 @@
+{
+ "type": "tomcat-application-bursting-test",
+ "provider": "apache",
+ "host": "tomcat.stratos.org",
+ "category": "framework",
+ "displayName": "tomcat-application-bursting-test",
+ "description": "tomcat-application-bursting-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "name": "http-22",
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ },
+ {
+ "protocol": "http",
+ "port": "8080",
+ "proxyPort": "80"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ],
+ "metadataKeys": [
+ "url"
+ ]
+}
[06/11] stratos git commit: Merge the latest changes of integration
test from master branch
Posted by ga...@apache.org.
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/wso2carbon-working.log
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/wso2carbon-working.log b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/wso2carbon-working.log
new file mode 100755
index 0000000..2dfb31f
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/wso2carbon-working.log
@@ -0,0 +1,1053 @@
+TID: [2015-04-22 21:13:10,694] INFO {org.wso2.carbon.server.extensions.PatchInstaller} - Patch changes detected {org.wso2.carbon.server.extensions.PatchInstaller}
+TID: [2015-04-22 21:13:11,008] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Backed up plugins to patch0000 {org.wso2.carbon.server.util.PatchUtils.console}
+TID: [2015-04-22 21:13:11,857] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Patch verification started {org.wso2.carbon.server.util.PatchUtils.console}
+TID: [2015-04-22 21:13:12,133] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Patch verification successfully completed without encountering any issues. {org.wso2.carbon.server.util.PatchUtils.console}
+TID: [0] [STRATOS] [2015-04-22 21:13:16,841] INFO {org.wso2.carbon.cassandra.dataaccess.DataAccessComponentManager} - There is no /repository/conf/etc/cassandra-component.xml. Using the default configuration
+TID: [0] [STRATOS] [2015-04-22 21:13:16,877] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Starting WSO2 Carbon...
+TID: [0] [STRATOS] [2015-04-22 21:13:16,879] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Operating System : Linux 3.13.0-46-generic, amd64
+TID: [0] [STRATOS] [2015-04-22 21:13:16,879] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Home : /opt/jdk1.7.0_67/jre
+TID: [0] [STRATOS] [2015-04-22 21:13:16,879] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Version : 1.7.0_67
+TID: [0] [STRATOS] [2015-04-22 21:13:16,879] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM : Java HotSpot(TM) 64-Bit Server VM 24.65-b04,Oracle Corporation
+TID: [0] [STRATOS] [2015-04-22 21:13:16,879] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Carbon Home : /opt/wso2/apache-stratos
+TID: [0] [STRATOS] [2015-04-22 21:13:16,880] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Temp Dir : /opt/wso2/apache-stratos/tmp
+TID: [0] [STRATOS] [2015-04-22 21:13:16,880] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - User : root, en-US, Etc/UTC
+TID: [0] [STRATOS] [2015-04-22 21:13:16,955] WARN {org.wso2.carbon.core.bootup.validator.SystemValidator} - Could not validate the system for configuration parameter : CPU
+TID: [0] [STRATOS] [2015-04-22 21:13:16,956] WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} - The default keystore (wso2carbon.jks) is currently being used. To maximize security when deploying to a production environment, configure a new keystore with a unique password in the production server profile.
+TID: [0] [STRATOS] [2015-04-22 21:13:16,956] WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} - Swap Memory size (MB): 0 of the system is below the recommended minimum size :2048
+TID: [0] [STRATOS] [2015-04-22 21:13:17,021] INFO {org.wso2.carbon.databridge.agent.thrift.AgentHolder} - Agent created !
+TID: [0] [STRATOS] [2015-04-22 21:13:17,039] INFO {org.wso2.carbon.databridge.agent.thrift.internal.AgentDS} - Successfully deployed Agent Client
+TID: [0] [STRATOS] [2015-04-22 21:13:17,063] INFO {org.wso2.carbon.event.input.adaptor.core.internal.ds.InputEventAdaptorServiceTrackerDS} - Successfully deployed the input event adaptor tracker service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,069] INFO {org.wso2.carbon.event.input.adaptor.jms.internal.ds.JMSEventAdaptorServiceDS} - Successfully deployed the input jms event adaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:17,074] INFO {org.wso2.carbon.event.input.adaptor.manager.core.internal.ds.InputEventAdaptorTypeServiceTrackerDS} - Successfully deployed the input event adaptor type tracker service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,085] INFO {org.wso2.carbon.event.output.adaptor.cassandra.internal.ds.CassandraEventAdaptorServiceDS} - Successfully deployed the output cassandra event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,089] INFO {org.wso2.carbon.event.output.adaptor.core.internal.ds.OutputEventAdaptorServiceTrackerDS} - Successfully deployed the output event adaptor tracker service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,095] INFO {org.wso2.carbon.event.output.adaptor.http.internal.ds.HTTPEventAdaptorServiceDS} - Successfully deployed the output HTTP event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,101] INFO {org.wso2.carbon.event.output.adaptor.jms.internal.ds.JMSEventAdaptorServiceDS} - Successfully deployed the output jms event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,107] INFO {org.wso2.carbon.event.output.adaptor.manager.core.internal.ds.OutputEventAdaptorTypeServiceTrackerDS} - Successfully deployed the event adaptor type tracker service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,120] INFO {org.wso2.carbon.event.output.adaptor.wso2event.internal.ds.WSO2EventAdaptorServiceDS} - Successfully deployed the output WSO2Event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,139] INFO {org.wso2.carbon.event.input.adaptor.manager.core.internal.ds.InputEventAdaptorManagerDS} - Successfully deployed the input event adaptor manager service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,139] INFO {org.wso2.carbon.event.input.adaptor.core.internal.ds.InputEventAdaptorServiceDS} - Successfully deployed the input event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,150] INFO {org.wso2.carbon.event.output.adaptor.manager.core.internal.ds.OutputEventAdaptorManagerDS} - Successfully deployed the output event adaptor manager service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,150] INFO {org.wso2.carbon.event.output.adaptor.core.internal.ds.OutputEventAdaptorServiceDS} - Successfully deployed the output event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,162] INFO {org.wso2.carbon.event.statistics.internal.ds.EventStatisticsDS} - Successfully deployed the event statistics monitoring service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,620] INFO {org.wso2.carbon.social.internal.SocialComponent} - Social Activity bundle is activated
+TID: [0] [STRATOS] [2015-04-22 21:13:18,407] INFO {org.wso2.carbon.cassandra.server.internal.CassandraServerDSComponent} - There is no /repository/conf/etc/cassandra.yaml. Using the default configuration
+TID: [0] [STRATOS] [2015-04-22 21:13:18,451] INFO {org.wso2.carbon.event.input.adaptor.wso2event.internal.ds.WSO2EventAdaptorServiceDS} - Successfully deployed the input WSO2Event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:18,453] INFO {org.wso2.carbon.loggeraggregator.internal.LogAggregator} - Successfully started Log Aggregator
+TID: [0] [STRATOS] [2015-04-22 21:13:18,453] INFO {org.wso2.carbon.databridge.core.internal.DataBridgeDS} - Successfully deployed Agent Server
+TID: [0] [STRATOS] [2015-04-22 21:13:18,683] INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Configured Registry in 167ms
+TID: [0] [STRATOS] [2015-04-22 21:13:19,032] INFO {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} - Registry Mode : READ-WRITE
+TID: [0] [STRATOS] [2015-04-22 21:13:19,109] INFO {org.wso2.carbon.event.output.adaptor.mysql.internal.ds.MysqlEventAdaptorServiceDS} - Successfully deployed the output mysql event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:19,110] INFO {org.wso2.carbon.event.processor.siddhi.extension.internal.SiddhiExtensionDS} - Successfully activated Property Window
+TID: [0] [STRATOS] [2015-04-22 21:13:19,200] INFO {org.wso2.carbon.event.builder.core.internal.ds.EventBuilderServiceDS} - Successfully deployed EventBuilderService.
+TID: [0] [STRATOS] [2015-04-22 21:13:19,220] INFO {org.wso2.carbon.event.formatter.core.internal.ds.EventFormatterServiceDS} - Successfully deployed EventFormatterService
+TID: [0] [STRATOS] [2015-04-22 21:13:19,221] INFO {org.wso2.carbon.event.processor.core.internal.ds.EventProcessorServiceDS} - Successfully deployed EventProcessorService
+TID: [0] [STRATOS] [2015-04-22 21:13:19,221] INFO {org.wso2.carbon.event.builder.core.internal.ds.EventBuilderServiceDS} - Successfully deployed EventBuilder EventReceiver.
+TID: [0] [STRATOS] [2015-04-22 21:13:19,281] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,340] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :in_flight_requests_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,359] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,364] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :gradient_in_flight_requests_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,381] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,385] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :average_in_flight_requests_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,403] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,408] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :average_served_request_count_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,425] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,429] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :second_derivative_in_flight_requests_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,445] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,450] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :cartridge_agent_health_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,466] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,470] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :average_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,487] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,492] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :average_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,509] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,514] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :gradient_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,530] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,535] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :gradient_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,551] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,555] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :second_derivative_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,571] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,576] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :second_derivative_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,592] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,597] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :fault_message_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,614] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,618] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_average_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,635] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,640] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_average_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,656] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,661] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_gradient_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,679] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,684] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_gradient_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,702] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,707] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_second_derivative_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,725] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,730] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_second_derivative_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,730] INFO {org.wso2.carbon.event.builder.core.internal.ds.EventBuilderServiceDS} - Successfully deployed EventBuilder PassthroughReceiverConfigurator.
+TID: [0] [STRATOS] [2015-04-22 21:13:19,732] INFO {org.wso2.carbon.event.stream.manager.core.internal.ds.EventStreamServiceDS} - Successfully deployed EventStreamService
+TID: [0] [STRATOS] [2015-04-22 21:13:19,748] INFO {org.wso2.carbon.identity.application.mgt.internal.ApplicationManagementServiceComponent} - Identity ApplicationManagementComponent bundle is activated
+TID: [0] [STRATOS] [2015-04-22 21:13:20,286] INFO {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} - Carbon UserStoreMgtDSComponent activated successfully.
+TID: [0] [STRATOS] [2015-04-22 21:13:25,504] INFO {org.apache.axis2.deployment.ClusterBuilder} - Clustering has been disabled
+TID: [0] [STRATOS] [2015-04-22 21:13:25,858] INFO {org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer} - User Store Configuration Deployer initiated.
+TID: [0] [STRATOS] [2015-04-22 21:13:25,898] INFO {org.wso2.carbon.stratos.landing.page.deployer.LandingPageWebappDeployer} - Deployed product landing page webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/home]
+TID: [0] [STRATOS] [2015-04-22 21:13:25,930] INFO {org.apache.axis2.transport.tcp.TCPTransportSender} - TCP Sender started
+TID: [0] [STRATOS] [2015-04-22 21:13:25,951] INFO {org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService} - Execution plan deployment held back and in inactive state: AverageHeathRequest. Event receiver not found for stream ID : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:25,951] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan deployment held back and in inactive state : AverageHeathRequest ,waiting for dependency : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:25,955] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageInFlightRequestsEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:25,956] INFO {org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService} - Execution plan deployment held back and in inactive state: AverageInFlightRequestsFinder. Event receiver not found for stream ID : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:25,956] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan deployment held back and in inactive state : AverageInFlightRequestsFinder ,waiting for dependency : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:25,957] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageLoadAverageEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:25,958] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageMemoryConsumptionEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:25,958] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageServedRequestsEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:25,962] INFO {org.wso2.carbon.event.input.adaptor.manager.core.InputEventAdaptorDeployer} - Input Event Adaptor deployed successfully and in active state : DefaultWSO2EventInputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:25,965] INFO {org.wso2.carbon.event.output.adaptor.manager.core.OutputEventAdaptorDeployer} - Output Event Adaptor successfully deployed and in active state : DefaultWSO2EventOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:26,018] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: echo {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 21:13:26,081] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: Echo.aar - file:/opt/wso2/apache-stratos/repository/deployment/server/axis2services/Echo.aar
+TID: [0] [STRATOS] [2015-04-22 21:13:26,082] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : FaultMessageEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:26,083] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : GradientInFlightRequestsEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:26,084] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : GradientLoadAverageEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:26,085] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : GradientMemoryConsumptionEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:26,086] INFO {org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService} - Execution plan deployment held back and in inactive state: GradientOfHealthRequest. Event receiver not found for stream ID : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,086] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan deployment held back and in inactive state : GradientOfHealthRequest ,waiting for dependency : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,087] INFO {org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService} - Execution plan deployment held back and in inactive state: GradientOfRequestsInFlightFinder. Event receiver not found for stream ID : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,087] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan deployment held back and in inactive state : GradientOfRequestsInFlightFinder ,waiting for dependency : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,110] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,113] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,114] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution Plan was undeployed successfully : AverageHeathRequest.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,308] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,308] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,308] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,308] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,309] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,309] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,309] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : AverageHeathRequest
+TID: [0] [STRATOS] [2015-04-22 21:13:26,309] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution Plan was undeployed successfully : GradientOfHealthRequest.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,401] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] cep.extension.thread.pool [size] 10
+TID: [0] [STRATOS] [2015-04-22 21:13:26,406] INFO {org.apache.stratos.cep.extension.CEPTopologyEventReceiver} - CEP topology event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:26,406] INFO {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator} - Topology event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:26,409] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,410] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : GradientOfHealthRequest
+TID: [0] [STRATOS] [2015-04-22 21:13:26,413] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : HealthStatisticsEventBuilder
+TID: [0] [STRATOS] [2015-04-22 21:13:26,425] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event builder deployment held back and in inactive state :InstanceStatusStatisticsBuilder, Stream validation exception : Input stream definition is not available
+TID: [0] [STRATOS] [2015-04-22 21:13:26,426] INFO {org.wso2.carbon.event.output.adaptor.manager.core.OutputEventAdaptorDeployer} - Output Event Adaptor successfully deployed and in active state : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:26,427] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,440] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageInFlightRequestsEventFormatter.xml, waiting for dependency : average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,440] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageLoadAverageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,452] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,452] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : AverageLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,452] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageMemoryConsumptionEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,460] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,461] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : AverageMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,461] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageServedRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,469] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageServedRequestsEventFormatter.xml, waiting for dependency : average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,469] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : FaultMessageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,476] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,477] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : FaultMessageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,477] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : GradientInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,484] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : GradientInFlightRequestsEventFormatter.xml, waiting for dependency : gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,484] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : GradientLoadAverageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,492] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,492] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : GradientLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,492] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : GradientMemoryConsumptionEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,500] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,500] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : GradientMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,508] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,509] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,509] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution Plan was undeployed successfully : AverageInFlightRequestsFinder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,522] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,526] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,526] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : AverageRequestsInflightEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,527] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageServedRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,530] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,531] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : AverageServedRequestsEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,531] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,531] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,531] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,531] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : AverageInFlightRequestsFinder
+TID: [0] [STRATOS] [2015-04-22 21:13:26,531] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution Plan was undeployed successfully : GradientOfRequestsInFlightFinder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,537] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : GradientInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,541] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,541] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : GradientInFlightRequestsEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,541] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,541] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,541] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : GradientOfRequestsInFlightFinder
+TID: [0] [STRATOS] [2015-04-22 21:13:26,541] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : LoadBalancerStatisticsEventBuilder
+TID: [0] [STRATOS] [2015-04-22 21:13:26,549] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,549] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberAverageLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,557] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,557] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberAverageMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,565] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,565] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberGradientLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,573] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,573] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberGradientMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,581] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : MemberSecondDerivativeLoadAverageEventFormatter.xml, waiting for dependency : member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,588] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : MemberSecondDerivativeMemoryConsumptionEventFormatter.xml, waiting for dependency : member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,613] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/STRATOS_ROOT].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/STRATOS_ROOT]
+TID: [0] [STRATOS] [2015-04-22 21:13:26,625] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : SecondDerivativeInFlightRequestsEventFormatter.xml, waiting for dependency : second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,632] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : SecondDerivativeLoadAverageEventFormatter.xml, waiting for dependency : second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,641] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : SecondDerivativeMemoryConsumptionEventFormatter.xml, waiting for dependency : second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,659] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : SecondDerivativeMemoryConsumptionEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,663] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,663] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : SecondDerivativeMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,664] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : SecondDerivativeLoadAverageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,668] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,668] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : SecondDerivativeLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,668] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : MemberSecondDerivativeMemoryConsumptionEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,672] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,672] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberSecondDerivativeMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,672] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : MemberSecondDerivativeLoadAverageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,676] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,676] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberSecondDerivativeLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,676] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,676] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,676] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,676] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,676] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,676] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : SecondDerivativeOfHealthRequest
+TID: [0] [STRATOS] [2015-04-22 21:13:26,681] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : SecondDerivativeInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,685] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,685] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : SecondDerivativeEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,685] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,685] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,685] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : SecondDerivativeOfRequestsInFlightFinder
+TID: [0] [STRATOS] [2015-04-22 21:13:26,758] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: Version {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 21:13:26,781] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: Version.aar - file:/opt/wso2/apache-stratos/repository/deployment/server/axis2services/Version.aar
+TID: [0] [STRATOS] [2015-04-22 21:13:27,542] INFO {org.springframework.web.context.support.XmlWebApplicationContext} - Refreshing Root WebApplicationContext: startup date [Wed Apr 22 21:13:27 UTC 2015]; root of context hierarchy
+TID: [0] [STRATOS] [2015-04-22 21:13:27,626] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
+TID: [0] [STRATOS] [2015-04-22 21:13:27,696] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/api/WEB-INF/cxf-servlet.xml]
+TID: [0] [STRATOS] [2015-04-22 21:13:27,819] INFO {org.springframework.beans.factory.support.DefaultListableBeanFactory} - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5f0c5ef9: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,stratosApi,stratosApiV40,stratosApiV41,stratosApiBeanV40,stratosApiBeanV41,basicAuthenticationFilter,sessionAuthenticationFilter,authorizationFilterV40,authorizationFilterV41,exceptionHandler,badRequestExceptionHandler,genericExceptionHandler,throwableExceptionHandler,componentSynchronizerHandler,OAuthFilter,jsonProvider,schemaHolder,theSchemas]; root of factory hierarchy
+TID: [0] [STRATOS] [2015-04-22 21:13:28,319] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /
+TID: [0] [STRATOS] [2015-04-22 21:13:28,432] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /v4.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,455] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /v4.1
+TID: [0] [STRATOS] [2015-04-22 21:13:28,487] WARN {org.apache.cxf.jaxrs.utils.ResourceUtils} - No resource classpath:META-INF/jax-rs-catalog.xml is available
+TID: [0] [STRATOS] [2015-04-22 21:13:28,511] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/api.war]
+TID: [0] [STRATOS] [2015-04-22 21:13:28,556] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/authenticationendpoint].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/authenticationendpoint.war]
+TID: [0] [STRATOS] [2015-04-22 21:13:28,561] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,562] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,562] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : average_in_flight_requests_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:28,566] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,567] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,568] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : average_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:28,571] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,573] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,573] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : average_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:28,576] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,578] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,578] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : average_served_request_count_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:28,581] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : cartridge_agent_health_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:28,588] WARN {org.wso2.securevault.secret.handler.SecretManagerSecretCallbackHandler} - SecretManager has not been initialized.Cannot collect secrets.
+TID: [0] [STRATOS] [2015-04-22 21:13:28,588] WARN {org.apache.stratos.cloud.controller.config.parser.IaasProviderConfigParser} - Unable to find a value for identity element from Secure Vault.Hence we will try to assign the plain text value (if specified).
+TID: [0] [STRATOS] [2015-04-22 21:13:28,589] WARN {org.wso2.securevault.secret.handler.SecretManagerSecretCallbackHandler} - SecretManager has not been initialized.Cannot collect secrets.
+TID: [0] [STRATOS] [2015-04-22 21:13:28,589] WARN {org.apache.stratos.cloud.controller.config.parser.IaasProviderConfigParser} - Unable to find a value for credential element from Secure Vault.Hence we will try to assign the plain text value (if specified).
+TID: [0] [STRATOS] [2015-04-22 21:13:28,589] INFO {org.apache.stratos.cloud.controller.deployers.CloudControllerDeployer} - Successfully deployed the cloud-controller XML file located at /opt/wso2/apache-stratos/repository/deployment/server/../../conf/cloud-controller.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:29,344] INFO {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/console].File[/opt/wso2/apache-stratos/repository/deployment/server/jaggeryapps/console]
+TID: [0] [STRATOS] [2015-04-22 21:13:29,350] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,351] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,351] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : fault_message_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,356] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,357] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,358] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : gradient_in_flight_requests_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,362] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,364] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,364] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : gradient_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,368] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,369] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,369] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : gradient_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,373] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : in_flight_requests_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,377] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,379] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,379] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_average_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,383] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,385] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,385] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_average_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,389] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,390] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,390] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_gradient_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,394] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,396] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,396] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_gradient_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,400] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,402] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,402] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_second_derivative_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,406] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,408] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,408] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_second_derivative_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:30,125] INFO {org.springframework.web.context.support.XmlWebApplicationContext} - Refreshing Root WebApplicationContext: startup date [Wed Apr 22 21:13:30 UTC 2015]; root of context hierarchy
+TID: [0] [STRATOS] [2015-04-22 21:13:30,168] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
+TID: [0] [STRATOS] [2015-04-22 21:13:30,204] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/metadata/WEB-INF/cxf-servlet.xml]
+TID: [0] [STRATOS] [2015-04-22 21:13:30,299] INFO {org.springframework.beans.factory.support.DefaultListableBeanFactory} - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@47cdc4af: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,stratosMetaDataAdmin,stratosRestEndpointBean,exceptionHandler,genericExceptionHandler,throwableExceptionHandler,OAuthFilter,jsonProvider]; root of factory hierarchy
+TID: [0] [STRATOS] [2015-04-22 21:13:30,774] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /api
+TID: [0] [STRATOS] [2015-04-22 21:13:30,827] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/metadata].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/metadata.war]
+TID: [0] [STRATOS] [2015-04-22 21:13:31,529] INFO {org.springframework.web.context.support.XmlWebApplicationContext} - Refreshing Root WebApplicationContext: startup date [Wed Apr 22 21:13:31 UTC 2015]; root of context hierarchy
+TID: [0] [STRATOS] [2015-04-22 21:13:31,570] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
+TID: [0] [STRATOS] [2015-04-22 21:13:31,601] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/mock-iaas/WEB-INF/cxf-servlet.xml]
+TID: [0] [STRATOS] [2015-04-22 21:13:31,685] INFO {org.springframework.beans.factory.support.DefaultListableBeanFactory} - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3d731d5a: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,mockIaasApi,mockIaasApiBean,exceptionHandler,badRequestExceptionHandler,genericExceptionHandler,throwableExceptionHandler,jsonProvider]; root of factory hierarchy
+TID: [0] [STRATOS] [2015-04-22 21:13:32,038] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /api
+TID: [0] [STRATOS] [2015-04-22 21:13:32,087] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/mock-iaas].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/mock-iaas.war]
+TID: [0] [STRATOS] [2015-04-22 21:13:32,861] INFO {org.springframework.web.context.support.XmlWebApplicationContext} - Refreshing Root WebApplicationContext: startup date [Wed Apr 22 21:13:32 UTC 2015]; root of context hierarchy
+TID: [0] [STRATOS] [2015-04-22 21:13:32,901] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
+TID: [0] [STRATOS] [2015-04-22 21:13:32,932] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]
+TID: [0] [STRATOS] [2015-04-22 21:13:33,013] INFO {org.springframework.beans.factory.support.DefaultListableBeanFactory} - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6bbe35d2: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,tokEP,authzEndpointBean,tokenEndpointBean,revokeEndpointBean,userinfoEndpointBean]; root of factory hierarchy
+TID: [0] [STRATOS] [2015-04-22 21:13:33,348] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /
+TID: [0] [STRATOS] [2015-04-22 21:13:33,409] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/oauth2].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/oauth2.war]
+TID: [0] [STRATOS] [2015-04-22 21:13:33,416] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:33,417] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:33,417] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : second_derivative_in_flight_requests_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:33,421] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:33,423] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:33,423] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : second_derivative_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:33,426] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:33,428] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:33,428] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : second_derivative_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:33,660] INFO {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/sso].File[/opt/wso2/apache-stratos/repository/deployment/server/jaggeryapps/sso]
+TID: [0] [STRATOS] [2015-04-22 21:13:33,726] INFO {org.apache.axis2.deployment.ModuleDeployer} - Deploying module: addressing-1.6.1-wso2v10 - file:/opt/wso2/apache-stratos/repository/deployment/client/modules/addressing-1.6.1-wso2v10.mar
+TID: [0] [STRATOS] [2015-04-22 21:13:33,730] INFO {org.apache.axis2.deployment.ModuleDeployer} - Deploying module: rampart-1.6.1-wso2v8 - file:/opt/wso2/apache-stratos/repository/deployment/client/modules/rampart-1.6.1-wso2v8.mar
+TID: [0] [STRATOS] [2015-04-22 21:13:33,732] INFO {org.apache.axis2.transport.tcp.TCPTransportSender} - TCP Sender started
+TID: [0] [STRATOS] [2015-04-22 21:13:33,972] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: AutoscalerService {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 21:13:34,290] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.apache.stratos.autoscaler -
+TID: [0] [STRATOS] [2015-04-22 21:13:34,401] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: CloudControllerService {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 21:13:34,550] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.apache.stratos.cloud.controller -
+TID: [0] [STRATOS] [2015-04-22 21:13:34,573] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: StratosManagerService {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 21:13:34,693] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.apache.stratos.manager -
+TID: [0] [STRATOS] [2015-04-22 21:13:35,228] WARN {org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator} - We don't support method overloading. Ignoring [validateAudienceRestriction]
+TID: [0] [STRATOS] [2015-04-22 21:13:35,453] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.wso2.carbon.idp.mgt -
+TID: [0] [STRATOS] [2015-04-22 21:13:35,777] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: wso2carbon-sts {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 21:13:35,820] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.wso2.carbon.sts -
+TID: [0] [STRATOS] [2015-04-22 21:13:36,051] INFO {org.wso2.carbon.core.init.CarbonServerManager} - Repository : /opt/wso2/apache-stratos/repository/deployment/server/
+TID: [0] [STRATOS] [2015-04-22 21:13:36,110] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Component activation check interval: 1 seconds
+TID: [0] [STRATOS] [2015-04-22 21:13:36,110] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Component activation timeout: 600 seconds
+TID: [0] [STRATOS] [2015-04-22 21:13:36,118] INFO {org.apache.stratos.common.internal.CommonServiceComponent} - Stratos common service component is activated
+TID: [0] [STRATOS] [2015-04-22 21:13:36,197] INFO {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} - Permission cache updated for tenant -1234
+TID: [0] [STRATOS] [2015-04-22 21:13:36,470] INFO {org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceiver} - Thrift Server started at 0.0.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:36,479] INFO {org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceiver} - Thrift SSL port : 7711
+TID: [0] [STRATOS] [2015-04-22 21:13:36,483] INFO {org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceiver} - Thrift port : 7611
+TID: [0] [STRATOS] [2015-04-22 21:13:36,551] INFO {org.wso2.carbon.event.input.adaptor.wsevent.local.internal.ds.WSEventLocalEventAdaptorServiceDS} - Successfully deployed the input WSEventLocal adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:36,558] INFO {org.wso2.carbon.event.output.adaptor.wsevent.local.internal.ds.WSEventLocalEventAdaptorServiceDS} - Successfully deployed the output WSEventLocal adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:36,567] INFO {org.wso2.carbon.event.input.adaptor.email.internal.ds.EmailEventAdaptorServiceDS} - Successfully deployed the input email event service
+TID: [0] [STRATOS] [2015-04-22 21:13:36,573] INFO {org.wso2.carbon.event.input.adaptor.wsevent.internal.ds.WSEventAdaptorServiceDS} - Successfully deployed the input WSEvent adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:36,580] INFO {org.wso2.carbon.event.output.adaptor.email.internal.ds.EmailEventAdaptorServiceDS} - Successfully deployed the output Email event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:36,587] INFO {org.wso2.carbon.event.output.adaptor.sms.internal.ds.SMSEventAdaptorServiceDS} - Successfully deployed the output SMS event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:36,595] INFO {org.wso2.carbon.event.output.adaptor.wsevent.internal.ds.WSEventAdaptorServiceDS} - Successfully deployed the output WSEvent adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:36,600] INFO {org.wso2.carbon.identity.application.mgt.ui.internal.ApplicationMgtUIServiceComponent} - Application Management UI bundle acticated!
+TID: [0] [STRATOS] [2015-04-22 21:13:36,641] INFO {org.wso2.carbon.idp.mgt.internal.IdPManagementServiceComponent} - Identity Application Management Database initialization not attempted since 'setup' variable was not provided during startup
+TID: [0] [STRATOS] [2015-04-22 21:13:36,734] INFO {org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent} - Identity Database schema initialization check was skipped since 'setup' variable was not given during startup
+TID: [0] [STRATOS] [2015-04-22 21:13:36,868] INFO {org.wso2.carbon.core.transports.http.HttpsTransportListener} - HTTPS port : 9443
+TID: [0] [STRATOS] [2015-04-22 21:13:36,868] INFO {org.wso2.carbon.core.transports.http.HttpTransportListener} - HTTP port : 9763
+TID: [0] [STRATOS] [2015-04-22 21:13:36,968] INFO {org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl} - Task service starting in STANDALONE mode...
+TID: [0] [STRATOS] [2015-04-22 21:13:37,007] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] autoscaler.thread.pool [size] 50
+TID: [0] [STRATOS] [2015-04-22 21:13:37,007] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Scheduled Executor Service [id] autoscaler.scheduler.thread.pool [size] 5
+TID: [0] [STRATOS] [2015-04-22 21:13:37,009] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Autoscaler component is waiting for CloudController component to become active...
+TID: [0] [STRATOS] [2015-04-22 21:13:37,015] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] cloud.controller.thread.pool [size] 10
+TID: [0] [STRATOS] [2015-04-22 21:13:37,016] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Scheduled Executor Service [id] cloud.controller.scheduler.thread.pool [size] 5
+TID: [0] [STRATOS] [2015-04-22 21:13:37,019] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] cloud.controller.context.thread.pool [size] 10
+TID: [0] [STRATOS] [2015-04-22 21:13:37,020] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] stratos.manager.thread.pool [size] 20
+TID: [0] [STRATOS] [2015-04-22 21:13:37,020] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Scheduled Executor Service [id] stratos.manager.scheduler.thread.pool [size] 5
+TID: [0] [STRATOS] [2015-04-22 21:13:37,021] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - StratosManager component is waiting for CloudController component to become active...
+TID: [0] [STRATOS] [2015-04-22 21:13:37,025] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] cloud.controller.instance.manager.thread.pool [size] 50
+TID: [0] [STRATOS] [2015-04-22 21:13:37,040] INFO {org.apache.stratos.cloud.controller.messaging.receiver.application.ApplicationEventReceiver} - Cloud controller application event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,043] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Application event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,047] INFO {org.apache.stratos.messaging.message.receiver.application.ApplicationsEventMessageDelegator} - Application status event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,060] INFO {org.wso2.carbon.core.init.JMXServerManager} - JMX Service URL : service:jmx:rmi://localhost:11111/jndi/rmi://localhost:9999/jmxrmi
+TID: [0] [STRATOS] [2015-04-22 21:13:37,061] INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - Server : Apache Stratos-4.1.0
+TID: [0] [STRATOS] [2015-04-22 21:13:37,061] INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - WSO2 Carbon started in 26 sec
+TID: [0] [STRATOS] [2015-04-22 21:13:37,063] INFO {org.apache.stratos.cloud.controller.messaging.receiver.cluster.status.ClusterStatusTopicReceiver} - Cloud controller Cluster status thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,063] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Cluster status event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,063] INFO {org.apache.stratos.messaging.message.receiver.cluster.status.ClusterStatusEventMessageDelegator} - Cluster Status event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,087] INFO {org.apache.stratos.cloud.controller.messaging.receiver.instance.status.InstanceStatusTopicReceiver} - Cloud controller application status thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,091] INFO {org.apache.stratos.cloud.controller.messaging.receiver.instance.status.InstanceStatusTopicReceiver} - Cloud controller application status thread terminated
+TID: [0] [STRATOS] [2015-04-22 21:13:37,091] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Instance status event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,091] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Scheduling topology synchronizer task
+TID: [0] [STRATOS] [2015-04-22 21:13:37,091] INFO {org.apache.stratos.messaging.message.receiver.instance.status.InstanceStatusEventMessageDelegator} - Instance notifier event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,098] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - CloudController component became active
+TID: [0] [STRATOS] [2015-04-22 21:13:37,098] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Cloud controller service component activated
+TID: [0] [STRATOS] [2015-04-22 21:13:37,577] INFO {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} - Mgt Console URL : https://172.16.2.207:9443/carbon/
+TID: [0] [STRATOS] [2015-04-22 21:13:38,022] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - StratosManager component is waiting for Autoscaler component to become active...
+TID: [0] [STRATOS] [2015-04-22 21:13:38,037] INFO {org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver} - Autoscaler topology receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:38,038] INFO {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator} - Topology event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:53,061] INFO {org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventReceiver} - Autoscaler health stat event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:53,061] INFO {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator} - Health stat event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:53,080] INFO {org.apache.stratos.autoscaler.internal.AutoscalerServiceComponent} - Scheduling tasks to publish applications
+TID: [0] [STRATOS] [2015-04-22 21:13:53,080] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Autoscaler component became active
+TID: [0] [STRATOS] [2015-04-22 21:13:53,080] INFO {org.apache.stratos.autoscaler.internal.AutoscalerServiceComponent} - Autoscaler service component activated
+TID: [0] [STRATOS] [2015-04-22 21:13:54,025] INFO {org.apache.stratos.manager.utils.CartridgeConfigFileReader} - Setting config properties into System properties
+TID: [0] [STRATOS] [2015-04-22 21:13:54,045] INFO {org.apache.stratos.manager.internal.StratosManagerServiceComponent} - Tenant event publisher initialized
+TID: [0] [STRATOS] [2015-04-22 21:13:54,050] INFO {org.apache.stratos.manager.messaging.receiver.StratosManagerInstanceStatusEventReceiver} - Stratos manager instance status event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:54,051] INFO {org.apache.stratos.messaging.message.receiver.instance.status.InstanceStatusEventMessageDelegator} - Instance notifier event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:54,116] INFO {org.apache.stratos.manager.messaging.receiver.StratosManagerTopologyEventReceiver} - Stratos manager topology event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:54,116] INFO {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator} - Topology event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:54,120] INFO {org.apache.stratos.manager.messaging.receiver.StratosManagerApplicationEventReceiver} - Stratos manager application event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:54,120] INFO {org.apache.stratos.messaging.message.receiver.application.ApplicationsEventMessageDelegator} - Application status event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:54,161] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - StratosManager component became active
+TID: [0] [STRATOS] [2015-04-22 21:13:54,162] INFO {org.apache.stratos.manager.internal.StratosManagerServiceComponent} - Stratos manager component is activated
+TID: [0] [STRATOS] [2015-04-22 21:13:54,292] INFO {org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor} - Topology initialized
+TID: [0] [STRATOS] [2015-04-22 21:13:54,292] INFO {org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor} - Topology initialized
+TID: [0] [STRATOS] [2015-04-22 21:13:54,292] INFO {org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor} - Topology initialized
+TID: [0] [STRATOS] [2015-04-22 21:13:54,293] INFO {org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver} - [CompleteTopologyEvent] Received: class org.apache.stratos.messaging.event.topology.CompleteTopologyEvent
+TID: [0] [STRATOS] [2015-04-22 21:14:07,092] INFO {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} - Adding network partition: [network-partition-id] RegionOne-AZ-1
+TID: [0] [STRATOS] [2015-04-22 21:14:07,092] INFO {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} - Validating partition: [network-partition-id] RegionOne-AZ-1 [partition-id] RegionOne-AZ-1
+TID: [0] [STRATOS] [2015-04-22 21:14:08,551] ERROR {org.apache.stratos.cloud.controller.iaases.openstack.OpenstackIaas} - Invalid zone: AZ-1 in the region: RegionOne and of the iaas: Core
+TID: [0] [STRATOS] [2015-04-22 21:14:08,552] ERROR {org.apache.stratos.cloud.controller.iaases.openstack.OpenstackPartitionValidator} - Invalid partition detected: [partition-id] RegionOne-AZ-1Invalid zone: AZ-1 in the region: RegionOne and of the iaas: Core
+org.apache.stratos.cloud.controller.exception.InvalidZoneException: Invalid zone: AZ-1 in the region: RegionOne and of the iaas: Core
+ at org.apache.stratos.cloud.controller.iaases.openstack.OpenstackIaas.isValidZone(OpenstackIaas.java:289)
+ at org.apache.stratos.cloud.controller.iaases.openstack.OpenstackPartitionValidator.validate(OpenstackPartitionValidator.java:69)
+ at org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceUtil.validatePartitionAndGetIaasProvider(CloudControllerServiceUtil.java:97)
+ at org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceUtil.validatePartition(CloudControllerServiceUtil.java:108)
+ at org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl.validatePartition(CloudControllerServiceImpl.java:1015)
+ at org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl.addNetworkPartition(CloudControllerServiceImpl.java:1432)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.lang.reflect.Method.invoke(Method.java:606)
+ at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
+ at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66)
+ at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
+ at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
+ at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
+ at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
+ at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
+ at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
+ at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
+ at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
+ at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
+ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
+ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
+ at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
+ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
+ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
+ at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
+ at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
+ at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
+ at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
+ at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
+ at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
+ at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
+ at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
+ at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
+ at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
+ at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
+ at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
+ at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
+ at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
+ at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
+ at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
+ at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
+ at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
+ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
+ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
+ at java.lang.Thread.run(Thread.jav
<TRUNCATED>
[05/11] stratos git commit: Merge the latest changes of integration
test from master branch
Posted by ga...@apache.org.
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/wso2carbon.log
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/wso2carbon.log b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/wso2carbon.log
new file mode 100755
index 0000000..82d9968
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/wso2carbon.log
@@ -0,0 +1,992 @@
+TID: [2015-04-22 20:45:03,242] INFO {org.wso2.carbon.server.extensions.PatchInstaller} - Patch changes detected {org.wso2.carbon.server.extensions.PatchInstaller}
+TID: [2015-04-22 20:45:03,566] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Backed up plugins to patch0000 {org.wso2.carbon.server.util.PatchUtils.console}
+TID: [2015-04-22 20:45:04,429] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Patch verification started {org.wso2.carbon.server.util.PatchUtils.console}
+TID: [2015-04-22 20:45:04,705] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Patch verification successfully completed without encountering any issues. {org.wso2.carbon.server.util.PatchUtils.console}
+TID: [0] [STRATOS] [2015-04-22 20:45:09,454] INFO {org.wso2.carbon.cassandra.dataaccess.DataAccessComponentManager} - There is no /repository/conf/etc/cassandra-component.xml. Using the default configuration
+TID: [0] [STRATOS] [2015-04-22 20:45:09,493] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Starting WSO2 Carbon...
+TID: [0] [STRATOS] [2015-04-22 20:45:09,496] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Operating System : Linux 3.13.0-46-generic, amd64
+TID: [0] [STRATOS] [2015-04-22 20:45:09,496] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Home : /opt/jdk1.7.0_67/jre
+TID: [0] [STRATOS] [2015-04-22 20:45:09,496] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Version : 1.7.0_67
+TID: [0] [STRATOS] [2015-04-22 20:45:09,496] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM : Java HotSpot(TM) 64-Bit Server VM 24.65-b04,Oracle Corporation
+TID: [0] [STRATOS] [2015-04-22 20:45:09,496] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Carbon Home : /opt/wso2/apache-stratos
+TID: [0] [STRATOS] [2015-04-22 20:45:09,496] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Temp Dir : /opt/wso2/apache-stratos/tmp
+TID: [0] [STRATOS] [2015-04-22 20:45:09,496] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - User : root, en-US, Etc/UTC
+TID: [0] [STRATOS] [2015-04-22 20:45:09,578] WARN {org.wso2.carbon.core.bootup.validator.SystemValidator} - Could not validate the system for configuration parameter : CPU
+TID: [0] [STRATOS] [2015-04-22 20:45:09,579] WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} - The default keystore (wso2carbon.jks) is currently being used. To maximize security when deploying to a production environment, configure a new keystore with a unique password in the production server profile.
+TID: [0] [STRATOS] [2015-04-22 20:45:09,579] WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} - Swap Memory size (MB): 0 of the system is below the recommended minimum size :2048
+TID: [0] [STRATOS] [2015-04-22 20:45:09,649] INFO {org.wso2.carbon.databridge.agent.thrift.AgentHolder} - Agent created !
+TID: [0] [STRATOS] [2015-04-22 20:45:09,667] INFO {org.wso2.carbon.databridge.agent.thrift.internal.AgentDS} - Successfully deployed Agent Client
+TID: [0] [STRATOS] [2015-04-22 20:45:09,690] INFO {org.wso2.carbon.event.input.adaptor.core.internal.ds.InputEventAdaptorServiceTrackerDS} - Successfully deployed the input event adaptor tracker service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,697] INFO {org.wso2.carbon.event.input.adaptor.jms.internal.ds.JMSEventAdaptorServiceDS} - Successfully deployed the input jms event adaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:09,702] INFO {org.wso2.carbon.event.input.adaptor.manager.core.internal.ds.InputEventAdaptorTypeServiceTrackerDS} - Successfully deployed the input event adaptor type tracker service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,713] INFO {org.wso2.carbon.event.output.adaptor.cassandra.internal.ds.CassandraEventAdaptorServiceDS} - Successfully deployed the output cassandra event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,716] INFO {org.wso2.carbon.event.output.adaptor.core.internal.ds.OutputEventAdaptorServiceTrackerDS} - Successfully deployed the output event adaptor tracker service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,722] INFO {org.wso2.carbon.event.output.adaptor.http.internal.ds.HTTPEventAdaptorServiceDS} - Successfully deployed the output HTTP event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,729] INFO {org.wso2.carbon.event.output.adaptor.jms.internal.ds.JMSEventAdaptorServiceDS} - Successfully deployed the output jms event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,735] INFO {org.wso2.carbon.event.output.adaptor.manager.core.internal.ds.OutputEventAdaptorTypeServiceTrackerDS} - Successfully deployed the event adaptor type tracker service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,748] INFO {org.wso2.carbon.event.output.adaptor.wso2event.internal.ds.WSO2EventAdaptorServiceDS} - Successfully deployed the output WSO2Event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,767] INFO {org.wso2.carbon.event.input.adaptor.manager.core.internal.ds.InputEventAdaptorManagerDS} - Successfully deployed the input event adaptor manager service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,767] INFO {org.wso2.carbon.event.input.adaptor.core.internal.ds.InputEventAdaptorServiceDS} - Successfully deployed the input event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,778] INFO {org.wso2.carbon.event.output.adaptor.manager.core.internal.ds.OutputEventAdaptorManagerDS} - Successfully deployed the output event adaptor manager service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,778] INFO {org.wso2.carbon.event.output.adaptor.core.internal.ds.OutputEventAdaptorServiceDS} - Successfully deployed the output event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,791] INFO {org.wso2.carbon.event.statistics.internal.ds.EventStatisticsDS} - Successfully deployed the event statistics monitoring service
+TID: [0] [STRATOS] [2015-04-22 20:45:10,257] INFO {org.wso2.carbon.social.internal.SocialComponent} - Social Activity bundle is activated
+TID: [0] [STRATOS] [2015-04-22 20:45:11,025] INFO {org.wso2.carbon.cassandra.server.internal.CassandraServerDSComponent} - There is no /repository/conf/etc/cassandra.yaml. Using the default configuration
+TID: [0] [STRATOS] [2015-04-22 20:45:11,072] INFO {org.wso2.carbon.event.input.adaptor.wso2event.internal.ds.WSO2EventAdaptorServiceDS} - Successfully deployed the input WSO2Event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:11,074] INFO {org.wso2.carbon.loggeraggregator.internal.LogAggregator} - Successfully started Log Aggregator
+TID: [0] [STRATOS] [2015-04-22 20:45:11,074] INFO {org.wso2.carbon.databridge.core.internal.DataBridgeDS} - Successfully deployed Agent Server
+TID: [0] [STRATOS] [2015-04-22 20:45:11,320] INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Configured Registry in 178ms
+TID: [0] [STRATOS] [2015-04-22 20:45:11,693] INFO {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} - Registry Mode : READ-WRITE
+TID: [0] [STRATOS] [2015-04-22 20:45:11,781] INFO {org.wso2.carbon.event.output.adaptor.mysql.internal.ds.MysqlEventAdaptorServiceDS} - Successfully deployed the output mysql event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:11,783] INFO {org.wso2.carbon.event.processor.siddhi.extension.internal.SiddhiExtensionDS} - Successfully activated Property Window
+TID: [0] [STRATOS] [2015-04-22 20:45:11,885] INFO {org.wso2.carbon.event.builder.core.internal.ds.EventBuilderServiceDS} - Successfully deployed EventBuilderService.
+TID: [0] [STRATOS] [2015-04-22 20:45:11,908] INFO {org.wso2.carbon.event.formatter.core.internal.ds.EventFormatterServiceDS} - Successfully deployed EventFormatterService
+TID: [0] [STRATOS] [2015-04-22 20:45:11,909] INFO {org.wso2.carbon.event.processor.core.internal.ds.EventProcessorServiceDS} - Successfully deployed EventProcessorService
+TID: [0] [STRATOS] [2015-04-22 20:45:11,909] INFO {org.wso2.carbon.event.builder.core.internal.ds.EventBuilderServiceDS} - Successfully deployed EventBuilder EventReceiver.
+TID: [0] [STRATOS] [2015-04-22 20:45:12,037] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,061] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :in_flight_requests_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,080] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,085] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :gradient_in_flight_requests_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,104] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,109] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :average_in_flight_requests_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,128] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,134] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :average_served_request_count_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,152] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,157] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :second_derivative_in_flight_requests_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,176] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,182] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :cartridge_agent_health_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,201] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,206] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :average_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,223] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,228] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :average_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,246] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,252] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :gradient_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,269] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,275] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :gradient_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,290] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,295] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :second_derivative_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,312] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,317] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :second_derivative_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,333] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,338] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :fault_message_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,354] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,359] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_average_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,374] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,379] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_average_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,394] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,399] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_gradient_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,415] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,421] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_gradient_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,439] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,444] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_second_derivative_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,461] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,466] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_second_derivative_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,466] INFO {org.wso2.carbon.event.builder.core.internal.ds.EventBuilderServiceDS} - Successfully deployed EventBuilder PassthroughReceiverConfigurator.
+TID: [0] [STRATOS] [2015-04-22 20:45:12,468] INFO {org.wso2.carbon.event.stream.manager.core.internal.ds.EventStreamServiceDS} - Successfully deployed EventStreamService
+TID: [0] [STRATOS] [2015-04-22 20:45:12,485] INFO {org.wso2.carbon.identity.application.mgt.internal.ApplicationManagementServiceComponent} - Identity ApplicationManagementComponent bundle is activated
+TID: [0] [STRATOS] [2015-04-22 20:45:13,164] INFO {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} - Carbon UserStoreMgtDSComponent activated successfully.
+TID: [0] [STRATOS] [2015-04-22 20:45:18,487] INFO {org.apache.axis2.deployment.ClusterBuilder} - Clustering has been disabled
+TID: [0] [STRATOS] [2015-04-22 20:45:18,850] INFO {org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer} - User Store Configuration Deployer initiated.
+TID: [0] [STRATOS] [2015-04-22 20:45:18,889] INFO {org.wso2.carbon.stratos.landing.page.deployer.LandingPageWebappDeployer} - Deployed product landing page webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/home]
+TID: [0] [STRATOS] [2015-04-22 20:45:18,921] INFO {org.apache.axis2.transport.tcp.TCPTransportSender} - TCP Sender started
+TID: [0] [STRATOS] [2015-04-22 20:45:18,943] INFO {org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService} - Execution plan deployment held back and in inactive state: AverageHeathRequest. Event receiver not found for stream ID : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:18,943] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan deployment held back and in inactive state : AverageHeathRequest ,waiting for dependency : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:18,947] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageInFlightRequestsEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:18,948] INFO {org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService} - Execution plan deployment held back and in inactive state: AverageInFlightRequestsFinder. Event receiver not found for stream ID : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:18,948] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan deployment held back and in inactive state : AverageInFlightRequestsFinder ,waiting for dependency : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:18,949] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageLoadAverageEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:18,950] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageMemoryConsumptionEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:18,951] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageServedRequestsEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:18,955] INFO {org.wso2.carbon.event.input.adaptor.manager.core.InputEventAdaptorDeployer} - Input Event Adaptor deployed successfully and in active state : DefaultWSO2EventInputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:18,957] INFO {org.wso2.carbon.event.output.adaptor.manager.core.OutputEventAdaptorDeployer} - Output Event Adaptor successfully deployed and in active state : DefaultWSO2EventOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:19,009] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: echo {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 20:45:19,079] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: Echo.aar - file:/opt/wso2/apache-stratos/repository/deployment/server/axis2services/Echo.aar
+TID: [0] [STRATOS] [2015-04-22 20:45:19,080] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : FaultMessageEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:19,080] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : GradientInFlightRequestsEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:19,081] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : GradientLoadAverageEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:19,082] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : GradientMemoryConsumptionEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:19,083] INFO {org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService} - Execution plan deployment held back and in inactive state: GradientOfHealthRequest. Event receiver not found for stream ID : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,084] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan deployment held back and in inactive state : GradientOfHealthRequest ,waiting for dependency : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,084] INFO {org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService} - Execution plan deployment held back and in inactive state: GradientOfRequestsInFlightFinder. Event receiver not found for stream ID : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,085] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan deployment held back and in inactive state : GradientOfRequestsInFlightFinder ,waiting for dependency : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,106] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,109] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,110] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution Plan was undeployed successfully : AverageHeathRequest.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,305] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,305] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,305] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,305] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,305] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,306] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,306] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : AverageHeathRequest
+TID: [0] [STRATOS] [2015-04-22 20:45:19,306] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution Plan was undeployed successfully : GradientOfHealthRequest.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,398] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] cep.extension.thread.pool [size] 10
+TID: [0] [STRATOS] [2015-04-22 20:45:19,406] INFO {org.apache.stratos.cep.extension.CEPTopologyEventReceiver} - CEP topology event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:19,406] INFO {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator} - Topology event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:19,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,410] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : GradientOfHealthRequest
+TID: [0] [STRATOS] [2015-04-22 20:45:19,411] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : HealthStatisticsEventBuilder
+TID: [0] [STRATOS] [2015-04-22 20:45:19,419] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event builder deployment held back and in inactive state :InstanceStatusStatisticsBuilder, Stream validation exception : Input stream definition is not available
+TID: [0] [STRATOS] [2015-04-22 20:45:19,420] INFO {org.wso2.carbon.event.output.adaptor.manager.core.OutputEventAdaptorDeployer} - Output Event Adaptor successfully deployed and in active state : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:19,421] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,433] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageInFlightRequestsEventFormatter.xml, waiting for dependency : average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,433] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageLoadAverageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,442] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,442] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : AverageLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,442] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageMemoryConsumptionEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,450] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,450] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : AverageMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,450] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageServedRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,458] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageServedRequestsEventFormatter.xml, waiting for dependency : average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,458] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : FaultMessageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,466] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,466] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : FaultMessageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,466] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : GradientInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,474] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : GradientInFlightRequestsEventFormatter.xml, waiting for dependency : gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,474] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : GradientLoadAverageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,481] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,482] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : GradientLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,482] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : GradientMemoryConsumptionEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,490] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,490] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : GradientMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,498] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,500] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,500] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution Plan was undeployed successfully : AverageInFlightRequestsFinder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,512] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,516] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,516] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : AverageRequestsInflightEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,517] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageServedRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,521] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,521] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : AverageServedRequestsEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,521] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,521] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,521] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,521] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : AverageInFlightRequestsFinder
+TID: [0] [STRATOS] [2015-04-22 20:45:19,521] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution Plan was undeployed successfully : GradientOfRequestsInFlightFinder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,527] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : GradientInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,531] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,531] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : GradientInFlightRequestsEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,531] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,531] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,531] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : GradientOfRequestsInFlightFinder
+TID: [0] [STRATOS] [2015-04-22 20:45:19,531] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : LoadBalancerStatisticsEventBuilder
+TID: [0] [STRATOS] [2015-04-22 20:45:19,539] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,539] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberAverageLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,547] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,547] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberAverageMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,554] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,555] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberGradientLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,562] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,562] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberGradientMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,570] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : MemberSecondDerivativeLoadAverageEventFormatter.xml, waiting for dependency : member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,578] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : MemberSecondDerivativeMemoryConsumptionEventFormatter.xml, waiting for dependency : member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,603] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/STRATOS_ROOT].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/STRATOS_ROOT]
+TID: [0] [STRATOS] [2015-04-22 20:45:19,614] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : SecondDerivativeInFlightRequestsEventFormatter.xml, waiting for dependency : second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,621] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : SecondDerivativeLoadAverageEventFormatter.xml, waiting for dependency : second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,628] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : SecondDerivativeMemoryConsumptionEventFormatter.xml, waiting for dependency : second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,647] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : SecondDerivativeMemoryConsumptionEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,651] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,652] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : SecondDerivativeMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,652] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : SecondDerivativeLoadAverageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,655] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,655] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : SecondDerivativeLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,656] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : MemberSecondDerivativeMemoryConsumptionEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,660] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,660] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberSecondDerivativeMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,660] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : MemberSecondDerivativeLoadAverageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,664] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,664] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberSecondDerivativeLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,664] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,664] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,664] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,664] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,664] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,664] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : SecondDerivativeOfHealthRequest
+TID: [0] [STRATOS] [2015-04-22 20:45:19,669] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : SecondDerivativeInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,673] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,673] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : SecondDerivativeEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,673] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,673] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,674] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : SecondDerivativeOfRequestsInFlightFinder
+TID: [0] [STRATOS] [2015-04-22 20:45:19,750] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: Version {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 20:45:19,773] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: Version.aar - file:/opt/wso2/apache-stratos/repository/deployment/server/axis2services/Version.aar
+TID: [0] [STRATOS] [2015-04-22 20:45:20,582] INFO {org.springframework.web.context.support.XmlWebApplicationContext} - Refreshing Root WebApplicationContext: startup date [Wed Apr 22 20:45:20 UTC 2015]; root of context hierarchy
+TID: [0] [STRATOS] [2015-04-22 20:45:20,627] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
+TID: [0] [STRATOS] [2015-04-22 20:45:20,699] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/api/WEB-INF/cxf-servlet.xml]
+TID: [0] [STRATOS] [2015-04-22 20:45:20,841] INFO {org.springframework.beans.factory.support.DefaultListableBeanFactory} - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@68204c69: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,stratosApi,stratosApiV40,stratosApiV41,stratosApiBeanV40,stratosApiBeanV41,basicAuthenticationFilter,sessionAuthenticationFilter,authorizationFilterV40,authorizationFilterV41,exceptionHandler,badRequestExceptionHandler,genericExceptionHandler,throwableExceptionHandler,componentSynchronizerHandler,OAuthFilter,jsonProvider,schemaHolder,theSchemas]; root of factory hierarchy
+TID: [0] [STRATOS] [2015-04-22 20:45:21,353] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /
+TID: [0] [STRATOS] [2015-04-22 20:45:21,471] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /v4.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,495] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /v4.1
+TID: [0] [STRATOS] [2015-04-22 20:45:21,528] WARN {org.apache.cxf.jaxrs.utils.ResourceUtils} - No resource classpath:META-INF/jax-rs-catalog.xml is available
+TID: [0] [STRATOS] [2015-04-22 20:45:21,552] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/api.war]
+TID: [0] [STRATOS] [2015-04-22 20:45:21,601] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/authenticationendpoint].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/authenticationendpoint.war]
+TID: [0] [STRATOS] [2015-04-22 20:45:21,606] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,607] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,607] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : average_in_flight_requests_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:21,611] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,612] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,612] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : average_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:21,616] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,617] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,617] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : average_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:21,621] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,622] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,623] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : average_served_request_count_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:21,627] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : cartridge_agent_health_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:21,636] WARN {org.wso2.securevault.secret.handler.SecretManagerSecretCallbackHandler} - SecretManager has not been initialized.Cannot collect secrets.
+TID: [0] [STRATOS] [2015-04-22 20:45:21,636] WARN {org.apache.stratos.cloud.controller.config.parser.IaasProviderConfigParser} - Unable to find a value for identity element from Secure Vault.Hence we will try to assign the plain text value (if specified).
+TID: [0] [STRATOS] [2015-04-22 20:45:21,637] WARN {org.wso2.securevault.secret.handler.SecretManagerSecretCallbackHandler} - SecretManager has not been initialized.Cannot collect secrets.
+TID: [0] [STRATOS] [2015-04-22 20:45:21,637] WARN {org.apache.stratos.cloud.controller.config.parser.IaasProviderConfigParser} - Unable to find a value for credential element from Secure Vault.Hence we will try to assign the plain text value (if specified).
+TID: [0] [STRATOS] [2015-04-22 20:45:21,637] INFO {org.apache.stratos.cloud.controller.deployers.CloudControllerDeployer} - Successfully deployed the cloud-controller XML file located at /opt/wso2/apache-stratos/repository/deployment/server/../../conf/cloud-controller.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:22,397] INFO {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/console].File[/opt/wso2/apache-stratos/repository/deployment/server/jaggeryapps/console]
+TID: [0] [STRATOS] [2015-04-22 20:45:22,402] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,403] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,403] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : fault_message_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,407] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,408] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,408] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : gradient_in_flight_requests_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,412] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,413] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,414] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : gradient_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,417] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,419] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,419] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : gradient_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,422] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : in_flight_requests_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,426] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,428] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,428] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_average_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,431] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,433] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,433] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_average_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,437] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,438] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,438] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_gradient_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,442] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,444] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,444] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_gradient_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,447] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,449] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,449] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_second_derivative_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,453] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,455] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,455] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_second_derivative_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:23,187] INFO {org.springframework.web.context.support.XmlWebApplicationContext} - Refreshing Root WebApplicationContext: startup date [Wed Apr 22 20:45:23 UTC 2015]; root of context hierarchy
+TID: [0] [STRATOS] [2015-04-22 20:45:23,229] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
+TID: [0] [STRATOS] [2015-04-22 20:45:23,264] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/metadata/WEB-INF/cxf-servlet.xml]
+TID: [0] [STRATOS] [2015-04-22 20:45:23,364] INFO {org.springframework.beans.factory.support.DefaultListableBeanFactory} - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1b01b46a: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,stratosMetaDataAdmin,stratosRestEndpointBean,exceptionHandler,genericExceptionHandler,throwableExceptionHandler,OAuthFilter,jsonProvider]; root of factory hierarchy
+TID: [0] [STRATOS] [2015-04-22 20:45:23,855] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /api
+TID: [0] [STRATOS] [2015-04-22 20:45:23,906] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/metadata].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/metadata.war]
+TID: [0] [STRATOS] [2015-04-22 20:45:24,621] INFO {org.springframework.web.context.support.XmlWebApplicationContext} - Refreshing Root WebApplicationContext: startup date [Wed Apr 22 20:45:24 UTC 2015]; root of context hierarchy
+TID: [0] [STRATOS] [2015-04-22 20:45:24,664] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
+TID: [0] [STRATOS] [2015-04-22 20:45:24,696] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/mock-iaas/WEB-INF/cxf-servlet.xml]
+TID: [0] [STRATOS] [2015-04-22 20:45:24,784] INFO {org.springframework.beans.factory.support.DefaultListableBeanFactory} - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3b141caf: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,mockIaasApi,mockIaasApiBean,exceptionHandler,badRequestExceptionHandler,genericExceptionHandler,throwableExceptionHandler,jsonProvider]; root of factory hierarchy
+TID: [0] [STRATOS] [2015-04-22 20:45:25,146] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /api
+TID: [0] [STRATOS] [2015-04-22 20:45:25,197] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/mock-iaas].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/mock-iaas.war]
+TID: [0] [STRATOS] [2015-04-22 20:45:25,997] INFO {org.springframework.web.context.support.XmlWebApplicationContext} - Refreshing Root WebApplicationContext: startup date [Wed Apr 22 20:45:25 UTC 2015]; root of context hierarchy
+TID: [0] [STRATOS] [2015-04-22 20:45:26,039] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
+TID: [0] [STRATOS] [2015-04-22 20:45:26,071] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]
+TID: [0] [STRATOS] [2015-04-22 20:45:26,151] INFO {org.springframework.beans.factory.support.DefaultListableBeanFactory} - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6a9f420c: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,tokEP,authzEndpointBean,tokenEndpointBean,revokeEndpointBean,userinfoEndpointBean]; root of factory hierarchy
+TID: [0] [STRATOS] [2015-04-22 20:45:26,496] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /
+TID: [0] [STRATOS] [2015-04-22 20:45:26,558] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/oauth2].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/oauth2.war]
+TID: [0] [STRATOS] [2015-04-22 20:45:26,569] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:26,570] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:26,570] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : second_derivative_in_flight_requests_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:26,573] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:26,575] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:26,575] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : second_derivative_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:26,579] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:26,580] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:26,581] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : second_derivative_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:26,806] INFO {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/sso].File[/opt/wso2/apache-stratos/repository/deployment/server/jaggeryapps/sso]
+TID: [0] [STRATOS] [2015-04-22 20:45:26,873] INFO {org.apache.axis2.deployment.ModuleDeployer} - Deploying module: addressing-1.6.1-wso2v10 - file:/opt/wso2/apache-stratos/repository/deployment/client/modules/addressing-1.6.1-wso2v10.mar
+TID: [0] [STRATOS] [2015-04-22 20:45:26,877] INFO {org.apache.axis2.deployment.ModuleDeployer} - Deploying module: rampart-1.6.1-wso2v8 - file:/opt/wso2/apache-stratos/repository/deployment/client/modules/rampart-1.6.1-wso2v8.mar
+TID: [0] [STRATOS] [2015-04-22 20:45:26,879] INFO {org.apache.axis2.transport.tcp.TCPTransportSender} - TCP Sender started
+TID: [0] [STRATOS] [2015-04-22 20:45:27,123] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: AutoscalerService {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 20:45:27,369] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.apache.stratos.autoscaler -
+TID: [0] [STRATOS] [2015-04-22 20:45:27,477] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: CloudControllerService {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 20:45:27,653] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.apache.stratos.cloud.controller -
+TID: [0] [STRATOS] [2015-04-22 20:45:27,679] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: StratosManagerService {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 20:45:27,749] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.apache.stratos.manager -
+TID: [0] [STRATOS] [2015-04-22 20:45:28,223] WARN {org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator} - We don't support method overloading. Ignoring [validateAudienceRestriction]
+TID: [0] [STRATOS] [2015-04-22 20:45:28,524] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.wso2.carbon.idp.mgt -
+TID: [0] [STRATOS] [2015-04-22 20:45:28,892] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: wso2carbon-sts {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 20:45:28,940] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.wso2.carbon.sts -
+TID: [0] [STRATOS] [2015-04-22 20:45:29,182] INFO {org.wso2.carbon.core.init.CarbonServerManager} - Repository : /opt/wso2/apache-stratos/repository/deployment/server/
+TID: [0] [STRATOS] [2015-04-22 20:45:29,234] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Component activation check interval: 1 seconds
+TID: [0] [STRATOS] [2015-04-22 20:45:29,235] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Component activation timeout: 600 seconds
+TID: [0] [STRATOS] [2015-04-22 20:45:29,241] INFO {org.apache.stratos.common.internal.CommonServiceComponent} - Stratos common service component is activated
+TID: [0] [STRATOS] [2015-04-22 20:45:29,320] INFO {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} - Permission cache updated for tenant -1234
+TID: [0] [STRATOS] [2015-04-22 20:45:29,566] INFO {org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceiver} - Thrift Server started at 0.0.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:29,574] INFO {org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceiver} - Thrift SSL port : 7711
+TID: [0] [STRATOS] [2015-04-22 20:45:29,578] INFO {org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceiver} - Thrift port : 7611
+TID: [0] [STRATOS] [2015-04-22 20:45:29,643] INFO {org.wso2.carbon.event.input.adaptor.wsevent.local.internal.ds.WSEventLocalEventAdaptorServiceDS} - Successfully deployed the input WSEventLocal adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:29,649] INFO {org.wso2.carbon.event.output.adaptor.wsevent.local.internal.ds.WSEventLocalEventAdaptorServiceDS} - Successfully deployed the output WSEventLocal adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:29,656] INFO {org.wso2.carbon.event.input.adaptor.email.internal.ds.EmailEventAdaptorServiceDS} - Successfully deployed the input email event service
+TID: [0] [STRATOS] [2015-04-22 20:45:29,662] INFO {org.wso2.carbon.event.input.adaptor.wsevent.internal.ds.WSEventAdaptorServiceDS} - Successfully deployed the input WSEvent adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:29,667] INFO {org.wso2.carbon.event.output.adaptor.email.internal.ds.EmailEventAdaptorServiceDS} - Successfully deployed the output Email event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:29,671] INFO {org.wso2.carbon.event.output.adaptor.sms.internal.ds.SMSEventAdaptorServiceDS} - Successfully deployed the output SMS event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:29,676] INFO {org.wso2.carbon.event.output.adaptor.wsevent.internal.ds.WSEventAdaptorServiceDS} - Successfully deployed the output WSEvent adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:29,680] INFO {org.wso2.carbon.identity.application.mgt.ui.internal.ApplicationMgtUIServiceComponent} - Application Management UI bundle acticated!
+TID: [0] [STRATOS] [2015-04-22 20:45:29,715] INFO {org.wso2.carbon.idp.mgt.internal.IdPManagementServiceComponent} - Identity Application Management Database initialization not attempted since 'setup' variable was not provided during startup
+TID: [0] [STRATOS] [2015-04-22 20:45:29,770] INFO {org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent} - Identity Database schema initialization check was skipped since 'setup' variable was not given during startup
+TID: [0] [STRATOS] [2015-04-22 20:45:29,838] INFO {org.wso2.carbon.core.transports.http.HttpsTransportListener} - HTTPS port : 9443
+TID: [0] [STRATOS] [2015-04-22 20:45:29,838] INFO {org.wso2.carbon.core.transports.http.HttpTransportListener} - HTTP port : 9763
+TID: [0] [STRATOS] [2015-04-22 20:45:29,924] INFO {org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl} - Task service starting in STANDALONE mode...
+TID: [0] [STRATOS] [2015-04-22 20:45:29,956] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] autoscaler.thread.pool [size] 50
+TID: [0] [STRATOS] [2015-04-22 20:45:29,956] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Scheduled Executor Service [id] autoscaler.scheduler.thread.pool [size] 5
+TID: [0] [STRATOS] [2015-04-22 20:45:29,958] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Autoscaler component is waiting for CloudController component to become active...
+TID: [0] [STRATOS] [2015-04-22 20:45:29,961] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] cloud.controller.thread.pool [size] 10
+TID: [0] [STRATOS] [2015-04-22 20:45:29,961] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Scheduled Executor Service [id] cloud.controller.scheduler.thread.pool [size] 5
+TID: [0] [STRATOS] [2015-04-22 20:45:29,964] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] stratos.manager.thread.pool [size] 20
+TID: [0] [STRATOS] [2015-04-22 20:45:29,964] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Scheduled Executor Service [id] stratos.manager.scheduler.thread.pool [size] 5
+TID: [0] [STRATOS] [2015-04-22 20:45:29,964] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] cloud.controller.context.thread.pool [size] 10
+TID: [0] [STRATOS] [2015-04-22 20:45:29,966] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - StratosManager component is waiting for CloudController component to become active...
+TID: [0] [STRATOS] [2015-04-22 20:45:29,970] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] cloud.controller.instance.manager.thread.pool [size] 50
+TID: [0] [STRATOS] [2015-04-22 20:45:29,984] INFO {org.apache.stratos.cloud.controller.messaging.receiver.application.ApplicationEventReceiver} - Cloud controller application event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:29,990] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Application event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:29,990] INFO {org.apache.stratos.messaging.message.receiver.application.ApplicationsEventMessageDelegator} - Application status event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:30,008] INFO {org.apache.stratos.cloud.controller.messaging.receiver.cluster.status.ClusterStatusTopicReceiver} - Cloud controller Cluster status thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:30,011] INFO {org.apache.stratos.messaging.message.receiver.cluster.status.ClusterStatusEventMessageDelegator} - Cluster Status event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:30,011] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Cluster status event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:30,021] INFO {org.wso2.carbon.core.init.JMXServerManager} - JMX Service URL : service:jmx:rmi://localhost:11111/jndi/rmi://localhost:9999/jmxrmi
+TID: [0] [STRATOS] [2015-04-22 20:45:30,021] INFO {org.apache.stratos.cloud.controller.messaging.receiver.instance.status.InstanceStatusTopicReceiver} - Cloud controller application status thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:30,022] INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - Server : Apache Stratos-4.1.0
+TID: [0] [STRATOS] [2015-04-22 20:45:30,022] INFO {org.apache.stratos.cloud.controller.messaging.receiver.instance.status.InstanceStatusTopicReceiver} - Cloud controller application status thread terminated
+TID: [0] [STRATOS] [2015-04-22 20:45:30,026] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Instance status event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:30,026] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Scheduling topology synchronizer task
+TID: [0] [STRATOS] [2015-04-22 20:45:30,021] INFO {org.apache.stratos.messaging.message.receiver.instance.status.InstanceStatusEventMessageDelegator} - Instance notifier event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:30,026] INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - WSO2 Carbon started in 27 sec
+TID: [0] [STRATOS] [2015-04-22 20:45:30,027] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - CloudController component became active
+TID: [0] [STRATOS] [2015-04-22 20:45:30,027] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Cloud controller service component activated
+TID: [0] [STRATOS] [2015-04-22 20:45:30,487] INFO {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} - Mgt Console URL : https://172.16.2.207:9443/carbon/
+TID: [0] [STRATOS] [2015-04-22 20:45:30,966] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - StratosManager component is waiting for Autoscaler component to become active...
+TID: [0] [STRATOS] [2015-04-22 20:45:30,987] INFO {org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver} - Autoscaler topology receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:30,988] INFO {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator} - Topology event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:46,012] INFO {org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventReceiver} - Autoscaler health stat event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:46,015] INFO {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator} - Health stat event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:46,029] INFO {org.apache.stratos.autoscaler.internal.AutoscalerServiceComponent} - Scheduling tasks to publish applications
+TID: [0] [STRATOS] [2015-04-22 20:45:46,029] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Autoscaler component became active
+TID: [0] [STRATOS] [2015-04-22 20:45:46,029] INFO {org.apache.stratos.autoscaler.internal.AutoscalerServiceComponent} - Autoscaler service component activated
+TID: [0] [STRATOS] [2015-04-22 20:45:46,970] INFO {org.apache.stratos.manager.utils.CartridgeConfigFileReader} - Setting config properties into System properties
+TID: [0] [STRATOS] [2015-04-22 20:45:46,989] INFO {org.apache.stratos.manager.internal.StratosManagerServiceComponent} - Tenant event publisher initialized
+TID: [0] [STRATOS] [2015-04-22 20:45:46,993] INFO {org.apache.stratos.manager.messaging.receiver.StratosManagerInstanceStatusEventReceiver} - Stratos manager instance status event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:46,995] INFO {org.apache.stratos.messaging.message.receiver.instance.status.InstanceStatusEventMessageDelegator} - Instance notifier event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:47,057] INFO {org.apache.stratos.manager.messaging.receiver.StratosManagerTopologyEventReceiver} - Stratos manager topology event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:47,058] INFO {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator} - Topology event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:47,060] INFO {org.apache.stratos.manager.messaging.receiver.StratosManagerApplicationEventReceiver} - Stratos manager application event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:47,060] INFO {org.apache.stratos.messaging.message.receiver.application.ApplicationsEventMessageDelegator} - Application status event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:47,104] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - StratosManager component became active
+TID: [0] [STRATOS] [2015-04-22 20:45:47,106] INFO {org.apache.stratos.manager.internal.StratosManagerServiceComponent} - Stratos manager component is activated
+TID: [0] [STRATOS] [2015-04-22 20:45:47,249] INFO {org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor} - Topology initialized
+TID: [0] [STRATOS] [2015-04-22 20:45:47,249] INFO {org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor} - Topology initialized
+TID: [0] [STRATOS] [2015-04-22 20:45:47,250] INFO {org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor} - Topology initialized
+TID: [0] [STRATOS] [2015-04-22 20:45:47,250] INFO {org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver} - [CompleteTopologyEvent] Received: class org.apache.stratos.messaging.event.topology.CompleteTopologyEvent
+TID: [0] [STRATOS] [2015-04-22 20:45:59,750] INFO {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} - Adding network partition: [network-partition-id] RegionOne-AZ-1
+TID: [0] [STRATOS] [2015-04-22 20:45:59,751] INFO {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} - Validating partition: [network-partition-id] RegionOne-AZ-1 [partition-id] RegionOne-AZ-1
+TID: [0] [STRATOS] [2015-04-22 20:46:01,196] ERROR {org.apache.stratos.cloud.controller.iaases.openstack.OpenstackIaas} - Invalid zone: AZ-1 in the region: RegionOne and of the iaas: Core
+TID: [0] [STRATOS] [2015-04-22 20:46:01,197] ERROR {org.apache.stratos.cloud.controller.iaases.openstack.OpenstackPartitionValidator} - Invalid partition detected: [partition-id] RegionOne-AZ-1Invalid zone: AZ-1 in the region: RegionOne and of the iaas: Core
+org.apache.stratos.cloud.controller.exception.InvalidZoneException: Invalid zone: AZ-1 in the region: RegionOne and of the iaas: Core
+ at org.apache.stratos.cloud.controller.iaases.openstack.OpenstackIaas.isValidZone(OpenstackIaas.java:289)
+ at org.apache.stratos.cloud.controller.iaases.openstack.OpenstackPartitionValidator.validate(OpenstackPartitionValidator.java:69)
+ at org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceUtil.validatePartitionAndGetIaasProvider(CloudControllerServiceUtil.java:97)
+ at org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceUtil.validatePartition(CloudControllerServiceUtil.java:108)
+ at org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl.validatePartition(CloudControllerServiceImpl.java:1015)
+ at org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl.addNetworkPartition(CloudControllerServiceImpl.java:1432)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.lang.reflect.Method.invoke(Method.java:606)
+ at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
+ at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66)
+ at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
+ at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
+ at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
+ at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
+ at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
+ at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
+ at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
+ at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
+ at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
+ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
+ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
+ at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
+ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
+ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
+ at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
+ at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
+ at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
+ at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
+ at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
+ at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
+ at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
+ at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
+ at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
+ at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
+ at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
+ at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
+ at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
+ at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
+ at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
+ at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
+ at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
+ at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
+ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
+ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
+ at java.lang.Thread.run(Thread.java:745)
+TID: [0] [STRATOS] [2015-
<TRUNCATED>
[02/11] stratos git commit: Merge the latest changes of integration
test from master branch
Posted by ga...@apache.org.
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/SingleClusterScalingTest.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/SingleClusterScalingTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/SingleClusterScalingTest.java
index 2fd4100..f5fba7c 100644
--- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/SingleClusterScalingTest.java
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/application/SingleClusterScalingTest.java
@@ -21,201 +21,168 @@ package org.apache.stratos.integration.tests.application;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.stratos.common.beans.application.ApplicationBean;
-import org.apache.stratos.common.beans.cartridge.CartridgeGroupBean;
import org.apache.stratos.common.beans.policy.deployment.ApplicationPolicyBean;
import org.apache.stratos.integration.tests.RestConstants;
import org.apache.stratos.integration.tests.StratosTestServerManager;
import org.apache.stratos.integration.tests.TopologyHandler;
+import org.apache.stratos.messaging.domain.application.Application;
+import org.apache.stratos.messaging.domain.application.ApplicationStatus;
+import org.apache.stratos.messaging.domain.application.ClusterDataHolder;
+import org.apache.stratos.messaging.domain.instance.ClusterInstance;
+import org.apache.stratos.messaging.domain.topology.Cluster;
+import org.apache.stratos.messaging.domain.topology.Member;
+import org.apache.stratos.messaging.domain.topology.MemberStatus;
+import org.apache.stratos.messaging.domain.topology.Service;
+import org.apache.stratos.messaging.message.receiver.application.ApplicationManager;
+import org.apache.stratos.messaging.message.receiver.topology.TopologyManager;
import org.testng.annotations.Test;
-import static junit.framework.Assert.assertEquals;
-import static junit.framework.Assert.assertTrue;
+import java.util.Set;
+
+import static junit.framework.Assert.*;
/**
* This will handle the scale-up and scale-down of a particular cluster bursting test cases
*/
public class SingleClusterScalingTest extends StratosTestServerManager {
private static final Log log = LogFactory.getLog(SampleApplicationsTest.class);
- private static final String TEST_PATH = "/application-bursting-test";
+ private static final String RESOURCES_PATH = "/single-cluster-scaling-test";
+ private static final int CLUSTER_SCALE_UP_TIMEOUT = 180000;
@Test
public void testDeployApplication() {
try {
- log.info("Started application Bursting test case**************************************");
+ log.info("-------------------------------Started application Bursting test case-------------------------------");
- String autoscalingPolicyId = "autoscaling-policy-2";
+ String autoscalingPolicyId = "autoscaling-policy-single-cluster-scaling-test";
- boolean addedScalingPolicy = restClient.addEntity(TEST_PATH + RestConstants.AUTOSCALING_POLICIES_PATH
+ boolean addedScalingPolicy = restClient.addEntity(RESOURCES_PATH + RestConstants.AUTOSCALING_POLICIES_PATH
+ "/" + autoscalingPolicyId + ".json",
RestConstants.AUTOSCALING_POLICIES, RestConstants.AUTOSCALING_POLICIES_NAME);
assertEquals(addedScalingPolicy, true);
- boolean addedC1 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" + "esb.json",
+ boolean addedC1 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c7-single-cluster-scaling-test.json",
RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
assertEquals(addedC1, true);
- boolean addedC2 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" + "php.json",
- RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
- assertEquals(addedC2, true);
-
- boolean addedC3 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" + "tomcat.json",
- RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
- assertEquals(addedC3, true);
-
- boolean addedG1 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGE_GROUPS_PATH +
- "/" + "esb-php-group.json", RestConstants.CARTRIDGE_GROUPS,
- RestConstants.CARTRIDGE_GROUPS_NAME);
- assertEquals(addedG1, true);
-
- CartridgeGroupBean beanG1 = (CartridgeGroupBean) restClient.
- getEntity(RestConstants.CARTRIDGE_GROUPS, "esb-php-group",
- CartridgeGroupBean.class, RestConstants.CARTRIDGE_GROUPS_NAME);
- assertEquals(beanG1.getName(), "esb-php-group");
-
- boolean addedN1 = restClient.addEntity(TEST_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
- "network-partition-9.json",
+ boolean addedN1 = restClient.addEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ "network-partition-single-cluster-scaling-test.json",
RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(addedN1, true);
- boolean addedN2 = restClient.addEntity(TEST_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
- "network-partition-10.json",
- RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
- assertEquals(addedN2, true);
-
- boolean addedDep = restClient.addEntity(TEST_PATH + RestConstants.DEPLOYMENT_POLICIES_PATH + "/" +
- "deployment-policy-4.json",
+ boolean addedDep = restClient.addEntity(RESOURCES_PATH + RestConstants.DEPLOYMENT_POLICIES_PATH + "/" +
+ "deployment-policy-single-cluster-scaling-test.json",
RestConstants.DEPLOYMENT_POLICIES, RestConstants.DEPLOYMENT_POLICIES_NAME);
assertEquals(addedDep, true);
- boolean added = restClient.addEntity(TEST_PATH + RestConstants.APPLICATIONS_PATH + "/" +
- "app-bursting-single-cartriddge-group.json", RestConstants.APPLICATIONS,
+ boolean added = restClient.addEntity(RESOURCES_PATH + RestConstants.APPLICATIONS_PATH + "/" +
+ "single-cluster-scaling-test.json", RestConstants.APPLICATIONS,
RestConstants.APPLICATIONS_NAME);
assertEquals(added, true);
ApplicationBean bean = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
- "cartridge-group-app", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
- assertEquals(bean.getApplicationId(), "cartridge-group-app");
+ "single-cluster-scaling-test", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+ assertEquals(bean.getApplicationId(), "single-cluster-scaling-test");
- boolean addAppPolicy = restClient.addEntity(TEST_PATH + RestConstants.APPLICATION_POLICIES_PATH + "/" +
- "application-policy-3.json", RestConstants.APPLICATION_POLICIES,
+ boolean addAppPolicy = restClient.addEntity(RESOURCES_PATH + RestConstants.APPLICATION_POLICIES_PATH + "/" +
+ "application-policy-single-cluster-scaling-test.json", RestConstants.APPLICATION_POLICIES,
RestConstants.APPLICATION_POLICIES_NAME);
assertEquals(addAppPolicy, true);
ApplicationPolicyBean policyBean = (ApplicationPolicyBean) restClient.getEntity(
RestConstants.APPLICATION_POLICIES,
- "application-policy-3", ApplicationPolicyBean.class,
+ "application-policy-single-cluster-scaling-test", ApplicationPolicyBean.class,
RestConstants.APPLICATION_POLICIES_NAME);
//deploy the application
- String resourcePath = RestConstants.APPLICATIONS + "/" + "cartridge-group-app" +
- RestConstants.APPLICATIONS_DEPLOY + "/" + "application-policy-3";
+ String resourcePath = RestConstants.APPLICATIONS + "/" + "single-cluster-scaling-test" +
+ RestConstants.APPLICATIONS_DEPLOY + "/" + "application-policy-single-cluster-scaling-test";
boolean deployed = restClient.deployEntity(resourcePath,
RestConstants.APPLICATIONS_NAME);
assertEquals(deployed, true);
//Application active handling
- TopologyHandler.getInstance().assertApplicationActivation(bean.getApplicationId());
-
- //Group active handling
- TopologyHandler.getInstance().assertGroupActivation(bean.getApplicationId());
+ TopologyHandler.getInstance().assertApplicationStatus(bean.getApplicationId()
+ , ApplicationStatus.Active);
//Cluster active handling
TopologyHandler.getInstance().assertClusterActivation(bean.getApplicationId());
- boolean removedGroup = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "esb-php-group",
- RestConstants.CARTRIDGE_GROUPS_NAME);
- assertEquals(removedGroup, false);
+ //Verifying whether members got created using round robin algorithm
+ assertClusterWithScalingup(bean.getApplicationId());
boolean removedAuto = restClient.removeEntity(RestConstants.AUTOSCALING_POLICIES,
autoscalingPolicyId, RestConstants.AUTOSCALING_POLICIES_NAME);
assertEquals(removedAuto, false);
boolean removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-9",
+ "network-partition-single-cluster-scaling-test",
RestConstants.NETWORK_PARTITIONS_NAME);
//Trying to remove the used network partition
assertEquals(removedNet, false);
boolean removedDep = restClient.removeEntity(RestConstants.DEPLOYMENT_POLICIES,
- "deployment-policy-4", RestConstants.DEPLOYMENT_POLICIES_NAME);
+ "deployment-policy-single-cluster-scaling-test", RestConstants.DEPLOYMENT_POLICIES_NAME);
assertEquals(removedDep, false);
//Un-deploying the application
- String resourcePathUndeploy = RestConstants.APPLICATIONS + "/" + "cartridge-group-app" +
+ String resourcePathUndeploy = RestConstants.APPLICATIONS + "/" + "single-cluster-scaling-test" +
RestConstants.APPLICATIONS_UNDEPLOY;
boolean unDeployed = restClient.undeployEntity(resourcePathUndeploy,
RestConstants.APPLICATIONS_NAME);
assertEquals(unDeployed, true);
- boolean undeploy = TopologyHandler.getInstance().assertApplicationUndeploy("cartridge-group-app");
+ boolean undeploy = TopologyHandler.getInstance().assertApplicationUndeploy("single-cluster-scaling-test");
if (!undeploy) {
//Need to forcefully undeploy the application
- log.info("Force undeployment is going to start for the [application] " + "cartridge-group-app");
+ log.info("Force undeployment is going to start for the [application] " + "single-cluster-scaling-test");
- restClient.undeployEntity(RestConstants.APPLICATIONS + "/" + "cartridge-group-app" +
+ restClient.undeployEntity(RestConstants.APPLICATIONS + "/" + "single-cluster-scaling-test" +
RestConstants.APPLICATIONS_UNDEPLOY + "?force=true", RestConstants.APPLICATIONS);
- boolean forceUndeployed = TopologyHandler.getInstance().assertApplicationUndeploy("cartridge-group-app");
+ boolean forceUndeployed = TopologyHandler.getInstance().assertApplicationUndeploy("single-cluster-scaling-test");
assertEquals(String.format("Forceful undeployment failed for the application %s",
- "cartridge-group-app"), forceUndeployed, true);
+ "single-cluster-scaling-test"), forceUndeployed, true);
}
- boolean removed = restClient.removeEntity(RestConstants.APPLICATIONS, "cartridge-group-app",
+ boolean removed = restClient.removeEntity(RestConstants.APPLICATIONS, "single-cluster-scaling-test",
RestConstants.APPLICATIONS_NAME);
assertEquals(removed, true);
ApplicationBean beanRemoved = (ApplicationBean) restClient.getEntity(RestConstants.APPLICATIONS,
- "cartridge-group-app", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
+ "single-cluster-scaling-test", ApplicationBean.class, RestConstants.APPLICATIONS_NAME);
assertEquals(beanRemoved, null);
- removedGroup = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "esb-php-group",
- RestConstants.CARTRIDGE_GROUPS_NAME);
- assertEquals(removedGroup, true);
-
- boolean removedC1 = restClient.removeEntity(RestConstants.CARTRIDGES, "esb",
+ boolean removedC1 = restClient.removeEntity(RestConstants.CARTRIDGES, "c7-single-cluster-scaling-test",
RestConstants.CARTRIDGES_NAME);
assertEquals(removedC1, true);
- boolean removedC2 = restClient.removeEntity(RestConstants.CARTRIDGES, "php",
- RestConstants.CARTRIDGES_NAME);
- assertEquals(removedC2, true);
-
- boolean removedC3 = restClient.removeEntity(RestConstants.CARTRIDGES, "tomcat",
- RestConstants.CARTRIDGES_NAME);
- assertEquals(removedC3, true);
removedAuto = restClient.removeEntity(RestConstants.AUTOSCALING_POLICIES,
autoscalingPolicyId, RestConstants.AUTOSCALING_POLICIES_NAME);
assertEquals(removedAuto, true);
removedDep = restClient.removeEntity(RestConstants.DEPLOYMENT_POLICIES,
- "deployment-policy-4", RestConstants.DEPLOYMENT_POLICIES_NAME);
+ "deployment-policy-single-cluster-scaling-test", RestConstants.DEPLOYMENT_POLICIES_NAME);
assertEquals(removedDep, true);
removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-9", RestConstants.NETWORK_PARTITIONS_NAME);
+ "network-partition-single-cluster-scaling-test", RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(removedNet, false);
- boolean removedN2 = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-10", RestConstants.NETWORK_PARTITIONS_NAME);
- assertEquals(removedN2, false);
boolean removeAppPolicy = restClient.removeEntity(RestConstants.APPLICATION_POLICIES,
- "application-policy-3", RestConstants.APPLICATION_POLICIES_NAME);
+ "application-policy-single-cluster-scaling-test", RestConstants.APPLICATION_POLICIES_NAME);
assertEquals(removeAppPolicy, true);
removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-9", RestConstants.NETWORK_PARTITIONS_NAME);
+ "network-partition-single-cluster-scaling-test", RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(removedNet, true);
- removedN2 = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-10", RestConstants.NETWORK_PARTITIONS_NAME);
- assertEquals(removedN2, true);
-
- log.info("Ended application bursting test case**************************************");
+ log.info("-------------------------Ended application bursting test case-------------------------");
} catch (Exception e) {
log.error("An error occurred while handling application bursting", e);
@@ -223,11 +190,55 @@ public class SingleClusterScalingTest extends StratosTestServerManager {
}
}
- @Test(dependsOnMethods = {"testApplication"})
- public void testClusterScalingUp() {
-
+ /**
+ * Assert application activation
+ *
+ * @param applicationName
+ */
+ private void assertClusterWithScalingup(String applicationName) {
+ Application application = ApplicationManager.getApplications().getApplication(applicationName);
+ assertNotNull(String.format("Application is not found: [application-id] %s",
+ applicationName), application);
+ boolean clusterScaleup = false;
+ String clusterId = null;
+ long startTime = System.currentTimeMillis();
+ while (!clusterScaleup) {
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException ignore) {
+ }
+ Set<ClusterDataHolder> clusterDataHolderSet = application.getClusterDataRecursively();
+ for (ClusterDataHolder clusterDataHolder : clusterDataHolderSet) {
+ String serviceName = clusterDataHolder.getServiceType();
+ clusterId = clusterDataHolder.getClusterId();
+ Service service = TopologyManager.getTopology().getService(serviceName);
+ assertNotNull(String.format("Service is not found: [application-id] %s [service] %s",
+ applicationName, serviceName), service);
+
+ Cluster cluster = service.getCluster(clusterId);
+ assertNotNull(String.format("Cluster is not found: [application-id] %s [service] %s [cluster-id] %s",
+ applicationName, serviceName, clusterId), cluster);
+ for (ClusterInstance instance : cluster.getInstanceIdToInstanceContextMap().values()) {
+ int activeInstances = 0;
+ for (Member member : cluster.getMembers()) {
+ if (member.getClusterInstanceId().equals(instance.getInstanceId())) {
+ if (member.getStatus().equals(MemberStatus.Active)) {
+ activeInstances++;
+ }
+ }
+ }
+ clusterScaleup = activeInstances > clusterDataHolder.getMinInstances();
+ if(clusterScaleup) {
+ break;
+ }
+ }
+ application = ApplicationManager.getApplications().getApplication(applicationName);
+ if ((System.currentTimeMillis() - startTime) > CLUSTER_SCALE_UP_TIMEOUT) {
+ break;
+ }
+ }
+ }
+ assertEquals(String.format("Cluster did not get scaled up: [cluster-id] %s", clusterId),
+ clusterScaleup, true);
}
-
-
-
}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/config/ApplicationBean.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/config/ApplicationBean.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/config/ApplicationBean.java
deleted file mode 100644
index ce23728..0000000
--- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/config/ApplicationBean.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * 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.
- */
-package org.apache.stratos.integration.tests.config;
-
-/**
- * Created by reka on 5/7/15.
- */
-public class ApplicationBean {
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/config/ApplicationConfigParser.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/config/ApplicationConfigParser.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/config/ApplicationConfigParser.java
deleted file mode 100644
index ace17e6..0000000
--- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/config/ApplicationConfigParser.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * 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.
- */
-package org.apache.stratos.integration.tests.config;
-
-/**
- * Created by reka on 5/7/15.
- */
-public class ApplicationConfigParser {
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeGroupTest.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeGroupTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeGroupTest.java
index 4cd3235..ccaeaf6 100644
--- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeGroupTest.java
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeGroupTest.java
@@ -34,92 +34,100 @@ import static junit.framework.Assert.assertTrue;
*/
public class CartridgeGroupTest extends StratosTestServerManager {
private static final Log log = LogFactory.getLog(CartridgeGroupTest.class);
- private static final String TEST_PATH = "/cartridge-group-test";
+ private static final String RESOURCES_PATH = "/cartridge-group-test";
@Test
public void testCartridgeGroup() {
try {
- log.info("Started Cartridge group test case**************************************");
+ log.info("-------------------------Started Cartridge group test case-------------------------");
- boolean addedC1 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c4.json",
+ boolean addedC1 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH +
+ "/" + "c4-cartridge-group-test.json",
RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
- assertEquals(String.format("Cartridge did not added: [cartridge-name] %s", "c4"), addedC1, true);
+ assertEquals(String.format("Cartridge did not added: [cartridge-name] %s",
+ "c4-cartridge-group-test"), addedC1, true);
- boolean addedC2 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c5.json",
+ boolean addedC2 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH +
+ "/" + "c5-cartridge-group-test.json",
RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
- assertEquals(String.format("Cartridge did not added: [cartridge-name] %s", "c5"), addedC2, true);
+ assertEquals(String.format("Cartridge did not added: [cartridge-name] %s",
+ "c5-cartridge-group-test"), addedC2, true);
- boolean addedC3 = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" + "c6.json",
+ boolean addedC3 = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH +
+ "/" + "c6-cartridge-group-test.json",
RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
- assertEquals(String.format("Cartridge did not added: [cartridge-name] %s", "c6"), addedC3, true);
+ assertEquals(String.format("Cartridge did not added: [cartridge-name] %s",
+ "c6-cartridge-group-test"), addedC3, true);
- boolean added = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGE_GROUPS_PATH +
- "/" + "g4-g5-g6.json", RestConstants.CARTRIDGE_GROUPS,
+ boolean added = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGE_GROUPS_PATH +
+ "/" + "g4-g5-g6-cartridge-group-test.json", RestConstants.CARTRIDGE_GROUPS,
RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(String.format("Cartridge Group did not added: [cartridge-group-name] %s",
- "g4-g5-g6"), added, true);
+ "g4-g5-g6-cartridge-group-test"), added, true);
+
CartridgeGroupBean bean = (CartridgeGroupBean) restClient.
- getEntity(RestConstants.CARTRIDGE_GROUPS, "G4",
+ getEntity(RestConstants.CARTRIDGE_GROUPS, "G4-cartridge-group-test",
CartridgeGroupBean.class, RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(String.format("Cartridge Group name did not match: [cartridge-group-name] %s",
- "g4-g5-g6.json"), bean.getName(), "G4");
+ "g4-g5-g6-cartridge-group-test.json"), bean.getName(), "G4-cartridge-group-test");
- boolean updated = restClient.updateEntity(TEST_PATH + RestConstants.CARTRIDGE_GROUPS_PATH +
- "/" + "g4-g5-g6-v1.json",
+ boolean updated = restClient.updateEntity(RESOURCES_PATH + RestConstants.CARTRIDGE_GROUPS_PATH +
+ "/" + "g4-g5-g6-cartridge-group-test-v1.json",
RestConstants.CARTRIDGE_GROUPS, RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(String.format("Cartridge Group did not updated: [cartridge-group-name] %s",
- "g4-g5-g6"), updated, true);
+ "g4-g5-g6-cartridge-group-test"), updated, true);
+
CartridgeGroupBean updatedBean = (CartridgeGroupBean) restClient.
- getEntity(RestConstants.CARTRIDGE_GROUPS, "G4",
+ getEntity(RestConstants.CARTRIDGE_GROUPS, "G4-cartridge-group-test",
CartridgeGroupBean.class, RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(String.format("Updated Cartridge Group didn't match: [cartridge-group-name] %s",
- "g4-g5-g6"), updatedBean.getName(), "G4");
+ "g4-g5-g6-cartridge-group-test"), updatedBean.getName(), "G4-cartridge-group-test");
- boolean removedC1 = restClient.removeEntity(RestConstants.CARTRIDGES, "c4",
+ boolean removedC1 = restClient.removeEntity(RestConstants.CARTRIDGES, "c4-cartridge-group-test",
RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(String.format("Cartridge can be removed while it is used in " +
- "cartridge group: [cartridge-name] %s", "c4"), removedC1, false);
+ "cartridge group: [cartridge-name] %s", "c4-cartridge-group-test"), removedC1, false);
- boolean removedC2 = restClient.removeEntity(RestConstants.CARTRIDGES, "c5",
+ boolean removedC2 = restClient.removeEntity(RestConstants.CARTRIDGES, "c5-cartridge-group-test",
RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(String.format("Cartridge can be removed while it is used in " +
"cartridge group: [cartridge-name] %s",
- "c5"), removedC2, false);
+ "c5-cartridge-group-test"), removedC2, false);
- boolean removedC3 = restClient.removeEntity(RestConstants.CARTRIDGES, "c6",
+ boolean removedC3 = restClient.removeEntity(RestConstants.CARTRIDGES, "c6-cartridge-group-test",
RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(String.format("Cartridge can be removed while it is used in " +
"cartridge group: [cartridge-name] %s",
- "c6"), removedC3, false);
+ "c6-cartridge-group-test"), removedC3, false);
- boolean removed = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "G4",
+ boolean removed = restClient.removeEntity(RestConstants.CARTRIDGE_GROUPS, "G4-cartridge-group-test",
RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(String.format("Cartridge Group did not removed: [cartridge-group-name] %s",
- "g4-g5-g6"), removed, true);
+ "g4-g5-g6-cartridge-group-test"), removed, true);
CartridgeGroupBean beanRemoved = (CartridgeGroupBean) restClient.
- getEntity(RestConstants.CARTRIDGE_GROUPS, "G4",
+ getEntity(RestConstants.CARTRIDGE_GROUPS, "G4-cartridge-group-test",
CartridgeGroupBean.class, RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(String.format("Cartridge Group did not removed completely: " +
"[cartridge-group-name] %s",
- "g4-g5-g6"), beanRemoved, null);
+ "g4-g5-g6-cartridge-group-test"), beanRemoved, null);
- removedC1 = restClient.removeEntity(RestConstants.CARTRIDGES, "c4",
+ removedC1 = restClient.removeEntity(RestConstants.CARTRIDGES, "c4-cartridge-group-test",
RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(String.format("Cartridge can not be removed : [cartridge-name] %s",
- "c4"), removedC1, true);
+ "c4-cartridge-group-test"), removedC1, true);
- removedC2 = restClient.removeEntity(RestConstants.CARTRIDGES, "c5",
+ removedC2 = restClient.removeEntity(RestConstants.CARTRIDGES, "c5-cartridge-group-test",
RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(String.format("Cartridge can not be removed : [cartridge-name] %s",
- "c5"), removedC2, true);
+ "c5-cartridge-group-test"), removedC2, true);
- removedC3 = restClient.removeEntity(RestConstants.CARTRIDGES, "c6",
+ removedC3 = restClient.removeEntity(RestConstants.CARTRIDGES, "c6-cartridge-group-test",
RestConstants.CARTRIDGE_GROUPS_NAME);
assertEquals(String.format("Cartridge can not be removed : [cartridge-name] %s",
- "c6"), removedC3, true);
+ "c6-cartridge-group-test"), removedC3, true);
- log.info("Ended Cartridge group test case**************************************");
+ log.info("-------------------------Ended Cartridge group test case-------------------------");
} catch (Exception e) {
log.error("An error occurred while handling Cartridge group test case", e);
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeTest.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeTest.java
index e861e12..ac39161 100644
--- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeTest.java
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/group/CartridgeTest.java
@@ -35,16 +35,16 @@ import static junit.framework.Assert.assertTrue;
*/
public class CartridgeTest extends StratosTestServerManager {
private static final Log log = LogFactory.getLog(CartridgeTest.class);
- private static final String TEST_PATH = "/cartridge-test";
+ private static final String RESOURCES_PATH = "/cartridge-test";
@Test
public void testCartridge() {
- log.info("Started Cartridge test case**************************************");
+ log.info("--------------------Started Cartridge test case-----------------------------");
try {
- String cartridgeType = "c0";
- boolean added = restClient.addEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" +
+ String cartridgeType = "c0-cartridge-test";
+ boolean added = restClient.addEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" +
cartridgeType + ".json",
RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
assertEquals(added, true);
@@ -78,14 +78,14 @@ public class CartridgeTest extends StratosTestServerManager {
}
- boolean updated = restClient.updateEntity(TEST_PATH + RestConstants.CARTRIDGES_PATH + "/" +
+ boolean updated = restClient.updateEntity(RESOURCES_PATH + RestConstants.CARTRIDGES_PATH + "/" +
cartridgeType + "-v1.json",
RestConstants.CARTRIDGES, RestConstants.CARTRIDGES_NAME);
assertEquals(updated, true);
CartridgeBean updatedBean = (CartridgeBean) restClient.
getEntity(RestConstants.CARTRIDGES, cartridgeType,
CartridgeBean.class, RestConstants.CARTRIDGES_NAME);
- assertEquals(updatedBean.getType(), "c0");
+ assertEquals(updatedBean.getType(), "c0-cartridge-test");
assertEquals(updatedBean.getCategory(), "Data");
assertEquals(updatedBean.getHost(), "qmog.cisco.com12");
for (PropertyBean property : updatedBean.getProperty()) {
@@ -121,7 +121,7 @@ public class CartridgeTest extends StratosTestServerManager {
CartridgeBean.class, RestConstants.CARTRIDGES_NAME);
assertEquals(beanRemoved, null);
- log.info("Ended Cartridge test case**************************************");
+ log.info("---------------------------Ended Cartridge test case-------------------------");
} catch (Exception e) {
log.error("An error occurred while handling RESTConstants.CARTRIDGES_PATH", e);
assertTrue("An error occurred while handling RESTConstants.CARTRIDGES_PATH", false);
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/ApplicationPolicyTest.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/ApplicationPolicyTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/ApplicationPolicyTest.java
index 4ed2a2e..bced0ff 100644
--- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/ApplicationPolicyTest.java
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/ApplicationPolicyTest.java
@@ -36,26 +36,26 @@ import static junit.framework.Assert.assertTrue;
*/
public class ApplicationPolicyTest extends StratosTestServerManager {
private static final Log log = LogFactory.getLog(ApplicationPolicyTest.class);
- private static final String TEST_PATH = "/application-policy-test";
+ private static final String RESOURCES_PATH = "/application-policy-test";
@Test
public void testApplicationPolicy() {
try {
- String applicationPolicyId = "application-policy-2";
- log.info("Started Application policy test case**************************************");
+ String applicationPolicyId = "application-policy-application-policy-test";
+ log.info("-------------------------Started Application policy test case-------------------------");
- boolean addedN1 = restClient.addEntity(TEST_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
- "network-partition-7" + ".json",
+ boolean addedN1 = restClient.addEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ "network-partition-application-policy-test-1" + ".json",
RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(addedN1, true);
- boolean addedN2 = restClient.addEntity(TEST_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
- "network-partition-8" + ".json",
+ boolean addedN2 = restClient.addEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ "network-partition-application-policy-test-2" + ".json",
RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(addedN2, true);
- boolean addedDep = restClient.addEntity(TEST_PATH + RestConstants.APPLICATION_POLICIES_PATH + "/" +
+ boolean addedDep = restClient.addEntity(RESOURCES_PATH + RestConstants.APPLICATION_POLICIES_PATH + "/" +
applicationPolicyId + ".json",
RestConstants.APPLICATION_POLICIES, RestConstants.APPLICATION_POLICIES_NAME);
assertEquals(addedDep, true);
@@ -71,17 +71,17 @@ public class ApplicationPolicyTest extends StratosTestServerManager {
assertEquals(String.format("The expected networkpartitions size %s is not found in %s",
2, applicationPolicyId), bean.getNetworkPartitions().length, 2);
assertEquals(String.format("The first network partition is not %s in %s",
- "network-partition-7", applicationPolicyId), bean.getNetworkPartitions()[0],
- "network-partition-7");
+ "network-partition-application-policy-test-1", applicationPolicyId), bean.getNetworkPartitions()[0],
+ "network-partition-application-policy-test-1");
assertEquals(String.format("The Second network partition is not %s in %s",
- "network-partition-8", applicationPolicyId), bean.getNetworkPartitions()[1],
- "network-partition-8");
+ "network-partition-application-policy-test-2", applicationPolicyId), bean.getNetworkPartitions()[1],
+ "network-partition-application-policy-test-2");
boolean algoFound = false;
for (PropertyBean propertyBean : bean.getProperties()) {
if (propertyBean.getName().equals("networkPartitionGroups")) {
assertEquals(String.format("The networkPartitionGroups algorithm %s is not found in %s",
- "network-partition-7,network-partition-8", applicationPolicyId),
- propertyBean.getValue(), "network-partition-7,network-partition-8");
+ "network-partition-application-policy-test-1,network-partition-application-policy-test-2", applicationPolicyId),
+ propertyBean.getValue(), "network-partition-application-policy-test-1,network-partition-application-policy-test-2");
algoFound = true;
}
@@ -92,7 +92,7 @@ public class ApplicationPolicyTest extends StratosTestServerManager {
}
boolean removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-7", RestConstants.NETWORK_PARTITIONS_NAME);
+ "network-partition-application-policy-test-1", RestConstants.NETWORK_PARTITIONS_NAME);
//Trying to remove the used network partition
assertEquals(removedNet, false);
@@ -106,24 +106,24 @@ public class ApplicationPolicyTest extends StratosTestServerManager {
assertEquals(beanRemovedDep, null);
boolean removedN1 = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-7", RestConstants.NETWORK_PARTITIONS_NAME);
+ "network-partition-application-policy-test-1", RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(removedN1, true);
NetworkPartitionBean beanRemovedN1 = (NetworkPartitionBean) restClient.
- getEntity(RestConstants.NETWORK_PARTITIONS, "network-partition-7",
+ getEntity(RestConstants.NETWORK_PARTITIONS, "network-partition-application-policy-test-1",
NetworkPartitionBean.class, RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(beanRemovedN1, null);
boolean removedN2 = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-8", RestConstants.NETWORK_PARTITIONS_NAME);
+ "network-partition-application-policy-test-2", RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(removedN2, true);
NetworkPartitionBean beanRemovedN2 = (NetworkPartitionBean) restClient.
- getEntity(RestConstants.NETWORK_PARTITIONS, "network-partition-8",
+ getEntity(RestConstants.NETWORK_PARTITIONS, "network-partition-application-policy-test-2",
NetworkPartitionBean.class, RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(beanRemovedN2, null);
- log.info("Ended deployment policy test case**************************************");
+ log.info("-------------------------Ended deployment policy test case-------------------------");
} catch (Exception e) {
log.error("An error occurred while handling deployment policy", e);
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/AutoscalingPolicyTest.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/AutoscalingPolicyTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/AutoscalingPolicyTest.java
index 96b8a57..9a164c5 100644
--- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/AutoscalingPolicyTest.java
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/AutoscalingPolicyTest.java
@@ -33,15 +33,15 @@ import static junit.framework.Assert.assertTrue;
*/
public class AutoscalingPolicyTest extends StratosTestServerManager {
private static final Log log = LogFactory.getLog(AutoscalingPolicyTest.class);
- private static final String TEST_PATH = "/autoscaling-policy-test";
+ private static final String RESOURCES_PATH = "/autoscaling-policy-test";
@Test
public void testAutoscalingPolicy() {
- log.info("Started autoscaling policy test case**************************************");
- String policyId = "autoscaling-policy-c0";
+ log.info("-------------------------Started autoscaling policy test case-------------------------");
+ String policyId = "autoscaling-policy-autoscaling-policy-test";
try {
- boolean added = restClient.addEntity(TEST_PATH + RestConstants.AUTOSCALING_POLICIES_PATH + "/" + policyId + ".json",
+ boolean added = restClient.addEntity(RESOURCES_PATH + RestConstants.AUTOSCALING_POLICIES_PATH + "/" + policyId + ".json",
RestConstants.AUTOSCALING_POLICIES, RestConstants.AUTOSCALING_POLICIES_NAME);
assertEquals(String.format("Autoscaling policy did not added: [autoscaling-policy-id] %s", policyId), added, true);
@@ -58,7 +58,7 @@ public class AutoscalingPolicyTest extends StratosTestServerManager {
assertEquals(String.format("[autoscaling-policy-id] %s Load is not correct", policyId),
bean.getLoadThresholds().getLoadAverage().getThreshold(), 25.0, 0.0);
- boolean updated = restClient.updateEntity(TEST_PATH + RestConstants.AUTOSCALING_POLICIES_PATH + "/" + policyId + "-v1.json",
+ boolean updated = restClient.updateEntity(RESOURCES_PATH + RestConstants.AUTOSCALING_POLICIES_PATH + "/" + policyId + "-v1.json",
RestConstants.AUTOSCALING_POLICIES, RestConstants.AUTOSCALING_POLICIES_NAME);
assertEquals(String.format("[autoscaling-policy-id] %s update failed", policyId), updated, true);
@@ -82,7 +82,7 @@ public class AutoscalingPolicyTest extends StratosTestServerManager {
AutoscalePolicyBean.class, RestConstants.AUTOSCALING_POLICIES_NAME);
assertEquals(String.format("[autoscaling-policy-id] %s didn't get removed successfully",
policyId), beanRemoved, null);
- log.info("Ended autoscaling policy test case**************************************");
+ log.info("-------------------------Ended autoscaling policy test case---------------------------");
} catch (Exception e) {
log.error("An error occurred while handling [autoscaling policy] " + policyId, e);
assertTrue("An error occurred while handling [autoscaling policy] " + policyId, false);
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/DeploymentPolicyTest.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/DeploymentPolicyTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/DeploymentPolicyTest.java
index 9d13ca4..4401443 100644
--- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/DeploymentPolicyTest.java
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/DeploymentPolicyTest.java
@@ -22,6 +22,8 @@ package org.apache.stratos.integration.tests.policies;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.stratos.common.beans.partition.NetworkPartitionBean;
+import org.apache.stratos.common.beans.partition.NetworkPartitionReferenceBean;
+import org.apache.stratos.common.beans.partition.PartitionReferenceBean;
import org.apache.stratos.common.beans.policy.deployment.DeploymentPolicyBean;
import org.apache.stratos.integration.tests.RestConstants;
import org.apache.stratos.integration.tests.StratosTestServerManager;
@@ -35,26 +37,26 @@ import static junit.framework.Assert.assertTrue;
*/
public class DeploymentPolicyTest extends StratosTestServerManager {
private static final Log log = LogFactory.getLog(DeploymentPolicyTest.class);
- private static final String TEST_PATH = "/deployment-policy-test";
+ private static final String RESOURCES_PATH = "/deployment-policy-test";
@Test
public void testDeploymentPolicy() {
try {
- String deploymentPolicyId = "deployment-policy-2";
- log.info("Started deployment policy test case**************************************");
+ String deploymentPolicyId = "deployment-policy-deployment-policy-test";
+ log.info("-------------------------Started deployment policy test case-------------------------");
- boolean addedN1 = restClient.addEntity(TEST_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
- "network-partition-5" + ".json",
+ boolean addedN1 = restClient.addEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ "network-partition-deployment-policy-test-1" + ".json",
RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(addedN1, true);
- boolean addedN2 = restClient.addEntity(TEST_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
- "network-partition-6" + ".json",
+ boolean addedN2 = restClient.addEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ "network-partition-deployment-policy-test-2" + ".json",
RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(addedN2, true);
- boolean addedDep = restClient.addEntity(TEST_PATH + RestConstants.DEPLOYMENT_POLICIES_PATH + "/" +
+ boolean addedDep = restClient.addEntity(RESOURCES_PATH + RestConstants.DEPLOYMENT_POLICIES_PATH + "/" +
deploymentPolicyId + ".json",
RestConstants.DEPLOYMENT_POLICIES, RestConstants.DEPLOYMENT_POLICIES_NAME);
assertEquals(addedDep, true);
@@ -62,32 +64,39 @@ public class DeploymentPolicyTest extends StratosTestServerManager {
DeploymentPolicyBean bean = (DeploymentPolicyBean) restClient.
getEntity(RestConstants.DEPLOYMENT_POLICIES, deploymentPolicyId,
DeploymentPolicyBean.class, RestConstants.DEPLOYMENT_POLICIES_NAME);
- assertEquals(bean.getId(), "deployment-policy-2");
+
+ NetworkPartitionReferenceBean nw1 = bean.getNetworkPartitions().get(0);
+ NetworkPartitionReferenceBean nw2 = bean.getNetworkPartitions().get(1);
+ PartitionReferenceBean nw1P1 = nw1.getPartitions().get(0);
+ PartitionReferenceBean nw2P1 = nw2.getPartitions().get(0);
+ PartitionReferenceBean nw2P2 = nw2.getPartitions().get(1);
+
+ assertEquals(bean.getId(), "deployment-policy-deployment-policy-test");
assertEquals(bean.getNetworkPartitions().size(), 2);
- assertEquals(bean.getNetworkPartitions().get(0).getId(), "network-partition-5");
- assertEquals(bean.getNetworkPartitions().get(0).getPartitionAlgo(), "one-after-another");
- assertEquals(bean.getNetworkPartitions().get(0).getPartitions().size(), 1);
- assertEquals(bean.getNetworkPartitions().get(0).getPartitions().get(0).getId(), "partition-1");
- assertEquals(bean.getNetworkPartitions().get(0).getPartitions().get(0).getPartitionMax(), 20);
-
- assertEquals(bean.getNetworkPartitions().get(1).getId(), "network-partition-6");
- assertEquals(bean.getNetworkPartitions().get(1).getPartitionAlgo(), "round-robin");
- assertEquals(bean.getNetworkPartitions().get(1).getPartitions().size(), 2);
- assertEquals(bean.getNetworkPartitions().get(1).getPartitions().get(0).getId(),
+ assertEquals(nw1.getId(), "network-partition-deployment-policy-test-1");
+ assertEquals(nw1.getPartitionAlgo(), "one-after-another");
+ assertEquals(nw1.getPartitions().size(), 1);
+ assertEquals(nw1P1.getId(), "partition-1");
+ assertEquals(nw1P1.getPartitionMax(), 20);
+
+ assertEquals(nw2.getId(), "network-partition-deployment-policy-test-2");
+ assertEquals(nw2.getPartitionAlgo(), "round-robin");
+ assertEquals(nw2.getPartitions().size(), 2);
+ assertEquals(nw2P1.getId(),
"network-partition-6-partition-1");
- assertEquals(bean.getNetworkPartitions().get(1).getPartitions().get(0).getPartitionMax(), 10);
- assertEquals(bean.getNetworkPartitions().get(1).getPartitions().get(1).getId(),
+ assertEquals(nw2P1.getPartitionMax(), 10);
+ assertEquals(nw2P2.getId(),
"network-partition-6-partition-2");
- assertEquals(bean.getNetworkPartitions().get(1).getPartitions().get(1).getPartitionMax(), 9);
+ assertEquals(nw2P2.getPartitionMax(), 9);
//update network partition
- boolean updated = restClient.updateEntity(TEST_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
- "network-partition-5-v1.json",
+ boolean updated = restClient.updateEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ "network-partition-deployment-policy-test-1-v1.json",
RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(updated, true);
//update deployment policy with new partition and max values
- boolean updatedDep = restClient.updateEntity(TEST_PATH + RestConstants.DEPLOYMENT_POLICIES_PATH +
+ boolean updatedDep = restClient.updateEntity(RESOURCES_PATH + RestConstants.DEPLOYMENT_POLICIES_PATH +
"/" + deploymentPolicyId + "-v1.json", RestConstants.DEPLOYMENT_POLICIES,
RestConstants.DEPLOYMENT_POLICIES_NAME);
assertEquals(updatedDep, true);
@@ -95,28 +104,36 @@ public class DeploymentPolicyTest extends StratosTestServerManager {
DeploymentPolicyBean updatedBean = (DeploymentPolicyBean) restClient.
getEntity(RestConstants.DEPLOYMENT_POLICIES, deploymentPolicyId,
DeploymentPolicyBean.class, RestConstants.DEPLOYMENT_POLICIES_NAME);
- assertEquals(updatedBean.getId(), "deployment-policy-2");
+
+ nw1 = updatedBean.getNetworkPartitions().get(0);
+ nw2 = updatedBean.getNetworkPartitions().get(1);
+ nw1P1 = nw1.getPartitions().get(0);
+ PartitionReferenceBean nw1P2 = nw1.getPartitions().get(1);
+ nw2P1 = nw2.getPartitions().get(0);
+ nw2P2 = nw2.getPartitions().get(1);
+
+ assertEquals(updatedBean.getId(), "deployment-policy-deployment-policy-test");
assertEquals(updatedBean.getNetworkPartitions().size(), 2);
- assertEquals(updatedBean.getNetworkPartitions().get(0).getId(), "network-partition-5");
- assertEquals(updatedBean.getNetworkPartitions().get(0).getPartitionAlgo(), "one-after-another");
- assertEquals(updatedBean.getNetworkPartitions().get(0).getPartitions().size(), 2);
- assertEquals(updatedBean.getNetworkPartitions().get(0).getPartitions().get(0).getId(), "partition-1");
- assertEquals(updatedBean.getNetworkPartitions().get(0).getPartitions().get(0).getPartitionMax(), 25);
- assertEquals(updatedBean.getNetworkPartitions().get(0).getPartitions().get(1).getId(), "partition-2");
- assertEquals(updatedBean.getNetworkPartitions().get(0).getPartitions().get(1).getPartitionMax(), 20);
-
- assertEquals(updatedBean.getNetworkPartitions().get(1).getId(), "network-partition-6");
- assertEquals(updatedBean.getNetworkPartitions().get(1).getPartitionAlgo(), "round-robin");
- assertEquals(updatedBean.getNetworkPartitions().get(1).getPartitions().size(), 2);
- assertEquals(updatedBean.getNetworkPartitions().get(1).getPartitions().get(0).getId(),
+ assertEquals(nw1.getId(), "network-partition-deployment-policy-test-1");
+ assertEquals(nw1.getPartitionAlgo(), "one-after-another");
+ assertEquals(nw1.getPartitions().size(), 2);
+ assertEquals(nw1P1.getId(), "partition-1");
+ assertEquals(nw1P1.getPartitionMax(), 25);
+ assertEquals(nw1P2.getId(), "partition-2");
+ assertEquals(nw1P2.getPartitionMax(), 20);
+
+ assertEquals(nw2.getId(), "network-partition-deployment-policy-test-2");
+ assertEquals(nw2.getPartitionAlgo(), "round-robin");
+ assertEquals(nw2.getPartitions().size(), 2);
+ assertEquals(nw2P1.getId(),
"network-partition-6-partition-1");
- assertEquals(updatedBean.getNetworkPartitions().get(1).getPartitions().get(0).getPartitionMax(), 15);
- assertEquals(updatedBean.getNetworkPartitions().get(1).getPartitions().get(1).getId(),
+ assertEquals(nw2P1.getPartitionMax(), 15);
+ assertEquals(nw2P2.getId(),
"network-partition-6-partition-2");
- assertEquals(updatedBean.getNetworkPartitions().get(1).getPartitions().get(1).getPartitionMax(), 5);
+ assertEquals(nw2P2.getPartitionMax(), 5);
boolean removedNet = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-5", RestConstants.NETWORK_PARTITIONS_NAME);
+ "network-partition-deployment-policy-test-1", RestConstants.NETWORK_PARTITIONS_NAME);
//Trying to remove the used network partition
assertEquals(removedNet, false);
@@ -130,24 +147,24 @@ public class DeploymentPolicyTest extends StratosTestServerManager {
assertEquals(beanRemovedDep, null);
boolean removedN1 = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-5", RestConstants.NETWORK_PARTITIONS_NAME);
+ "network-partition-deployment-policy-test-1", RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(removedN1, true);
NetworkPartitionBean beanRemovedN1 = (NetworkPartitionBean) restClient.
- getEntity(RestConstants.NETWORK_PARTITIONS, "network-partition-5",
+ getEntity(RestConstants.NETWORK_PARTITIONS, "network-partition-deployment-policy-test-1",
NetworkPartitionBean.class, RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(beanRemovedN1, null);
boolean removedN2 = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
- "network-partition-6", RestConstants.NETWORK_PARTITIONS_NAME);
+ "network-partition-deployment-policy-test-2", RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(removedN2, true);
NetworkPartitionBean beanRemovedN2 = (NetworkPartitionBean) restClient.
- getEntity(RestConstants.NETWORK_PARTITIONS, "network-partition-6",
+ getEntity(RestConstants.NETWORK_PARTITIONS, "network-partition-deployment-policy-test-2",
NetworkPartitionBean.class, RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(beanRemovedN2, null);
- log.info("Ended deployment policy test case**************************************");
+ log.info("-------------------------Ended deployment policy test case-------------------------");
} catch (Exception e) {
log.error("An error occurred while handling deployment policy", e);
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/NetworkPartitionTest.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/NetworkPartitionTest.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/NetworkPartitionTest.java
index 5df2313..684dc03 100644
--- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/NetworkPartitionTest.java
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/policies/NetworkPartitionTest.java
@@ -22,6 +22,8 @@ package org.apache.stratos.integration.tests.policies;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.stratos.common.beans.partition.NetworkPartitionBean;
+import org.apache.stratos.common.beans.partition.NetworkPartitionReferenceBean;
+import org.apache.stratos.common.beans.partition.PartitionBean;
import org.apache.stratos.integration.tests.RestConstants;
import org.apache.stratos.integration.tests.StratosTestServerManager;
import org.testng.annotations.Test;
@@ -34,16 +36,16 @@ import static junit.framework.Assert.assertTrue;
*/
public class NetworkPartitionTest extends StratosTestServerManager {
private static final Log log = LogFactory.getLog(NetworkPartitionTest.class);
- private static final String TEST_PATH = "/network-partition-test";
+ private static final String RESOURCES_PATH = "/network-partition-test";
@Test
public void testNetworkPartition() {
try {
- String networkPartitionId = "network-partition-3";
- log.info("Started network partition test case**************************************");
+ String networkPartitionId = "network-partition-network-partition-test";
+ log.info("-------------------------Started network partition test case-------------------------");
- boolean added = restClient.addEntity(TEST_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ boolean added = restClient.addEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
networkPartitionId + ".json",
RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
@@ -52,13 +54,14 @@ public class NetworkPartitionTest extends StratosTestServerManager {
getEntity(RestConstants.NETWORK_PARTITIONS, networkPartitionId,
NetworkPartitionBean.class, RestConstants.NETWORK_PARTITIONS_NAME);
- assertEquals(bean.getId(), "network-partition-3");
+ PartitionBean p1 = bean.getPartitions().get(0);
+ assertEquals(bean.getId(), "network-partition-network-partition-test");
assertEquals(bean.getPartitions().size(), 1);
- assertEquals(bean.getPartitions().get(0).getId(), "partition-1");
- assertEquals(bean.getPartitions().get(0).getProperty().get(0).getName(), "region");
- assertEquals(bean.getPartitions().get(0).getProperty().get(0).getValue(), "default");
+ assertEquals(p1.getId(), "partition-1");
+ assertEquals(p1.getProperty().get(0).getName(), "region");
+ assertEquals(p1.getProperty().get(0).getValue(), "default");
- boolean updated = restClient.updateEntity(TEST_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
+ boolean updated = restClient.updateEntity(RESOURCES_PATH + RestConstants.NETWORK_PARTITIONS_PATH + "/" +
networkPartitionId + "-v1.json",
RestConstants.NETWORK_PARTITIONS, RestConstants.NETWORK_PARTITIONS_NAME);
@@ -66,13 +69,15 @@ public class NetworkPartitionTest extends StratosTestServerManager {
NetworkPartitionBean updatedBean = (NetworkPartitionBean) restClient.
getEntity(RestConstants.NETWORK_PARTITIONS, networkPartitionId,
NetworkPartitionBean.class, RestConstants.NETWORK_PARTITIONS_NAME);
- assertEquals(updatedBean.getId(), "network-partition-3");
+
+ PartitionBean p2 = updatedBean.getPartitions().get(1);
+ assertEquals(updatedBean.getId(), "network-partition-network-partition-test");
assertEquals(updatedBean.getPartitions().size(), 2);
- assertEquals(updatedBean.getPartitions().get(1).getId(), "partition-2");
- assertEquals(updatedBean.getPartitions().get(1).getProperty().get(0).getName(), "region");
- assertEquals(updatedBean.getPartitions().get(1).getProperty().get(0).getValue(), "default1");
- assertEquals(updatedBean.getPartitions().get(1).getProperty().get(1).getName(), "zone");
- assertEquals(updatedBean.getPartitions().get(1).getProperty().get(1).getValue(), "z1");
+ assertEquals(p2.getId(), "partition-2");
+ assertEquals(p2.getProperty().get(0).getName(), "region");
+ assertEquals(p2.getProperty().get(0).getValue(), "default1");
+ assertEquals(p2.getProperty().get(1).getName(), "zone");
+ assertEquals(p2.getProperty().get(1).getValue(), "z1");
boolean removed = restClient.removeEntity(RestConstants.NETWORK_PARTITIONS,
networkPartitionId, RestConstants.NETWORK_PARTITIONS_NAME);
@@ -83,7 +88,7 @@ public class NetworkPartitionTest extends StratosTestServerManager {
NetworkPartitionBean.class, RestConstants.NETWORK_PARTITIONS_NAME);
assertEquals(beanRemoved, null);
- log.info("Ended network partition test case**************************************");
+ log.info("-------------------------Ended network partition test case-------------------------");
} catch (Exception e) {
log.error("An error occurred while handling network partitions", e);
assertTrue("An error occurred while handling network partitions", false);
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/rest/RestClient.java
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/rest/RestClient.java b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/rest/RestClient.java
index 54b04a8..34a9d75 100644
--- a/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/rest/RestClient.java
+++ b/products/stratos/modules/integration/src/test/java/org/apache/stratos/integration/tests/rest/RestClient.java
@@ -60,8 +60,8 @@ public class RestClient {
public RestClient(String endPoint, String userName, String password) {
this();
this.endPoint = endPoint;
- this.setUserName(userName);
- this.setPassword(password);
+ this.userName = userName;
+ this.password = password;
}
/**
@@ -352,22 +352,6 @@ public class RestClient {
* @return username:password
*/
private String getUsernamePassword() {
- return this.getUserName() + ":" + this.getPassword();
- }
-
- public String getUserName() {
- return userName;
- }
-
- public void setUserName(String userName) {
- this.userName = userName;
- }
-
- public String getPassword() {
- return password;
- }
-
- public void setPassword(String password) {
- this.password = password;
+ return this.userName + ":" + this.password;
}
}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/application-bursting-test/application-policies/application-policy-3.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/application-policies/application-policy-3.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/application-policies/application-policy-3.json
deleted file mode 100644
index a461844..0000000
--- a/products/stratos/modules/integration/src/test/resources/application-bursting-test/application-policies/application-policy-3.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "id": "application-policy-3",
- "algorithm": "one-after-another",
- "networkPartitions": [
- "network-partition-9",
- "network-partition-10"
- ],
- "properties": [
- {
- "name": "key-1",
- "value": "network-partition-9|network-partition-10"
- },
- {
- "name": "key-2",
- "value": "value-2"
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/application-bursting-test/applications/app-bursting-single-cartriddge-group.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/applications/app-bursting-single-cartriddge-group.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/applications/app-bursting-single-cartriddge-group.json
index 4e00d60..c091ec5 100644
--- a/products/stratos/modules/integration/src/test/resources/application-bursting-test/applications/app-bursting-single-cartriddge-group.json
+++ b/products/stratos/modules/integration/src/test/resources/application-bursting-test/applications/app-bursting-single-cartriddge-group.json
@@ -1,22 +1,22 @@
{
- "applicationId": "cartridge-group-app",
+ "applicationId": "application-bursting-test",
"alias": "my-cartridge-group-app",
"components": {
"groups": [
{
- "name": "esb-php-group",
- "alias": "my-esb-php-group",
- "deploymentPolicy": "deployment-policy-4",
+ "name": "esb-php-group-application-bursting-test",
+ "alias": "my-esb-php-group-application-bursting-test",
+ "deploymentPolicy": "deployment-policy-application-bursting-test",
"groupMinInstances": 1,
"groupMaxInstances": 2,
"cartridges": [
{
- "type": "esb",
+ "type": "esb-application-bursting-test",
"cartridgeMin": 1,
"cartridgeMax": 2,
"subscribableInfo": {
- "alias": "my-esb",
- "autoscalingPolicy": "autoscaling-policy-2",
+ "alias": "my-esb-application-bursting-test",
+ "autoscalingPolicy": "autoscaling-policy-application-bursting-test",
"artifactRepository": {
"privateRepo": false,
"repoUrl": "https://github.com/imesh/stratos-esb-applications.git",
@@ -26,13 +26,13 @@
}
},
{
- "type": "php",
+ "type": "php-application-bursting-test",
"cartridgeMin": 2,
"cartridgeMax": 4,
"lvsVirtualIP": "192.168.56.50|255.255.255.0",
"subscribableInfo": {
- "alias": "my-php",
- "autoscalingPolicy": "autoscaling-policy-2",
+ "alias": "my-php-application-bursting-test",
+ "autoscalingPolicy": "autoscaling-policy-application-bursting-test",
"artifactRepository": {
"privateRepo": false,
"repoUrl": "https://github.com/imesh/stratos-php-applications.git",
@@ -46,13 +46,13 @@
],
"cartridges": [
{
- "type": "tomcat",
+ "type": "tomcat-application-bursting-test",
"cartridgeMin": 2,
"cartridgeMax": 4,
"subscribableInfo": {
- "alias": "my-tomcat",
- "autoscalingPolicy": "autoscaling-policy-2",
- "deploymentPolicy": "deployment-policy-4",
+ "alias": "my-tomcat-application-bursting-test",
+ "autoscalingPolicy": "autoscaling-policy-application-bursting-test",
+ "deploymentPolicy": "deployment-policy-application-bursting-test",
"artifactRepository": {
"privateRepo": false,
"repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/application-bursting-test/autoscaling-policies/autoscaling-policy-2.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/autoscaling-policies/autoscaling-policy-2.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/autoscaling-policies/autoscaling-policy-2.json
deleted file mode 100644
index 944aa82..0000000
--- a/products/stratos/modules/integration/src/test/resources/application-bursting-test/autoscaling-policies/autoscaling-policy-2.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "id": "autoscaling-policy-2",
- "loadThresholds": {
- "requestsInFlight": {
- "threshold": 35
- },
- "memoryConsumption": {
- "threshold": 45
- },
- "loadAverage": {
- "threshold": 25
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges-groups/esb-php-group.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges-groups/esb-php-group.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges-groups/esb-php-group.json
deleted file mode 100644
index 008c735..0000000
--- a/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges-groups/esb-php-group.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "name": "esb-php-group",
- "cartridges": [
- "esb",
- "php"
- ],
- "dependencies": {
- "startupOrders": [
- {
- "aliases": [
- "cartridge.my-esb",
- "cartridge.my-php"
- ]
- }
- ],
- "terminationBehaviour": "terminate-none"
- }
-}
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/esb.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/esb.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/esb.json
deleted file mode 100755
index 571e7e1..0000000
--- a/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/esb.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "type": "esb",
- "provider": "apache",
- "host": "stratos.apache.org",
- "category": "framework",
- "displayName": "esb",
- "description": "esb Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "name": "http-22",
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "mock",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ],
- "metadataKeys": [
- "server_ip",
- "username",
- "password"
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/php.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/php.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/php.json
deleted file mode 100755
index 5d53e3a..0000000
--- a/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/php.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "type": "php",
- "provider": "apache",
- "category": "framework",
- "host": "php.stratos.org",
- "displayName": "php",
- "description": "php Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "name": "http-80",
- "protocol": "http",
- "port": "8080",
- "proxyPort": "8280"
- },
- {
- "name": "http-22",
- "protocol": "tcp",
- "port": "22",
- "proxyPort": "8222"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "mock",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "reka"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/tomcat.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/tomcat.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/tomcat.json
deleted file mode 100755
index 395687d..0000000
--- a/products/stratos/modules/integration/src/test/resources/application-bursting-test/cartridges/mock/tomcat.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "type": "tomcat",
- "provider": "apache",
- "host": "tomcat.stratos.org",
- "category": "framework",
- "displayName": "tomcat",
- "description": "tomcat Cartridge",
- "version": "7",
- "multiTenant": "false",
- "portMapping": [
- {
- "name": "http-22",
- "protocol": "http",
- "port": "22",
- "proxyPort": "8280"
- },
- {
- "protocol": "http",
- "port": "8080",
- "proxyPort": "80"
- }
- ],
- "deployment": {
- },
- "iaasProvider": [
- {
- "type": "mock",
- "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
- "networkInterfaces": [
- {
- "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
- }
- ],
- "property": [
- {
- "name": "instanceType",
- "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
- },
- {
- "name": "keyPair",
- "value": "vishanth-key"
- },
- {
- "name": "securityGroups",
- "value": "default"
- }
- ]
- }
- ],
- "metadataKeys": [
- "url"
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/application-bursting-test/deployment-policies/deployment-policy-4.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/deployment-policies/deployment-policy-4.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/deployment-policies/deployment-policy-4.json
deleted file mode 100644
index f9935d7..0000000
--- a/products/stratos/modules/integration/src/test/resources/application-bursting-test/deployment-policies/deployment-policy-4.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "id": "deployment-policy-4",
- "networkPartitions": [
- {
- "id": "network-partition-9",
- "partitionAlgo": "one-after-another",
- "partitions": [
- {
- "id": "partition-1",
- "partitionMax": 4
- }
- ]
- },
- {
- "id": "network-partition-10",
- "partitionAlgo": "round-robin",
- "partitions": [
- {
- "id": "network-partition-10-partition-1",
- "partitionMax": 4
- },
- {
- "id": "network-partition-10-partition-2",
- "partitionMax": 4
- }
- ]
- }
- ]
-}
-
-
-
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/application-bursting-test/network-partitions/mock/network-partition-10.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/network-partitions/mock/network-partition-10.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/network-partitions/mock/network-partition-10.json
deleted file mode 100644
index 1e1ec23..0000000
--- a/products/stratos/modules/integration/src/test/resources/application-bursting-test/network-partitions/mock/network-partition-10.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "id": "network-partition-10",
- "provider": "mock",
- "partitions": [
- {
- "id": "network-partition-10-partition-1",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- },
- {
- "id": "network-partition-10-partition-2",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/application-bursting-test/network-partitions/mock/network-partition-9.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-bursting-test/network-partitions/mock/network-partition-9.json b/products/stratos/modules/integration/src/test/resources/application-bursting-test/network-partitions/mock/network-partition-9.json
deleted file mode 100644
index 9f12343..0000000
--- a/products/stratos/modules/integration/src/test/resources/application-bursting-test/network-partitions/mock/network-partition-9.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "id": "network-partition-9",
- "provider": "mock",
- "partitions": [
- {
- "id": "partition-1",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/application-policy-test/application-policies/application-policy-2.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-policy-test/application-policies/application-policy-2.json b/products/stratos/modules/integration/src/test/resources/application-policy-test/application-policies/application-policy-2.json
deleted file mode 100644
index 1137942..0000000
--- a/products/stratos/modules/integration/src/test/resources/application-policy-test/application-policies/application-policy-2.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "id": "application-policy-2",
- "algorithm": "one-after-another",
- "networkPartitions": [
- "network-partition-7",
- "network-partition-8"
- ],
- "properties": [
- {
- "name": "networkPartitionGroups",
- "value": "network-partition-7,network-partition-8"
- },
- {
- "name": "key-2",
- "value": "value-2"
- }
- ]
-}
http://git-wip-us.apache.org/repos/asf/stratos/blob/6c6f4cc3/products/stratos/modules/integration/src/test/resources/application-policy-test/network-partitions/mock/network-partition-7.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/application-policy-test/network-partitions/mock/network-partition-7.json b/products/stratos/modules/integration/src/test/resources/application-policy-test/network-partitions/mock/network-partition-7.json
deleted file mode 100644
index 6250504..0000000
--- a/products/stratos/modules/integration/src/test/resources/application-policy-test/network-partitions/mock/network-partition-7.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "id": "network-partition-7",
- "provider": "mock",
- "partitions": [
- {
- "id": "partition-1",
- "property": [
- {
- "name": "region",
- "value": "default"
- }
- ]
- }
- ]
-}
[08/11] stratos git commit: Merge the latest changes of integration
test from master branch
Posted by ga...@apache.org.
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/wso2carbon 2.log
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/wso2carbon 2.log b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/wso2carbon 2.log
new file mode 100755
index 0000000..82d9968
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/wso2carbon 2.log
@@ -0,0 +1,992 @@
+TID: [2015-04-22 20:45:03,242] INFO {org.wso2.carbon.server.extensions.PatchInstaller} - Patch changes detected {org.wso2.carbon.server.extensions.PatchInstaller}
+TID: [2015-04-22 20:45:03,566] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Backed up plugins to patch0000 {org.wso2.carbon.server.util.PatchUtils.console}
+TID: [2015-04-22 20:45:04,429] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Patch verification started {org.wso2.carbon.server.util.PatchUtils.console}
+TID: [2015-04-22 20:45:04,705] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Patch verification successfully completed without encountering any issues. {org.wso2.carbon.server.util.PatchUtils.console}
+TID: [0] [STRATOS] [2015-04-22 20:45:09,454] INFO {org.wso2.carbon.cassandra.dataaccess.DataAccessComponentManager} - There is no /repository/conf/etc/cassandra-component.xml. Using the default configuration
+TID: [0] [STRATOS] [2015-04-22 20:45:09,493] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Starting WSO2 Carbon...
+TID: [0] [STRATOS] [2015-04-22 20:45:09,496] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Operating System : Linux 3.13.0-46-generic, amd64
+TID: [0] [STRATOS] [2015-04-22 20:45:09,496] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Home : /opt/jdk1.7.0_67/jre
+TID: [0] [STRATOS] [2015-04-22 20:45:09,496] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Version : 1.7.0_67
+TID: [0] [STRATOS] [2015-04-22 20:45:09,496] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM : Java HotSpot(TM) 64-Bit Server VM 24.65-b04,Oracle Corporation
+TID: [0] [STRATOS] [2015-04-22 20:45:09,496] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Carbon Home : /opt/wso2/apache-stratos
+TID: [0] [STRATOS] [2015-04-22 20:45:09,496] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Temp Dir : /opt/wso2/apache-stratos/tmp
+TID: [0] [STRATOS] [2015-04-22 20:45:09,496] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - User : root, en-US, Etc/UTC
+TID: [0] [STRATOS] [2015-04-22 20:45:09,578] WARN {org.wso2.carbon.core.bootup.validator.SystemValidator} - Could not validate the system for configuration parameter : CPU
+TID: [0] [STRATOS] [2015-04-22 20:45:09,579] WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} - The default keystore (wso2carbon.jks) is currently being used. To maximize security when deploying to a production environment, configure a new keystore with a unique password in the production server profile.
+TID: [0] [STRATOS] [2015-04-22 20:45:09,579] WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} - Swap Memory size (MB): 0 of the system is below the recommended minimum size :2048
+TID: [0] [STRATOS] [2015-04-22 20:45:09,649] INFO {org.wso2.carbon.databridge.agent.thrift.AgentHolder} - Agent created !
+TID: [0] [STRATOS] [2015-04-22 20:45:09,667] INFO {org.wso2.carbon.databridge.agent.thrift.internal.AgentDS} - Successfully deployed Agent Client
+TID: [0] [STRATOS] [2015-04-22 20:45:09,690] INFO {org.wso2.carbon.event.input.adaptor.core.internal.ds.InputEventAdaptorServiceTrackerDS} - Successfully deployed the input event adaptor tracker service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,697] INFO {org.wso2.carbon.event.input.adaptor.jms.internal.ds.JMSEventAdaptorServiceDS} - Successfully deployed the input jms event adaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:09,702] INFO {org.wso2.carbon.event.input.adaptor.manager.core.internal.ds.InputEventAdaptorTypeServiceTrackerDS} - Successfully deployed the input event adaptor type tracker service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,713] INFO {org.wso2.carbon.event.output.adaptor.cassandra.internal.ds.CassandraEventAdaptorServiceDS} - Successfully deployed the output cassandra event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,716] INFO {org.wso2.carbon.event.output.adaptor.core.internal.ds.OutputEventAdaptorServiceTrackerDS} - Successfully deployed the output event adaptor tracker service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,722] INFO {org.wso2.carbon.event.output.adaptor.http.internal.ds.HTTPEventAdaptorServiceDS} - Successfully deployed the output HTTP event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,729] INFO {org.wso2.carbon.event.output.adaptor.jms.internal.ds.JMSEventAdaptorServiceDS} - Successfully deployed the output jms event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,735] INFO {org.wso2.carbon.event.output.adaptor.manager.core.internal.ds.OutputEventAdaptorTypeServiceTrackerDS} - Successfully deployed the event adaptor type tracker service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,748] INFO {org.wso2.carbon.event.output.adaptor.wso2event.internal.ds.WSO2EventAdaptorServiceDS} - Successfully deployed the output WSO2Event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,767] INFO {org.wso2.carbon.event.input.adaptor.manager.core.internal.ds.InputEventAdaptorManagerDS} - Successfully deployed the input event adaptor manager service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,767] INFO {org.wso2.carbon.event.input.adaptor.core.internal.ds.InputEventAdaptorServiceDS} - Successfully deployed the input event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,778] INFO {org.wso2.carbon.event.output.adaptor.manager.core.internal.ds.OutputEventAdaptorManagerDS} - Successfully deployed the output event adaptor manager service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,778] INFO {org.wso2.carbon.event.output.adaptor.core.internal.ds.OutputEventAdaptorServiceDS} - Successfully deployed the output event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:09,791] INFO {org.wso2.carbon.event.statistics.internal.ds.EventStatisticsDS} - Successfully deployed the event statistics monitoring service
+TID: [0] [STRATOS] [2015-04-22 20:45:10,257] INFO {org.wso2.carbon.social.internal.SocialComponent} - Social Activity bundle is activated
+TID: [0] [STRATOS] [2015-04-22 20:45:11,025] INFO {org.wso2.carbon.cassandra.server.internal.CassandraServerDSComponent} - There is no /repository/conf/etc/cassandra.yaml. Using the default configuration
+TID: [0] [STRATOS] [2015-04-22 20:45:11,072] INFO {org.wso2.carbon.event.input.adaptor.wso2event.internal.ds.WSO2EventAdaptorServiceDS} - Successfully deployed the input WSO2Event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:11,074] INFO {org.wso2.carbon.loggeraggregator.internal.LogAggregator} - Successfully started Log Aggregator
+TID: [0] [STRATOS] [2015-04-22 20:45:11,074] INFO {org.wso2.carbon.databridge.core.internal.DataBridgeDS} - Successfully deployed Agent Server
+TID: [0] [STRATOS] [2015-04-22 20:45:11,320] INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Configured Registry in 178ms
+TID: [0] [STRATOS] [2015-04-22 20:45:11,693] INFO {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} - Registry Mode : READ-WRITE
+TID: [0] [STRATOS] [2015-04-22 20:45:11,781] INFO {org.wso2.carbon.event.output.adaptor.mysql.internal.ds.MysqlEventAdaptorServiceDS} - Successfully deployed the output mysql event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:11,783] INFO {org.wso2.carbon.event.processor.siddhi.extension.internal.SiddhiExtensionDS} - Successfully activated Property Window
+TID: [0] [STRATOS] [2015-04-22 20:45:11,885] INFO {org.wso2.carbon.event.builder.core.internal.ds.EventBuilderServiceDS} - Successfully deployed EventBuilderService.
+TID: [0] [STRATOS] [2015-04-22 20:45:11,908] INFO {org.wso2.carbon.event.formatter.core.internal.ds.EventFormatterServiceDS} - Successfully deployed EventFormatterService
+TID: [0] [STRATOS] [2015-04-22 20:45:11,909] INFO {org.wso2.carbon.event.processor.core.internal.ds.EventProcessorServiceDS} - Successfully deployed EventProcessorService
+TID: [0] [STRATOS] [2015-04-22 20:45:11,909] INFO {org.wso2.carbon.event.builder.core.internal.ds.EventBuilderServiceDS} - Successfully deployed EventBuilder EventReceiver.
+TID: [0] [STRATOS] [2015-04-22 20:45:12,037] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,061] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :in_flight_requests_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,080] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,085] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :gradient_in_flight_requests_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,104] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,109] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :average_in_flight_requests_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,128] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,134] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :average_served_request_count_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,152] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,157] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :second_derivative_in_flight_requests_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,176] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,182] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :cartridge_agent_health_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,201] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,206] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :average_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,223] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,228] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :average_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,246] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,252] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :gradient_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,269] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,275] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :gradient_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,290] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,295] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :second_derivative_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,312] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,317] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :second_derivative_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,333] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,338] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :fault_message_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,354] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,359] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_average_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,374] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,379] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_average_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,394] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,399] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_gradient_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,415] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,421] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_gradient_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,439] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,444] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_second_derivative_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,461] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:12,466] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_second_derivative_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:12,466] INFO {org.wso2.carbon.event.builder.core.internal.ds.EventBuilderServiceDS} - Successfully deployed EventBuilder PassthroughReceiverConfigurator.
+TID: [0] [STRATOS] [2015-04-22 20:45:12,468] INFO {org.wso2.carbon.event.stream.manager.core.internal.ds.EventStreamServiceDS} - Successfully deployed EventStreamService
+TID: [0] [STRATOS] [2015-04-22 20:45:12,485] INFO {org.wso2.carbon.identity.application.mgt.internal.ApplicationManagementServiceComponent} - Identity ApplicationManagementComponent bundle is activated
+TID: [0] [STRATOS] [2015-04-22 20:45:13,164] INFO {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} - Carbon UserStoreMgtDSComponent activated successfully.
+TID: [0] [STRATOS] [2015-04-22 20:45:18,487] INFO {org.apache.axis2.deployment.ClusterBuilder} - Clustering has been disabled
+TID: [0] [STRATOS] [2015-04-22 20:45:18,850] INFO {org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer} - User Store Configuration Deployer initiated.
+TID: [0] [STRATOS] [2015-04-22 20:45:18,889] INFO {org.wso2.carbon.stratos.landing.page.deployer.LandingPageWebappDeployer} - Deployed product landing page webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/home]
+TID: [0] [STRATOS] [2015-04-22 20:45:18,921] INFO {org.apache.axis2.transport.tcp.TCPTransportSender} - TCP Sender started
+TID: [0] [STRATOS] [2015-04-22 20:45:18,943] INFO {org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService} - Execution plan deployment held back and in inactive state: AverageHeathRequest. Event receiver not found for stream ID : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:18,943] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan deployment held back and in inactive state : AverageHeathRequest ,waiting for dependency : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:18,947] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageInFlightRequestsEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:18,948] INFO {org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService} - Execution plan deployment held back and in inactive state: AverageInFlightRequestsFinder. Event receiver not found for stream ID : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:18,948] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan deployment held back and in inactive state : AverageInFlightRequestsFinder ,waiting for dependency : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:18,949] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageLoadAverageEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:18,950] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageMemoryConsumptionEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:18,951] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageServedRequestsEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:18,955] INFO {org.wso2.carbon.event.input.adaptor.manager.core.InputEventAdaptorDeployer} - Input Event Adaptor deployed successfully and in active state : DefaultWSO2EventInputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:18,957] INFO {org.wso2.carbon.event.output.adaptor.manager.core.OutputEventAdaptorDeployer} - Output Event Adaptor successfully deployed and in active state : DefaultWSO2EventOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:19,009] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: echo {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 20:45:19,079] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: Echo.aar - file:/opt/wso2/apache-stratos/repository/deployment/server/axis2services/Echo.aar
+TID: [0] [STRATOS] [2015-04-22 20:45:19,080] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : FaultMessageEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:19,080] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : GradientInFlightRequestsEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:19,081] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : GradientLoadAverageEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:19,082] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : GradientMemoryConsumptionEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:19,083] INFO {org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService} - Execution plan deployment held back and in inactive state: GradientOfHealthRequest. Event receiver not found for stream ID : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,084] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan deployment held back and in inactive state : GradientOfHealthRequest ,waiting for dependency : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,084] INFO {org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService} - Execution plan deployment held back and in inactive state: GradientOfRequestsInFlightFinder. Event receiver not found for stream ID : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,085] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan deployment held back and in inactive state : GradientOfRequestsInFlightFinder ,waiting for dependency : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,106] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,109] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,110] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution Plan was undeployed successfully : AverageHeathRequest.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,305] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,305] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,305] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,305] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,305] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,306] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,306] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : AverageHeathRequest
+TID: [0] [STRATOS] [2015-04-22 20:45:19,306] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution Plan was undeployed successfully : GradientOfHealthRequest.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,398] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] cep.extension.thread.pool [size] 10
+TID: [0] [STRATOS] [2015-04-22 20:45:19,406] INFO {org.apache.stratos.cep.extension.CEPTopologyEventReceiver} - CEP topology event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:19,406] INFO {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator} - Topology event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:19,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,410] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : GradientOfHealthRequest
+TID: [0] [STRATOS] [2015-04-22 20:45:19,411] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : HealthStatisticsEventBuilder
+TID: [0] [STRATOS] [2015-04-22 20:45:19,419] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event builder deployment held back and in inactive state :InstanceStatusStatisticsBuilder, Stream validation exception : Input stream definition is not available
+TID: [0] [STRATOS] [2015-04-22 20:45:19,420] INFO {org.wso2.carbon.event.output.adaptor.manager.core.OutputEventAdaptorDeployer} - Output Event Adaptor successfully deployed and in active state : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 20:45:19,421] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,433] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageInFlightRequestsEventFormatter.xml, waiting for dependency : average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,433] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageLoadAverageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,442] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,442] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : AverageLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,442] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageMemoryConsumptionEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,450] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,450] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : AverageMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,450] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageServedRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,458] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageServedRequestsEventFormatter.xml, waiting for dependency : average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,458] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : FaultMessageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,466] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,466] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : FaultMessageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,466] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : GradientInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,474] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : GradientInFlightRequestsEventFormatter.xml, waiting for dependency : gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,474] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : GradientLoadAverageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,481] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,482] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : GradientLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,482] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : GradientMemoryConsumptionEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,490] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,490] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : GradientMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,498] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,500] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,500] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution Plan was undeployed successfully : AverageInFlightRequestsFinder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,512] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,516] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,516] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : AverageRequestsInflightEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,517] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageServedRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,521] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,521] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : AverageServedRequestsEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,521] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,521] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,521] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,521] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : AverageInFlightRequestsFinder
+TID: [0] [STRATOS] [2015-04-22 20:45:19,521] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution Plan was undeployed successfully : GradientOfRequestsInFlightFinder.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,527] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : GradientInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,531] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,531] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : GradientInFlightRequestsEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,531] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,531] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,531] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : GradientOfRequestsInFlightFinder
+TID: [0] [STRATOS] [2015-04-22 20:45:19,531] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : LoadBalancerStatisticsEventBuilder
+TID: [0] [STRATOS] [2015-04-22 20:45:19,539] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,539] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberAverageLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,547] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,547] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberAverageMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,554] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,555] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberGradientLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,562] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,562] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberGradientMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,570] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : MemberSecondDerivativeLoadAverageEventFormatter.xml, waiting for dependency : member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,578] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : MemberSecondDerivativeMemoryConsumptionEventFormatter.xml, waiting for dependency : member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,603] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/STRATOS_ROOT].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/STRATOS_ROOT]
+TID: [0] [STRATOS] [2015-04-22 20:45:19,614] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : SecondDerivativeInFlightRequestsEventFormatter.xml, waiting for dependency : second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,621] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : SecondDerivativeLoadAverageEventFormatter.xml, waiting for dependency : second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,628] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : SecondDerivativeMemoryConsumptionEventFormatter.xml, waiting for dependency : second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,647] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : SecondDerivativeMemoryConsumptionEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,651] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,652] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : SecondDerivativeMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,652] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : SecondDerivativeLoadAverageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,655] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,655] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : SecondDerivativeLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,656] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : MemberSecondDerivativeMemoryConsumptionEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,660] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,660] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberSecondDerivativeMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,660] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : MemberSecondDerivativeLoadAverageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,664] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,664] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberSecondDerivativeLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,664] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,664] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,664] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,664] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,664] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,664] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : SecondDerivativeOfHealthRequest
+TID: [0] [STRATOS] [2015-04-22 20:45:19,669] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : SecondDerivativeInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:19,673] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,673] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : SecondDerivativeEventFormatter
+TID: [0] [STRATOS] [2015-04-22 20:45:19,673] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,673] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:19,674] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : SecondDerivativeOfRequestsInFlightFinder
+TID: [0] [STRATOS] [2015-04-22 20:45:19,750] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: Version {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 20:45:19,773] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: Version.aar - file:/opt/wso2/apache-stratos/repository/deployment/server/axis2services/Version.aar
+TID: [0] [STRATOS] [2015-04-22 20:45:20,582] INFO {org.springframework.web.context.support.XmlWebApplicationContext} - Refreshing Root WebApplicationContext: startup date [Wed Apr 22 20:45:20 UTC 2015]; root of context hierarchy
+TID: [0] [STRATOS] [2015-04-22 20:45:20,627] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
+TID: [0] [STRATOS] [2015-04-22 20:45:20,699] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/api/WEB-INF/cxf-servlet.xml]
+TID: [0] [STRATOS] [2015-04-22 20:45:20,841] INFO {org.springframework.beans.factory.support.DefaultListableBeanFactory} - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@68204c69: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,stratosApi,stratosApiV40,stratosApiV41,stratosApiBeanV40,stratosApiBeanV41,basicAuthenticationFilter,sessionAuthenticationFilter,authorizationFilterV40,authorizationFilterV41,exceptionHandler,badRequestExceptionHandler,genericExceptionHandler,throwableExceptionHandler,componentSynchronizerHandler,OAuthFilter,jsonProvider,schemaHolder,theSchemas]; root of factory hierarchy
+TID: [0] [STRATOS] [2015-04-22 20:45:21,353] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /
+TID: [0] [STRATOS] [2015-04-22 20:45:21,471] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /v4.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,495] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /v4.1
+TID: [0] [STRATOS] [2015-04-22 20:45:21,528] WARN {org.apache.cxf.jaxrs.utils.ResourceUtils} - No resource classpath:META-INF/jax-rs-catalog.xml is available
+TID: [0] [STRATOS] [2015-04-22 20:45:21,552] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/api.war]
+TID: [0] [STRATOS] [2015-04-22 20:45:21,601] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/authenticationendpoint].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/authenticationendpoint.war]
+TID: [0] [STRATOS] [2015-04-22 20:45:21,606] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,607] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,607] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : average_in_flight_requests_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:21,611] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,612] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,612] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : average_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:21,616] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,617] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,617] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : average_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:21,621] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,622] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:21,623] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : average_served_request_count_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:21,627] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : cartridge_agent_health_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:21,636] WARN {org.wso2.securevault.secret.handler.SecretManagerSecretCallbackHandler} - SecretManager has not been initialized.Cannot collect secrets.
+TID: [0] [STRATOS] [2015-04-22 20:45:21,636] WARN {org.apache.stratos.cloud.controller.config.parser.IaasProviderConfigParser} - Unable to find a value for identity element from Secure Vault.Hence we will try to assign the plain text value (if specified).
+TID: [0] [STRATOS] [2015-04-22 20:45:21,637] WARN {org.wso2.securevault.secret.handler.SecretManagerSecretCallbackHandler} - SecretManager has not been initialized.Cannot collect secrets.
+TID: [0] [STRATOS] [2015-04-22 20:45:21,637] WARN {org.apache.stratos.cloud.controller.config.parser.IaasProviderConfigParser} - Unable to find a value for credential element from Secure Vault.Hence we will try to assign the plain text value (if specified).
+TID: [0] [STRATOS] [2015-04-22 20:45:21,637] INFO {org.apache.stratos.cloud.controller.deployers.CloudControllerDeployer} - Successfully deployed the cloud-controller XML file located at /opt/wso2/apache-stratos/repository/deployment/server/../../conf/cloud-controller.xml
+TID: [0] [STRATOS] [2015-04-22 20:45:22,397] INFO {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/console].File[/opt/wso2/apache-stratos/repository/deployment/server/jaggeryapps/console]
+TID: [0] [STRATOS] [2015-04-22 20:45:22,402] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,403] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,403] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : fault_message_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,407] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,408] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,408] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : gradient_in_flight_requests_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,412] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,413] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,414] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : gradient_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,417] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,419] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,419] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : gradient_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,422] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : in_flight_requests_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,426] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,428] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,428] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_average_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,431] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,433] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,433] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_average_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,437] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,438] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,438] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_gradient_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,442] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,444] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,444] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_gradient_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,447] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,449] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,449] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_second_derivative_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:22,453] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,455] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:22,455] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_second_derivative_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:23,187] INFO {org.springframework.web.context.support.XmlWebApplicationContext} - Refreshing Root WebApplicationContext: startup date [Wed Apr 22 20:45:23 UTC 2015]; root of context hierarchy
+TID: [0] [STRATOS] [2015-04-22 20:45:23,229] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
+TID: [0] [STRATOS] [2015-04-22 20:45:23,264] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/metadata/WEB-INF/cxf-servlet.xml]
+TID: [0] [STRATOS] [2015-04-22 20:45:23,364] INFO {org.springframework.beans.factory.support.DefaultListableBeanFactory} - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1b01b46a: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,stratosMetaDataAdmin,stratosRestEndpointBean,exceptionHandler,genericExceptionHandler,throwableExceptionHandler,OAuthFilter,jsonProvider]; root of factory hierarchy
+TID: [0] [STRATOS] [2015-04-22 20:45:23,855] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /api
+TID: [0] [STRATOS] [2015-04-22 20:45:23,906] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/metadata].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/metadata.war]
+TID: [0] [STRATOS] [2015-04-22 20:45:24,621] INFO {org.springframework.web.context.support.XmlWebApplicationContext} - Refreshing Root WebApplicationContext: startup date [Wed Apr 22 20:45:24 UTC 2015]; root of context hierarchy
+TID: [0] [STRATOS] [2015-04-22 20:45:24,664] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
+TID: [0] [STRATOS] [2015-04-22 20:45:24,696] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/mock-iaas/WEB-INF/cxf-servlet.xml]
+TID: [0] [STRATOS] [2015-04-22 20:45:24,784] INFO {org.springframework.beans.factory.support.DefaultListableBeanFactory} - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3b141caf: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,mockIaasApi,mockIaasApiBean,exceptionHandler,badRequestExceptionHandler,genericExceptionHandler,throwableExceptionHandler,jsonProvider]; root of factory hierarchy
+TID: [0] [STRATOS] [2015-04-22 20:45:25,146] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /api
+TID: [0] [STRATOS] [2015-04-22 20:45:25,197] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/mock-iaas].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/mock-iaas.war]
+TID: [0] [STRATOS] [2015-04-22 20:45:25,997] INFO {org.springframework.web.context.support.XmlWebApplicationContext} - Refreshing Root WebApplicationContext: startup date [Wed Apr 22 20:45:25 UTC 2015]; root of context hierarchy
+TID: [0] [STRATOS] [2015-04-22 20:45:26,039] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
+TID: [0] [STRATOS] [2015-04-22 20:45:26,071] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]
+TID: [0] [STRATOS] [2015-04-22 20:45:26,151] INFO {org.springframework.beans.factory.support.DefaultListableBeanFactory} - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6a9f420c: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,tokEP,authzEndpointBean,tokenEndpointBean,revokeEndpointBean,userinfoEndpointBean]; root of factory hierarchy
+TID: [0] [STRATOS] [2015-04-22 20:45:26,496] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /
+TID: [0] [STRATOS] [2015-04-22 20:45:26,558] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/oauth2].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/oauth2.war]
+TID: [0] [STRATOS] [2015-04-22 20:45:26,569] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:26,570] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:26,570] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : second_derivative_in_flight_requests_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:26,573] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:26,575] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:26,575] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : second_derivative_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:26,579] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:26,580] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:26,581] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : second_derivative_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 20:45:26,806] INFO {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/sso].File[/opt/wso2/apache-stratos/repository/deployment/server/jaggeryapps/sso]
+TID: [0] [STRATOS] [2015-04-22 20:45:26,873] INFO {org.apache.axis2.deployment.ModuleDeployer} - Deploying module: addressing-1.6.1-wso2v10 - file:/opt/wso2/apache-stratos/repository/deployment/client/modules/addressing-1.6.1-wso2v10.mar
+TID: [0] [STRATOS] [2015-04-22 20:45:26,877] INFO {org.apache.axis2.deployment.ModuleDeployer} - Deploying module: rampart-1.6.1-wso2v8 - file:/opt/wso2/apache-stratos/repository/deployment/client/modules/rampart-1.6.1-wso2v8.mar
+TID: [0] [STRATOS] [2015-04-22 20:45:26,879] INFO {org.apache.axis2.transport.tcp.TCPTransportSender} - TCP Sender started
+TID: [0] [STRATOS] [2015-04-22 20:45:27,123] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: AutoscalerService {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 20:45:27,369] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.apache.stratos.autoscaler -
+TID: [0] [STRATOS] [2015-04-22 20:45:27,477] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: CloudControllerService {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 20:45:27,653] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.apache.stratos.cloud.controller -
+TID: [0] [STRATOS] [2015-04-22 20:45:27,679] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: StratosManagerService {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 20:45:27,749] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.apache.stratos.manager -
+TID: [0] [STRATOS] [2015-04-22 20:45:28,223] WARN {org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator} - We don't support method overloading. Ignoring [validateAudienceRestriction]
+TID: [0] [STRATOS] [2015-04-22 20:45:28,524] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.wso2.carbon.idp.mgt -
+TID: [0] [STRATOS] [2015-04-22 20:45:28,892] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: wso2carbon-sts {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 20:45:28,940] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.wso2.carbon.sts -
+TID: [0] [STRATOS] [2015-04-22 20:45:29,182] INFO {org.wso2.carbon.core.init.CarbonServerManager} - Repository : /opt/wso2/apache-stratos/repository/deployment/server/
+TID: [0] [STRATOS] [2015-04-22 20:45:29,234] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Component activation check interval: 1 seconds
+TID: [0] [STRATOS] [2015-04-22 20:45:29,235] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Component activation timeout: 600 seconds
+TID: [0] [STRATOS] [2015-04-22 20:45:29,241] INFO {org.apache.stratos.common.internal.CommonServiceComponent} - Stratos common service component is activated
+TID: [0] [STRATOS] [2015-04-22 20:45:29,320] INFO {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} - Permission cache updated for tenant -1234
+TID: [0] [STRATOS] [2015-04-22 20:45:29,566] INFO {org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceiver} - Thrift Server started at 0.0.0.0
+TID: [0] [STRATOS] [2015-04-22 20:45:29,574] INFO {org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceiver} - Thrift SSL port : 7711
+TID: [0] [STRATOS] [2015-04-22 20:45:29,578] INFO {org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceiver} - Thrift port : 7611
+TID: [0] [STRATOS] [2015-04-22 20:45:29,643] INFO {org.wso2.carbon.event.input.adaptor.wsevent.local.internal.ds.WSEventLocalEventAdaptorServiceDS} - Successfully deployed the input WSEventLocal adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:29,649] INFO {org.wso2.carbon.event.output.adaptor.wsevent.local.internal.ds.WSEventLocalEventAdaptorServiceDS} - Successfully deployed the output WSEventLocal adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:29,656] INFO {org.wso2.carbon.event.input.adaptor.email.internal.ds.EmailEventAdaptorServiceDS} - Successfully deployed the input email event service
+TID: [0] [STRATOS] [2015-04-22 20:45:29,662] INFO {org.wso2.carbon.event.input.adaptor.wsevent.internal.ds.WSEventAdaptorServiceDS} - Successfully deployed the input WSEvent adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:29,667] INFO {org.wso2.carbon.event.output.adaptor.email.internal.ds.EmailEventAdaptorServiceDS} - Successfully deployed the output Email event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:29,671] INFO {org.wso2.carbon.event.output.adaptor.sms.internal.ds.SMSEventAdaptorServiceDS} - Successfully deployed the output SMS event adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:29,676] INFO {org.wso2.carbon.event.output.adaptor.wsevent.internal.ds.WSEventAdaptorServiceDS} - Successfully deployed the output WSEvent adaptor service
+TID: [0] [STRATOS] [2015-04-22 20:45:29,680] INFO {org.wso2.carbon.identity.application.mgt.ui.internal.ApplicationMgtUIServiceComponent} - Application Management UI bundle acticated!
+TID: [0] [STRATOS] [2015-04-22 20:45:29,715] INFO {org.wso2.carbon.idp.mgt.internal.IdPManagementServiceComponent} - Identity Application Management Database initialization not attempted since 'setup' variable was not provided during startup
+TID: [0] [STRATOS] [2015-04-22 20:45:29,770] INFO {org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent} - Identity Database schema initialization check was skipped since 'setup' variable was not given during startup
+TID: [0] [STRATOS] [2015-04-22 20:45:29,838] INFO {org.wso2.carbon.core.transports.http.HttpsTransportListener} - HTTPS port : 9443
+TID: [0] [STRATOS] [2015-04-22 20:45:29,838] INFO {org.wso2.carbon.core.transports.http.HttpTransportListener} - HTTP port : 9763
+TID: [0] [STRATOS] [2015-04-22 20:45:29,924] INFO {org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl} - Task service starting in STANDALONE mode...
+TID: [0] [STRATOS] [2015-04-22 20:45:29,956] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] autoscaler.thread.pool [size] 50
+TID: [0] [STRATOS] [2015-04-22 20:45:29,956] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Scheduled Executor Service [id] autoscaler.scheduler.thread.pool [size] 5
+TID: [0] [STRATOS] [2015-04-22 20:45:29,958] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Autoscaler component is waiting for CloudController component to become active...
+TID: [0] [STRATOS] [2015-04-22 20:45:29,961] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] cloud.controller.thread.pool [size] 10
+TID: [0] [STRATOS] [2015-04-22 20:45:29,961] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Scheduled Executor Service [id] cloud.controller.scheduler.thread.pool [size] 5
+TID: [0] [STRATOS] [2015-04-22 20:45:29,964] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] stratos.manager.thread.pool [size] 20
+TID: [0] [STRATOS] [2015-04-22 20:45:29,964] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Scheduled Executor Service [id] stratos.manager.scheduler.thread.pool [size] 5
+TID: [0] [STRATOS] [2015-04-22 20:45:29,964] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] cloud.controller.context.thread.pool [size] 10
+TID: [0] [STRATOS] [2015-04-22 20:45:29,966] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - StratosManager component is waiting for CloudController component to become active...
+TID: [0] [STRATOS] [2015-04-22 20:45:29,970] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] cloud.controller.instance.manager.thread.pool [size] 50
+TID: [0] [STRATOS] [2015-04-22 20:45:29,984] INFO {org.apache.stratos.cloud.controller.messaging.receiver.application.ApplicationEventReceiver} - Cloud controller application event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:29,990] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Application event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:29,990] INFO {org.apache.stratos.messaging.message.receiver.application.ApplicationsEventMessageDelegator} - Application status event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:30,008] INFO {org.apache.stratos.cloud.controller.messaging.receiver.cluster.status.ClusterStatusTopicReceiver} - Cloud controller Cluster status thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:30,011] INFO {org.apache.stratos.messaging.message.receiver.cluster.status.ClusterStatusEventMessageDelegator} - Cluster Status event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:30,011] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Cluster status event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:30,021] INFO {org.wso2.carbon.core.init.JMXServerManager} - JMX Service URL : service:jmx:rmi://localhost:11111/jndi/rmi://localhost:9999/jmxrmi
+TID: [0] [STRATOS] [2015-04-22 20:45:30,021] INFO {org.apache.stratos.cloud.controller.messaging.receiver.instance.status.InstanceStatusTopicReceiver} - Cloud controller application status thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:30,022] INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - Server : Apache Stratos-4.1.0
+TID: [0] [STRATOS] [2015-04-22 20:45:30,022] INFO {org.apache.stratos.cloud.controller.messaging.receiver.instance.status.InstanceStatusTopicReceiver} - Cloud controller application status thread terminated
+TID: [0] [STRATOS] [2015-04-22 20:45:30,026] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Instance status event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:30,026] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Scheduling topology synchronizer task
+TID: [0] [STRATOS] [2015-04-22 20:45:30,021] INFO {org.apache.stratos.messaging.message.receiver.instance.status.InstanceStatusEventMessageDelegator} - Instance notifier event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:30,026] INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - WSO2 Carbon started in 27 sec
+TID: [0] [STRATOS] [2015-04-22 20:45:30,027] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - CloudController component became active
+TID: [0] [STRATOS] [2015-04-22 20:45:30,027] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Cloud controller service component activated
+TID: [0] [STRATOS] [2015-04-22 20:45:30,487] INFO {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} - Mgt Console URL : https://172.16.2.207:9443/carbon/
+TID: [0] [STRATOS] [2015-04-22 20:45:30,966] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - StratosManager component is waiting for Autoscaler component to become active...
+TID: [0] [STRATOS] [2015-04-22 20:45:30,987] INFO {org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver} - Autoscaler topology receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:30,988] INFO {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator} - Topology event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:46,012] INFO {org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventReceiver} - Autoscaler health stat event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:46,015] INFO {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator} - Health stat event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:46,029] INFO {org.apache.stratos.autoscaler.internal.AutoscalerServiceComponent} - Scheduling tasks to publish applications
+TID: [0] [STRATOS] [2015-04-22 20:45:46,029] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Autoscaler component became active
+TID: [0] [STRATOS] [2015-04-22 20:45:46,029] INFO {org.apache.stratos.autoscaler.internal.AutoscalerServiceComponent} - Autoscaler service component activated
+TID: [0] [STRATOS] [2015-04-22 20:45:46,970] INFO {org.apache.stratos.manager.utils.CartridgeConfigFileReader} - Setting config properties into System properties
+TID: [0] [STRATOS] [2015-04-22 20:45:46,989] INFO {org.apache.stratos.manager.internal.StratosManagerServiceComponent} - Tenant event publisher initialized
+TID: [0] [STRATOS] [2015-04-22 20:45:46,993] INFO {org.apache.stratos.manager.messaging.receiver.StratosManagerInstanceStatusEventReceiver} - Stratos manager instance status event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:46,995] INFO {org.apache.stratos.messaging.message.receiver.instance.status.InstanceStatusEventMessageDelegator} - Instance notifier event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:47,057] INFO {org.apache.stratos.manager.messaging.receiver.StratosManagerTopologyEventReceiver} - Stratos manager topology event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:47,058] INFO {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator} - Topology event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:47,060] INFO {org.apache.stratos.manager.messaging.receiver.StratosManagerApplicationEventReceiver} - Stratos manager application event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 20:45:47,060] INFO {org.apache.stratos.messaging.message.receiver.application.ApplicationsEventMessageDelegator} - Application status event message delegator started
+TID: [0] [STRATOS] [2015-04-22 20:45:47,104] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - StratosManager component became active
+TID: [0] [STRATOS] [2015-04-22 20:45:47,106] INFO {org.apache.stratos.manager.internal.StratosManagerServiceComponent} - Stratos manager component is activated
+TID: [0] [STRATOS] [2015-04-22 20:45:47,249] INFO {org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor} - Topology initialized
+TID: [0] [STRATOS] [2015-04-22 20:45:47,249] INFO {org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor} - Topology initialized
+TID: [0] [STRATOS] [2015-04-22 20:45:47,250] INFO {org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor} - Topology initialized
+TID: [0] [STRATOS] [2015-04-22 20:45:47,250] INFO {org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver} - [CompleteTopologyEvent] Received: class org.apache.stratos.messaging.event.topology.CompleteTopologyEvent
+TID: [0] [STRATOS] [2015-04-22 20:45:59,750] INFO {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} - Adding network partition: [network-partition-id] RegionOne-AZ-1
+TID: [0] [STRATOS] [2015-04-22 20:45:59,751] INFO {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} - Validating partition: [network-partition-id] RegionOne-AZ-1 [partition-id] RegionOne-AZ-1
+TID: [0] [STRATOS] [2015-04-22 20:46:01,196] ERROR {org.apache.stratos.cloud.controller.iaases.openstack.OpenstackIaas} - Invalid zone: AZ-1 in the region: RegionOne and of the iaas: Core
+TID: [0] [STRATOS] [2015-04-22 20:46:01,197] ERROR {org.apache.stratos.cloud.controller.iaases.openstack.OpenstackPartitionValidator} - Invalid partition detected: [partition-id] RegionOne-AZ-1Invalid zone: AZ-1 in the region: RegionOne and of the iaas: Core
+org.apache.stratos.cloud.controller.exception.InvalidZoneException: Invalid zone: AZ-1 in the region: RegionOne and of the iaas: Core
+ at org.apache.stratos.cloud.controller.iaases.openstack.OpenstackIaas.isValidZone(OpenstackIaas.java:289)
+ at org.apache.stratos.cloud.controller.iaases.openstack.OpenstackPartitionValidator.validate(OpenstackPartitionValidator.java:69)
+ at org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceUtil.validatePartitionAndGetIaasProvider(CloudControllerServiceUtil.java:97)
+ at org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceUtil.validatePartition(CloudControllerServiceUtil.java:108)
+ at org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl.validatePartition(CloudControllerServiceImpl.java:1015)
+ at org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl.addNetworkPartition(CloudControllerServiceImpl.java:1432)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.lang.reflect.Method.invoke(Method.java:606)
+ at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
+ at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66)
+ at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
+ at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
+ at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
+ at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
+ at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
+ at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
+ at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
+ at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
+ at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
+ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
+ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
+ at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
+ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
+ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
+ at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
+ at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
+ at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
+ at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
+ at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
+ at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
+ at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
+ at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
+ at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
+ at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
+ at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
+ at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
+ at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
+ at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
+ at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
+ at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
+ at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
+ at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
+ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
+ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
+ at java.lang.Thread.run(Thread.java:745)
+TID: [0] [STRATO
<TRUNCATED>
[07/11] stratos git commit: Merge the latest changes of integration
test from master branch
Posted by ga...@apache.org.
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/wso2carbon-working 2.log
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/wso2carbon-working 2.log b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/wso2carbon-working 2.log
new file mode 100755
index 0000000..2dfb31f
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/wso2carbon-working 2.log
@@ -0,0 +1,1053 @@
+TID: [2015-04-22 21:13:10,694] INFO {org.wso2.carbon.server.extensions.PatchInstaller} - Patch changes detected {org.wso2.carbon.server.extensions.PatchInstaller}
+TID: [2015-04-22 21:13:11,008] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Backed up plugins to patch0000 {org.wso2.carbon.server.util.PatchUtils.console}
+TID: [2015-04-22 21:13:11,857] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Patch verification started {org.wso2.carbon.server.util.PatchUtils.console}
+TID: [2015-04-22 21:13:12,133] INFO {org.wso2.carbon.server.util.PatchUtils.console} - Patch verification successfully completed without encountering any issues. {org.wso2.carbon.server.util.PatchUtils.console}
+TID: [0] [STRATOS] [2015-04-22 21:13:16,841] INFO {org.wso2.carbon.cassandra.dataaccess.DataAccessComponentManager} - There is no /repository/conf/etc/cassandra-component.xml. Using the default configuration
+TID: [0] [STRATOS] [2015-04-22 21:13:16,877] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Starting WSO2 Carbon...
+TID: [0] [STRATOS] [2015-04-22 21:13:16,879] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Operating System : Linux 3.13.0-46-generic, amd64
+TID: [0] [STRATOS] [2015-04-22 21:13:16,879] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Home : /opt/jdk1.7.0_67/jre
+TID: [0] [STRATOS] [2015-04-22 21:13:16,879] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Version : 1.7.0_67
+TID: [0] [STRATOS] [2015-04-22 21:13:16,879] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java VM : Java HotSpot(TM) 64-Bit Server VM 24.65-b04,Oracle Corporation
+TID: [0] [STRATOS] [2015-04-22 21:13:16,879] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Carbon Home : /opt/wso2/apache-stratos
+TID: [0] [STRATOS] [2015-04-22 21:13:16,880] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - Java Temp Dir : /opt/wso2/apache-stratos/tmp
+TID: [0] [STRATOS] [2015-04-22 21:13:16,880] INFO {org.wso2.carbon.core.internal.CarbonCoreActivator} - User : root, en-US, Etc/UTC
+TID: [0] [STRATOS] [2015-04-22 21:13:16,955] WARN {org.wso2.carbon.core.bootup.validator.SystemValidator} - Could not validate the system for configuration parameter : CPU
+TID: [0] [STRATOS] [2015-04-22 21:13:16,956] WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} - The default keystore (wso2carbon.jks) is currently being used. To maximize security when deploying to a production environment, configure a new keystore with a unique password in the production server profile.
+TID: [0] [STRATOS] [2015-04-22 21:13:16,956] WARN {org.wso2.carbon.core.bootup.validator.util.ValidationResultPrinter} - Swap Memory size (MB): 0 of the system is below the recommended minimum size :2048
+TID: [0] [STRATOS] [2015-04-22 21:13:17,021] INFO {org.wso2.carbon.databridge.agent.thrift.AgentHolder} - Agent created !
+TID: [0] [STRATOS] [2015-04-22 21:13:17,039] INFO {org.wso2.carbon.databridge.agent.thrift.internal.AgentDS} - Successfully deployed Agent Client
+TID: [0] [STRATOS] [2015-04-22 21:13:17,063] INFO {org.wso2.carbon.event.input.adaptor.core.internal.ds.InputEventAdaptorServiceTrackerDS} - Successfully deployed the input event adaptor tracker service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,069] INFO {org.wso2.carbon.event.input.adaptor.jms.internal.ds.JMSEventAdaptorServiceDS} - Successfully deployed the input jms event adaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:17,074] INFO {org.wso2.carbon.event.input.adaptor.manager.core.internal.ds.InputEventAdaptorTypeServiceTrackerDS} - Successfully deployed the input event adaptor type tracker service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,085] INFO {org.wso2.carbon.event.output.adaptor.cassandra.internal.ds.CassandraEventAdaptorServiceDS} - Successfully deployed the output cassandra event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,089] INFO {org.wso2.carbon.event.output.adaptor.core.internal.ds.OutputEventAdaptorServiceTrackerDS} - Successfully deployed the output event adaptor tracker service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,095] INFO {org.wso2.carbon.event.output.adaptor.http.internal.ds.HTTPEventAdaptorServiceDS} - Successfully deployed the output HTTP event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,101] INFO {org.wso2.carbon.event.output.adaptor.jms.internal.ds.JMSEventAdaptorServiceDS} - Successfully deployed the output jms event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,107] INFO {org.wso2.carbon.event.output.adaptor.manager.core.internal.ds.OutputEventAdaptorTypeServiceTrackerDS} - Successfully deployed the event adaptor type tracker service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,120] INFO {org.wso2.carbon.event.output.adaptor.wso2event.internal.ds.WSO2EventAdaptorServiceDS} - Successfully deployed the output WSO2Event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,139] INFO {org.wso2.carbon.event.input.adaptor.manager.core.internal.ds.InputEventAdaptorManagerDS} - Successfully deployed the input event adaptor manager service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,139] INFO {org.wso2.carbon.event.input.adaptor.core.internal.ds.InputEventAdaptorServiceDS} - Successfully deployed the input event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,150] INFO {org.wso2.carbon.event.output.adaptor.manager.core.internal.ds.OutputEventAdaptorManagerDS} - Successfully deployed the output event adaptor manager service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,150] INFO {org.wso2.carbon.event.output.adaptor.core.internal.ds.OutputEventAdaptorServiceDS} - Successfully deployed the output event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,162] INFO {org.wso2.carbon.event.statistics.internal.ds.EventStatisticsDS} - Successfully deployed the event statistics monitoring service
+TID: [0] [STRATOS] [2015-04-22 21:13:17,620] INFO {org.wso2.carbon.social.internal.SocialComponent} - Social Activity bundle is activated
+TID: [0] [STRATOS] [2015-04-22 21:13:18,407] INFO {org.wso2.carbon.cassandra.server.internal.CassandraServerDSComponent} - There is no /repository/conf/etc/cassandra.yaml. Using the default configuration
+TID: [0] [STRATOS] [2015-04-22 21:13:18,451] INFO {org.wso2.carbon.event.input.adaptor.wso2event.internal.ds.WSO2EventAdaptorServiceDS} - Successfully deployed the input WSO2Event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:18,453] INFO {org.wso2.carbon.loggeraggregator.internal.LogAggregator} - Successfully started Log Aggregator
+TID: [0] [STRATOS] [2015-04-22 21:13:18,453] INFO {org.wso2.carbon.databridge.core.internal.DataBridgeDS} - Successfully deployed Agent Server
+TID: [0] [STRATOS] [2015-04-22 21:13:18,683] INFO {org.wso2.carbon.registry.core.jdbc.EmbeddedRegistryService} - Configured Registry in 167ms
+TID: [0] [STRATOS] [2015-04-22 21:13:19,032] INFO {org.wso2.carbon.registry.core.internal.RegistryCoreServiceComponent} - Registry Mode : READ-WRITE
+TID: [0] [STRATOS] [2015-04-22 21:13:19,109] INFO {org.wso2.carbon.event.output.adaptor.mysql.internal.ds.MysqlEventAdaptorServiceDS} - Successfully deployed the output mysql event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:19,110] INFO {org.wso2.carbon.event.processor.siddhi.extension.internal.SiddhiExtensionDS} - Successfully activated Property Window
+TID: [0] [STRATOS] [2015-04-22 21:13:19,200] INFO {org.wso2.carbon.event.builder.core.internal.ds.EventBuilderServiceDS} - Successfully deployed EventBuilderService.
+TID: [0] [STRATOS] [2015-04-22 21:13:19,220] INFO {org.wso2.carbon.event.formatter.core.internal.ds.EventFormatterServiceDS} - Successfully deployed EventFormatterService
+TID: [0] [STRATOS] [2015-04-22 21:13:19,221] INFO {org.wso2.carbon.event.processor.core.internal.ds.EventProcessorServiceDS} - Successfully deployed EventProcessorService
+TID: [0] [STRATOS] [2015-04-22 21:13:19,221] INFO {org.wso2.carbon.event.builder.core.internal.ds.EventBuilderServiceDS} - Successfully deployed EventBuilder EventReceiver.
+TID: [0] [STRATOS] [2015-04-22 21:13:19,281] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,340] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :in_flight_requests_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,359] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,364] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :gradient_in_flight_requests_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,381] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,385] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :average_in_flight_requests_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,403] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,408] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :average_served_request_count_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,425] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,429] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :second_derivative_in_flight_requests_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,445] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,450] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :cartridge_agent_health_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,466] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,470] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :average_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,487] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,492] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :average_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,509] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,514] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :gradient_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,530] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,535] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :gradient_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,551] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,555] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :second_derivative_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,571] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,576] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :second_derivative_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,592] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,597] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :fault_message_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,614] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,618] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_average_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,635] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,640] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_average_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,656] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,661] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_gradient_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,679] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,684] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_gradient_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,702] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,707] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_second_derivative_memory_consumption_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,725] INFO {org.wso2.carbon.event.stream.manager.core.internal.CarbonEventStreamService} - Stream definition added to registry successfully : member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:19,730] INFO {org.wso2.carbon.event.builder.core.internal.util.helper.EventBuilderConfigurationFileSystemInvoker} - Event builder configuration saved to the filesystem :member_second_derivative_load_average_stats_1.0.0_builder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:19,730] INFO {org.wso2.carbon.event.builder.core.internal.ds.EventBuilderServiceDS} - Successfully deployed EventBuilder PassthroughReceiverConfigurator.
+TID: [0] [STRATOS] [2015-04-22 21:13:19,732] INFO {org.wso2.carbon.event.stream.manager.core.internal.ds.EventStreamServiceDS} - Successfully deployed EventStreamService
+TID: [0] [STRATOS] [2015-04-22 21:13:19,748] INFO {org.wso2.carbon.identity.application.mgt.internal.ApplicationManagementServiceComponent} - Identity ApplicationManagementComponent bundle is activated
+TID: [0] [STRATOS] [2015-04-22 21:13:20,286] INFO {org.wso2.carbon.user.core.internal.UserStoreMgtDSComponent} - Carbon UserStoreMgtDSComponent activated successfully.
+TID: [0] [STRATOS] [2015-04-22 21:13:25,504] INFO {org.apache.axis2.deployment.ClusterBuilder} - Clustering has been disabled
+TID: [0] [STRATOS] [2015-04-22 21:13:25,858] INFO {org.wso2.carbon.identity.user.store.configuration.deployer.UserStoreConfigurationDeployer} - User Store Configuration Deployer initiated.
+TID: [0] [STRATOS] [2015-04-22 21:13:25,898] INFO {org.wso2.carbon.stratos.landing.page.deployer.LandingPageWebappDeployer} - Deployed product landing page webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/home]
+TID: [0] [STRATOS] [2015-04-22 21:13:25,930] INFO {org.apache.axis2.transport.tcp.TCPTransportSender} - TCP Sender started
+TID: [0] [STRATOS] [2015-04-22 21:13:25,951] INFO {org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService} - Execution plan deployment held back and in inactive state: AverageHeathRequest. Event receiver not found for stream ID : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:25,951] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan deployment held back and in inactive state : AverageHeathRequest ,waiting for dependency : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:25,955] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageInFlightRequestsEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:25,956] INFO {org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService} - Execution plan deployment held back and in inactive state: AverageInFlightRequestsFinder. Event receiver not found for stream ID : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:25,956] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan deployment held back and in inactive state : AverageInFlightRequestsFinder ,waiting for dependency : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:25,957] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageLoadAverageEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:25,958] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageMemoryConsumptionEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:25,958] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageServedRequestsEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:25,962] INFO {org.wso2.carbon.event.input.adaptor.manager.core.InputEventAdaptorDeployer} - Input Event Adaptor deployed successfully and in active state : DefaultWSO2EventInputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:25,965] INFO {org.wso2.carbon.event.output.adaptor.manager.core.OutputEventAdaptorDeployer} - Output Event Adaptor successfully deployed and in active state : DefaultWSO2EventOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:26,018] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: echo {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 21:13:26,081] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: Echo.aar - file:/opt/wso2/apache-stratos/repository/deployment/server/axis2services/Echo.aar
+TID: [0] [STRATOS] [2015-04-22 21:13:26,082] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : FaultMessageEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:26,083] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : GradientInFlightRequestsEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:26,084] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : GradientLoadAverageEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:26,085] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : GradientMemoryConsumptionEventFormatter.xml, waiting for dependency : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:26,086] INFO {org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService} - Execution plan deployment held back and in inactive state: GradientOfHealthRequest. Event receiver not found for stream ID : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,086] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan deployment held back and in inactive state : GradientOfHealthRequest ,waiting for dependency : cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,087] INFO {org.wso2.carbon.event.processor.core.internal.CarbonEventProcessorService} - Execution plan deployment held back and in inactive state: GradientOfRequestsInFlightFinder. Event receiver not found for stream ID : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,087] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan deployment held back and in inactive state : GradientOfRequestsInFlightFinder ,waiting for dependency : in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,110] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,113] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,114] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution Plan was undeployed successfully : AverageHeathRequest.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,308] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,308] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,308] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,308] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,309] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,309] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,309] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : AverageHeathRequest
+TID: [0] [STRATOS] [2015-04-22 21:13:26,309] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution Plan was undeployed successfully : GradientOfHealthRequest.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,401] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] cep.extension.thread.pool [size] 10
+TID: [0] [STRATOS] [2015-04-22 21:13:26,406] INFO {org.apache.stratos.cep.extension.CEPTopologyEventReceiver} - CEP topology event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:26,406] INFO {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator} - Topology event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:26,409] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,410] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,410] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : GradientOfHealthRequest
+TID: [0] [STRATOS] [2015-04-22 21:13:26,413] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : HealthStatisticsEventBuilder
+TID: [0] [STRATOS] [2015-04-22 21:13:26,425] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event builder deployment held back and in inactive state :InstanceStatusStatisticsBuilder, Stream validation exception : Input stream definition is not available
+TID: [0] [STRATOS] [2015-04-22 21:13:26,426] INFO {org.wso2.carbon.event.output.adaptor.manager.core.OutputEventAdaptorDeployer} - Output Event Adaptor successfully deployed and in active state : JMSOutputAdaptor
+TID: [0] [STRATOS] [2015-04-22 21:13:26,427] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,440] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageInFlightRequestsEventFormatter.xml, waiting for dependency : average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,440] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageLoadAverageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,452] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,452] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : AverageLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,452] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageMemoryConsumptionEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,460] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,461] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : AverageMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,461] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageServedRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,469] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : AverageServedRequestsEventFormatter.xml, waiting for dependency : average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,469] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : FaultMessageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,476] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,477] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : FaultMessageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,477] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : GradientInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,484] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : GradientInFlightRequestsEventFormatter.xml, waiting for dependency : gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,484] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : GradientLoadAverageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,492] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,492] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : GradientLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,492] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : GradientMemoryConsumptionEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,500] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,500] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : GradientMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,508] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,509] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,509] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution Plan was undeployed successfully : AverageInFlightRequestsFinder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,522] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,526] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,526] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : AverageRequestsInflightEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,527] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : AverageServedRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,530] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,531] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : AverageServedRequestsEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,531] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,531] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,531] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,531] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : AverageInFlightRequestsFinder
+TID: [0] [STRATOS] [2015-04-22 21:13:26,531] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution Plan was undeployed successfully : GradientOfRequestsInFlightFinder.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,537] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : GradientInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,541] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,541] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : GradientInFlightRequestsEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,541] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,541] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,541] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : GradientOfRequestsInFlightFinder
+TID: [0] [STRATOS] [2015-04-22 21:13:26,541] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : LoadBalancerStatisticsEventBuilder
+TID: [0] [STRATOS] [2015-04-22 21:13:26,549] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,549] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberAverageLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,557] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,557] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberAverageMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,565] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,565] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberGradientLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,573] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,573] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberGradientMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,581] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : MemberSecondDerivativeLoadAverageEventFormatter.xml, waiting for dependency : member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,588] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : MemberSecondDerivativeMemoryConsumptionEventFormatter.xml, waiting for dependency : member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,613] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/STRATOS_ROOT].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/STRATOS_ROOT]
+TID: [0] [STRATOS] [2015-04-22 21:13:26,625] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : SecondDerivativeInFlightRequestsEventFormatter.xml, waiting for dependency : second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,632] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : SecondDerivativeLoadAverageEventFormatter.xml, waiting for dependency : second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,641] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter deployment held back and in inactive state : SecondDerivativeMemoryConsumptionEventFormatter.xml, waiting for dependency : second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,659] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : SecondDerivativeMemoryConsumptionEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,663] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,663] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : SecondDerivativeMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,664] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : SecondDerivativeLoadAverageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,668] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,668] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : SecondDerivativeLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,668] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : MemberSecondDerivativeMemoryConsumptionEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,672] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,672] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberSecondDerivativeMemoryConsumptionEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,672] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : MemberSecondDerivativeLoadAverageEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,676] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,676] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : MemberSecondDerivativeLoadAverageEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,676] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:cartridge_agent_health_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,676] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,676] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,676] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,676] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,676] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : SecondDerivativeOfHealthRequest
+TID: [0] [STRATOS] [2015-04-22 21:13:26,681] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter undeployed successfully : SecondDerivativeInFlightRequestsEventFormatter.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:26,685] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,685] INFO {org.wso2.carbon.event.formatter.core.EventFormatterDeployer} - Event Formatter configuration successfully deployed and in active state : SecondDerivativeEventFormatter
+TID: [0] [STRATOS] [2015-04-22 21:13:26,685] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Consumer added to the junction. Stream:in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,685] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:26,685] INFO {org.wso2.carbon.event.processor.core.EventProcessorDeployer} - Execution plan is deployed successfully and in active state : SecondDerivativeOfRequestsInFlightFinder
+TID: [0] [STRATOS] [2015-04-22 21:13:26,758] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: Version {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 21:13:26,781] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: Version.aar - file:/opt/wso2/apache-stratos/repository/deployment/server/axis2services/Version.aar
+TID: [0] [STRATOS] [2015-04-22 21:13:27,542] INFO {org.springframework.web.context.support.XmlWebApplicationContext} - Refreshing Root WebApplicationContext: startup date [Wed Apr 22 21:13:27 UTC 2015]; root of context hierarchy
+TID: [0] [STRATOS] [2015-04-22 21:13:27,626] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
+TID: [0] [STRATOS] [2015-04-22 21:13:27,696] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/api/WEB-INF/cxf-servlet.xml]
+TID: [0] [STRATOS] [2015-04-22 21:13:27,819] INFO {org.springframework.beans.factory.support.DefaultListableBeanFactory} - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5f0c5ef9: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,stratosApi,stratosApiV40,stratosApiV41,stratosApiBeanV40,stratosApiBeanV41,basicAuthenticationFilter,sessionAuthenticationFilter,authorizationFilterV40,authorizationFilterV41,exceptionHandler,badRequestExceptionHandler,genericExceptionHandler,throwableExceptionHandler,componentSynchronizerHandler,OAuthFilter,jsonProvider,schemaHolder,theSchemas]; root of factory hierarchy
+TID: [0] [STRATOS] [2015-04-22 21:13:28,319] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /
+TID: [0] [STRATOS] [2015-04-22 21:13:28,432] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /v4.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,455] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /v4.1
+TID: [0] [STRATOS] [2015-04-22 21:13:28,487] WARN {org.apache.cxf.jaxrs.utils.ResourceUtils} - No resource classpath:META-INF/jax-rs-catalog.xml is available
+TID: [0] [STRATOS] [2015-04-22 21:13:28,511] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/api].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/api.war]
+TID: [0] [STRATOS] [2015-04-22 21:13:28,556] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/authenticationendpoint].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/authenticationendpoint.war]
+TID: [0] [STRATOS] [2015-04-22 21:13:28,561] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,562] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,562] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : average_in_flight_requests_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:28,566] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,567] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,568] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : average_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:28,571] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,573] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,573] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : average_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:28,576] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,578] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:average_served_request_count:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:28,578] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : average_served_request_count_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:28,581] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : cartridge_agent_health_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:28,588] WARN {org.wso2.securevault.secret.handler.SecretManagerSecretCallbackHandler} - SecretManager has not been initialized.Cannot collect secrets.
+TID: [0] [STRATOS] [2015-04-22 21:13:28,588] WARN {org.apache.stratos.cloud.controller.config.parser.IaasProviderConfigParser} - Unable to find a value for identity element from Secure Vault.Hence we will try to assign the plain text value (if specified).
+TID: [0] [STRATOS] [2015-04-22 21:13:28,589] WARN {org.wso2.securevault.secret.handler.SecretManagerSecretCallbackHandler} - SecretManager has not been initialized.Cannot collect secrets.
+TID: [0] [STRATOS] [2015-04-22 21:13:28,589] WARN {org.apache.stratos.cloud.controller.config.parser.IaasProviderConfigParser} - Unable to find a value for credential element from Secure Vault.Hence we will try to assign the plain text value (if specified).
+TID: [0] [STRATOS] [2015-04-22 21:13:28,589] INFO {org.apache.stratos.cloud.controller.deployers.CloudControllerDeployer} - Successfully deployed the cloud-controller XML file located at /opt/wso2/apache-stratos/repository/deployment/server/../../conf/cloud-controller.xml
+TID: [0] [STRATOS] [2015-04-22 21:13:29,344] INFO {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/console].File[/opt/wso2/apache-stratos/repository/deployment/server/jaggeryapps/console]
+TID: [0] [STRATOS] [2015-04-22 21:13:29,350] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,351] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:fault_message:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,351] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : fault_message_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,356] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,357] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,358] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : gradient_in_flight_requests_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,362] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,364] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,364] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : gradient_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,368] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,369] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,369] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : gradient_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,373] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : in_flight_requests_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,377] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,379] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_average_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,379] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_average_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,383] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,385] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_average_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,385] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_average_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,389] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,390] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_gradient_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,390] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_gradient_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,394] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,396] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_gradient_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,396] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_gradient_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,400] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,402] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,402] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_second_derivative_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:29,406] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,408] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:member_second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:29,408] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : member_second_derivative_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:30,125] INFO {org.springframework.web.context.support.XmlWebApplicationContext} - Refreshing Root WebApplicationContext: startup date [Wed Apr 22 21:13:30 UTC 2015]; root of context hierarchy
+TID: [0] [STRATOS] [2015-04-22 21:13:30,168] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
+TID: [0] [STRATOS] [2015-04-22 21:13:30,204] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/metadata/WEB-INF/cxf-servlet.xml]
+TID: [0] [STRATOS] [2015-04-22 21:13:30,299] INFO {org.springframework.beans.factory.support.DefaultListableBeanFactory} - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@47cdc4af: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,stratosMetaDataAdmin,stratosRestEndpointBean,exceptionHandler,genericExceptionHandler,throwableExceptionHandler,OAuthFilter,jsonProvider]; root of factory hierarchy
+TID: [0] [STRATOS] [2015-04-22 21:13:30,774] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /api
+TID: [0] [STRATOS] [2015-04-22 21:13:30,827] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/metadata].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/metadata.war]
+TID: [0] [STRATOS] [2015-04-22 21:13:31,529] INFO {org.springframework.web.context.support.XmlWebApplicationContext} - Refreshing Root WebApplicationContext: startup date [Wed Apr 22 21:13:31 UTC 2015]; root of context hierarchy
+TID: [0] [STRATOS] [2015-04-22 21:13:31,570] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
+TID: [0] [STRATOS] [2015-04-22 21:13:31,601] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/mock-iaas/WEB-INF/cxf-servlet.xml]
+TID: [0] [STRATOS] [2015-04-22 21:13:31,685] INFO {org.springframework.beans.factory.support.DefaultListableBeanFactory} - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3d731d5a: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,mockIaasApi,mockIaasApiBean,exceptionHandler,badRequestExceptionHandler,genericExceptionHandler,throwableExceptionHandler,jsonProvider]; root of factory hierarchy
+TID: [0] [STRATOS] [2015-04-22 21:13:32,038] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /api
+TID: [0] [STRATOS] [2015-04-22 21:13:32,087] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/mock-iaas].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/mock-iaas.war]
+TID: [0] [STRATOS] [2015-04-22 21:13:32,861] INFO {org.springframework.web.context.support.XmlWebApplicationContext} - Refreshing Root WebApplicationContext: startup date [Wed Apr 22 21:13:32 UTC 2015]; root of context hierarchy
+TID: [0] [STRATOS] [2015-04-22 21:13:32,901] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
+TID: [0] [STRATOS] [2015-04-22 21:13:32,932] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/oauth2/WEB-INF/cxf-servlet.xml]
+TID: [0] [STRATOS] [2015-04-22 21:13:33,013] INFO {org.springframework.beans.factory.support.DefaultListableBeanFactory} - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6bbe35d2: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,tokEP,authzEndpointBean,tokenEndpointBean,revokeEndpointBean,userinfoEndpointBean]; root of factory hierarchy
+TID: [0] [STRATOS] [2015-04-22 21:13:33,348] INFO {org.apache.cxf.endpoint.ServerImpl} - Setting the server's publish address to be /
+TID: [0] [STRATOS] [2015-04-22 21:13:33,409] INFO {org.wso2.carbon.webapp.mgt.TomcatGenericWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/oauth2].File[/opt/wso2/apache-stratos/repository/deployment/server/webapps/oauth2.war]
+TID: [0] [STRATOS] [2015-04-22 21:13:33,416] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:33,417] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_in_flight_requests:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:33,417] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : second_derivative_in_flight_requests_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:33,421] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:33,423] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_load_average_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:33,423] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : second_derivative_load_average_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:33,426] INFO {org.wso2.carbon.event.processor.core.internal.listener.EventReceiverStreamNotificationListenerImpl} - Trying to redeploy configuration files for stream: second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:33,428] INFO {org.wso2.carbon.event.processor.core.internal.stream.EventJunction} - Producer added to the junction. Stream:second_derivative_memory_consumption_stats:1.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:33,428] INFO {org.wso2.carbon.event.builder.core.EventBuilderDeployer} - Event Builder deployed successfully and in active state : second_derivative_memory_consumption_stats_1.0.0_builder
+TID: [0] [STRATOS] [2015-04-22 21:13:33,660] INFO {org.jaggeryjs.jaggery.app.mgt.TomcatJaggeryWebappsDeployer} - Deployed webapp: StandardEngine[Catalina].StandardHost[localhost].StandardContext[/sso].File[/opt/wso2/apache-stratos/repository/deployment/server/jaggeryapps/sso]
+TID: [0] [STRATOS] [2015-04-22 21:13:33,726] INFO {org.apache.axis2.deployment.ModuleDeployer} - Deploying module: addressing-1.6.1-wso2v10 - file:/opt/wso2/apache-stratos/repository/deployment/client/modules/addressing-1.6.1-wso2v10.mar
+TID: [0] [STRATOS] [2015-04-22 21:13:33,730] INFO {org.apache.axis2.deployment.ModuleDeployer} - Deploying module: rampart-1.6.1-wso2v8 - file:/opt/wso2/apache-stratos/repository/deployment/client/modules/rampart-1.6.1-wso2v8.mar
+TID: [0] [STRATOS] [2015-04-22 21:13:33,732] INFO {org.apache.axis2.transport.tcp.TCPTransportSender} - TCP Sender started
+TID: [0] [STRATOS] [2015-04-22 21:13:33,972] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: AutoscalerService {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 21:13:34,290] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.apache.stratos.autoscaler -
+TID: [0] [STRATOS] [2015-04-22 21:13:34,401] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: CloudControllerService {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 21:13:34,550] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.apache.stratos.cloud.controller -
+TID: [0] [STRATOS] [2015-04-22 21:13:34,573] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: StratosManagerService {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 21:13:34,693] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.apache.stratos.manager -
+TID: [0] [STRATOS] [2015-04-22 21:13:35,228] WARN {org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator} - We don't support method overloading. Ignoring [validateAudienceRestriction]
+TID: [0] [STRATOS] [2015-04-22 21:13:35,453] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.wso2.carbon.idp.mgt -
+TID: [0] [STRATOS] [2015-04-22 21:13:35,777] INFO {org.wso2.carbon.core.deployment.DeploymentInterceptor} - Deploying Axis2 service: wso2carbon-sts {super-tenant}
+TID: [0] [STRATOS] [2015-04-22 21:13:35,820] INFO {org.apache.axis2.deployment.DeploymentEngine} - Deploying Web service: org.wso2.carbon.sts -
+TID: [0] [STRATOS] [2015-04-22 21:13:36,051] INFO {org.wso2.carbon.core.init.CarbonServerManager} - Repository : /opt/wso2/apache-stratos/repository/deployment/server/
+TID: [0] [STRATOS] [2015-04-22 21:13:36,110] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Component activation check interval: 1 seconds
+TID: [0] [STRATOS] [2015-04-22 21:13:36,110] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Component activation timeout: 600 seconds
+TID: [0] [STRATOS] [2015-04-22 21:13:36,118] INFO {org.apache.stratos.common.internal.CommonServiceComponent} - Stratos common service component is activated
+TID: [0] [STRATOS] [2015-04-22 21:13:36,197] INFO {org.wso2.carbon.core.internal.permission.update.PermissionUpdater} - Permission cache updated for tenant -1234
+TID: [0] [STRATOS] [2015-04-22 21:13:36,470] INFO {org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceiver} - Thrift Server started at 0.0.0.0
+TID: [0] [STRATOS] [2015-04-22 21:13:36,479] INFO {org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceiver} - Thrift SSL port : 7711
+TID: [0] [STRATOS] [2015-04-22 21:13:36,483] INFO {org.wso2.carbon.databridge.receiver.thrift.internal.ThriftDataReceiver} - Thrift port : 7611
+TID: [0] [STRATOS] [2015-04-22 21:13:36,551] INFO {org.wso2.carbon.event.input.adaptor.wsevent.local.internal.ds.WSEventLocalEventAdaptorServiceDS} - Successfully deployed the input WSEventLocal adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:36,558] INFO {org.wso2.carbon.event.output.adaptor.wsevent.local.internal.ds.WSEventLocalEventAdaptorServiceDS} - Successfully deployed the output WSEventLocal adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:36,567] INFO {org.wso2.carbon.event.input.adaptor.email.internal.ds.EmailEventAdaptorServiceDS} - Successfully deployed the input email event service
+TID: [0] [STRATOS] [2015-04-22 21:13:36,573] INFO {org.wso2.carbon.event.input.adaptor.wsevent.internal.ds.WSEventAdaptorServiceDS} - Successfully deployed the input WSEvent adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:36,580] INFO {org.wso2.carbon.event.output.adaptor.email.internal.ds.EmailEventAdaptorServiceDS} - Successfully deployed the output Email event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:36,587] INFO {org.wso2.carbon.event.output.adaptor.sms.internal.ds.SMSEventAdaptorServiceDS} - Successfully deployed the output SMS event adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:36,595] INFO {org.wso2.carbon.event.output.adaptor.wsevent.internal.ds.WSEventAdaptorServiceDS} - Successfully deployed the output WSEvent adaptor service
+TID: [0] [STRATOS] [2015-04-22 21:13:36,600] INFO {org.wso2.carbon.identity.application.mgt.ui.internal.ApplicationMgtUIServiceComponent} - Application Management UI bundle acticated!
+TID: [0] [STRATOS] [2015-04-22 21:13:36,641] INFO {org.wso2.carbon.idp.mgt.internal.IdPManagementServiceComponent} - Identity Application Management Database initialization not attempted since 'setup' variable was not provided during startup
+TID: [0] [STRATOS] [2015-04-22 21:13:36,734] INFO {org.wso2.carbon.identity.core.internal.IdentityCoreServiceComponent} - Identity Database schema initialization check was skipped since 'setup' variable was not given during startup
+TID: [0] [STRATOS] [2015-04-22 21:13:36,868] INFO {org.wso2.carbon.core.transports.http.HttpsTransportListener} - HTTPS port : 9443
+TID: [0] [STRATOS] [2015-04-22 21:13:36,868] INFO {org.wso2.carbon.core.transports.http.HttpTransportListener} - HTTP port : 9763
+TID: [0] [STRATOS] [2015-04-22 21:13:36,968] INFO {org.wso2.carbon.ntask.core.service.impl.TaskServiceImpl} - Task service starting in STANDALONE mode...
+TID: [0] [STRATOS] [2015-04-22 21:13:37,007] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] autoscaler.thread.pool [size] 50
+TID: [0] [STRATOS] [2015-04-22 21:13:37,007] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Scheduled Executor Service [id] autoscaler.scheduler.thread.pool [size] 5
+TID: [0] [STRATOS] [2015-04-22 21:13:37,009] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Autoscaler component is waiting for CloudController component to become active...
+TID: [0] [STRATOS] [2015-04-22 21:13:37,015] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] cloud.controller.thread.pool [size] 10
+TID: [0] [STRATOS] [2015-04-22 21:13:37,016] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Scheduled Executor Service [id] cloud.controller.scheduler.thread.pool [size] 5
+TID: [0] [STRATOS] [2015-04-22 21:13:37,019] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] cloud.controller.context.thread.pool [size] 10
+TID: [0] [STRATOS] [2015-04-22 21:13:37,020] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] stratos.manager.thread.pool [size] 20
+TID: [0] [STRATOS] [2015-04-22 21:13:37,020] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Scheduled Executor Service [id] stratos.manager.scheduler.thread.pool [size] 5
+TID: [0] [STRATOS] [2015-04-22 21:13:37,021] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - StratosManager component is waiting for CloudController component to become active...
+TID: [0] [STRATOS] [2015-04-22 21:13:37,025] INFO {org.apache.stratos.common.threading.StratosThreadPool} - Thread pool created: [type] Executor Service [id] cloud.controller.instance.manager.thread.pool [size] 50
+TID: [0] [STRATOS] [2015-04-22 21:13:37,040] INFO {org.apache.stratos.cloud.controller.messaging.receiver.application.ApplicationEventReceiver} - Cloud controller application event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,043] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Application event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,047] INFO {org.apache.stratos.messaging.message.receiver.application.ApplicationsEventMessageDelegator} - Application status event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,060] INFO {org.wso2.carbon.core.init.JMXServerManager} - JMX Service URL : service:jmx:rmi://localhost:11111/jndi/rmi://localhost:9999/jmxrmi
+TID: [0] [STRATOS] [2015-04-22 21:13:37,061] INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - Server : Apache Stratos-4.1.0
+TID: [0] [STRATOS] [2015-04-22 21:13:37,061] INFO {org.wso2.carbon.core.internal.StartupFinalizerServiceComponent} - WSO2 Carbon started in 26 sec
+TID: [0] [STRATOS] [2015-04-22 21:13:37,063] INFO {org.apache.stratos.cloud.controller.messaging.receiver.cluster.status.ClusterStatusTopicReceiver} - Cloud controller Cluster status thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,063] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Cluster status event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,063] INFO {org.apache.stratos.messaging.message.receiver.cluster.status.ClusterStatusEventMessageDelegator} - Cluster Status event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,087] INFO {org.apache.stratos.cloud.controller.messaging.receiver.instance.status.InstanceStatusTopicReceiver} - Cloud controller application status thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,091] INFO {org.apache.stratos.cloud.controller.messaging.receiver.instance.status.InstanceStatusTopicReceiver} - Cloud controller application status thread terminated
+TID: [0] [STRATOS] [2015-04-22 21:13:37,091] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Instance status event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,091] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Scheduling topology synchronizer task
+TID: [0] [STRATOS] [2015-04-22 21:13:37,091] INFO {org.apache.stratos.messaging.message.receiver.instance.status.InstanceStatusEventMessageDelegator} - Instance notifier event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:37,098] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - CloudController component became active
+TID: [0] [STRATOS] [2015-04-22 21:13:37,098] INFO {org.apache.stratos.cloud.controller.internal.CloudControllerServiceComponent} - Cloud controller service component activated
+TID: [0] [STRATOS] [2015-04-22 21:13:37,577] INFO {org.wso2.carbon.ui.internal.CarbonUIServiceComponent} - Mgt Console URL : https://172.16.2.207:9443/carbon/
+TID: [0] [STRATOS] [2015-04-22 21:13:38,022] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - StratosManager component is waiting for Autoscaler component to become active...
+TID: [0] [STRATOS] [2015-04-22 21:13:38,037] INFO {org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver} - Autoscaler topology receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:38,038] INFO {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator} - Topology event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:53,061] INFO {org.apache.stratos.autoscaler.event.receiver.health.AutoscalerHealthStatEventReceiver} - Autoscaler health stat event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:53,061] INFO {org.apache.stratos.messaging.message.receiver.health.stat.HealthStatEventMessageDelegator} - Health stat event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:53,080] INFO {org.apache.stratos.autoscaler.internal.AutoscalerServiceComponent} - Scheduling tasks to publish applications
+TID: [0] [STRATOS] [2015-04-22 21:13:53,080] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - Autoscaler component became active
+TID: [0] [STRATOS] [2015-04-22 21:13:53,080] INFO {org.apache.stratos.autoscaler.internal.AutoscalerServiceComponent} - Autoscaler service component activated
+TID: [0] [STRATOS] [2015-04-22 21:13:54,025] INFO {org.apache.stratos.manager.utils.CartridgeConfigFileReader} - Setting config properties into System properties
+TID: [0] [STRATOS] [2015-04-22 21:13:54,045] INFO {org.apache.stratos.manager.internal.StratosManagerServiceComponent} - Tenant event publisher initialized
+TID: [0] [STRATOS] [2015-04-22 21:13:54,050] INFO {org.apache.stratos.manager.messaging.receiver.StratosManagerInstanceStatusEventReceiver} - Stratos manager instance status event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:54,051] INFO {org.apache.stratos.messaging.message.receiver.instance.status.InstanceStatusEventMessageDelegator} - Instance notifier event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:54,116] INFO {org.apache.stratos.manager.messaging.receiver.StratosManagerTopologyEventReceiver} - Stratos manager topology event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:54,116] INFO {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator} - Topology event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:54,120] INFO {org.apache.stratos.manager.messaging.receiver.StratosManagerApplicationEventReceiver} - Stratos manager application event receiver thread started
+TID: [0] [STRATOS] [2015-04-22 21:13:54,120] INFO {org.apache.stratos.messaging.message.receiver.application.ApplicationsEventMessageDelegator} - Application status event message delegator started
+TID: [0] [STRATOS] [2015-04-22 21:13:54,161] INFO {org.apache.stratos.common.internal.ComponentStartUpSynchronizerImpl} - StratosManager component became active
+TID: [0] [STRATOS] [2015-04-22 21:13:54,162] INFO {org.apache.stratos.manager.internal.StratosManagerServiceComponent} - Stratos manager component is activated
+TID: [0] [STRATOS] [2015-04-22 21:13:54,292] INFO {org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor} - Topology initialized
+TID: [0] [STRATOS] [2015-04-22 21:13:54,292] INFO {org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor} - Topology initialized
+TID: [0] [STRATOS] [2015-04-22 21:13:54,292] INFO {org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor} - Topology initialized
+TID: [0] [STRATOS] [2015-04-22 21:13:54,293] INFO {org.apache.stratos.autoscaler.event.receiver.topology.AutoscalerTopologyEventReceiver} - [CompleteTopologyEvent] Received: class org.apache.stratos.messaging.event.topology.CompleteTopologyEvent
+TID: [0] [STRATOS] [2015-04-22 21:14:07,092] INFO {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} - Adding network partition: [network-partition-id] RegionOne-AZ-1
+TID: [0] [STRATOS] [2015-04-22 21:14:07,092] INFO {org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl} - Validating partition: [network-partition-id] RegionOne-AZ-1 [partition-id] RegionOne-AZ-1
+TID: [0] [STRATOS] [2015-04-22 21:14:08,551] ERROR {org.apache.stratos.cloud.controller.iaases.openstack.OpenstackIaas} - Invalid zone: AZ-1 in the region: RegionOne and of the iaas: Core
+TID: [0] [STRATOS] [2015-04-22 21:14:08,552] ERROR {org.apache.stratos.cloud.controller.iaases.openstack.OpenstackPartitionValidator} - Invalid partition detected: [partition-id] RegionOne-AZ-1Invalid zone: AZ-1 in the region: RegionOne and of the iaas: Core
+org.apache.stratos.cloud.controller.exception.InvalidZoneException: Invalid zone: AZ-1 in the region: RegionOne and of the iaas: Core
+ at org.apache.stratos.cloud.controller.iaases.openstack.OpenstackIaas.isValidZone(OpenstackIaas.java:289)
+ at org.apache.stratos.cloud.controller.iaases.openstack.OpenstackPartitionValidator.validate(OpenstackPartitionValidator.java:69)
+ at org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceUtil.validatePartitionAndGetIaasProvider(CloudControllerServiceUtil.java:97)
+ at org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceUtil.validatePartition(CloudControllerServiceUtil.java:108)
+ at org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl.validatePartition(CloudControllerServiceImpl.java:1015)
+ at org.apache.stratos.cloud.controller.services.impl.CloudControllerServiceImpl.addNetworkPartition(CloudControllerServiceImpl.java:1432)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
+ at java.lang.reflect.Method.invoke(Method.java:606)
+ at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:212)
+ at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusinessLogic(RPCInOnlyMessageReceiver.java:66)
+ at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:110)
+ at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
+ at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
+ at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146)
+ at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
+ at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
+ at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
+ at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
+ at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
+ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
+ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
+ at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
+ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
+ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
+ at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
+ at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
+ at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
+ at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
+ at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
+ at org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:178)
+ at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
+ at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:56)
+ at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
+ at org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:141)
+ at org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:156)
+ at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
+ at org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:52)
+ at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
+ at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
+ at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
+ at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
+ at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
+ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
+ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
+ at java.lang.Thread.run(T
<TRUNCATED>
[09/11] stratos git commit: Merge the latest changes of integration
test from master branch
Posted by ga...@apache.org.
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/cartridges/mock/tomcat-application-bursting-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/cartridges/mock/tomcat-application-bursting-test.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/cartridges/mock/tomcat-application-bursting-test.json
new file mode 100755
index 0000000..7cf895a
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/cartridges/mock/tomcat-application-bursting-test.json
@@ -0,0 +1,53 @@
+{
+ "type": "tomcat-group-startup-order-test",
+ "provider": "apache",
+ "host": "tomcat.stratos.org",
+ "category": "framework",
+ "displayName": "tomcat-group-startup-order-test",
+ "description": "tomcat-group-startup-order-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "name": "http-22",
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ },
+ {
+ "protocol": "http",
+ "port": "8080",
+ "proxyPort": "80"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ],
+ "metadataKeys": [
+ "url"
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/deployment-policies/deployment-policy-application-bursting-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/deployment-policies/deployment-policy-application-bursting-test.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/deployment-policies/deployment-policy-application-bursting-test.json
new file mode 100644
index 0000000..3813435
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/deployment-policies/deployment-policy-application-bursting-test.json
@@ -0,0 +1,32 @@
+{
+ "id": "deployment-policy-group-startup-order-test",
+ "networkPartitions": [
+ {
+ "id": "network-partition-group-startup-order-test-1",
+ "partitionAlgo": "one-after-another",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "partitionMax": 4
+ }
+ ]
+ },
+ {
+ "id": "network-partition-group-startup-order-test-2",
+ "partitionAlgo": "round-robin",
+ "partitions": [
+ {
+ "id": "network-partition-10-partition-1",
+ "partitionMax": 4
+ },
+ {
+ "id": "network-partition-10-partition-2",
+ "partitionMax": 4
+ }
+ ]
+ }
+ ]
+}
+
+
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/network-partitions/mock/network-partition-application-bursting-test-1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/network-partitions/mock/network-partition-application-bursting-test-1.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/network-partitions/mock/network-partition-application-bursting-test-1.json
new file mode 100644
index 0000000..238f640
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/network-partitions/mock/network-partition-application-bursting-test-1.json
@@ -0,0 +1,15 @@
+{
+ "id": "network-partition-group-startup-order-test-1",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/network-partitions/mock/network-partition-application-bursting-test-2.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/network-partitions/mock/network-partition-application-bursting-test-2.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/network-partitions/mock/network-partition-application-bursting-test-2.json
new file mode 100644
index 0000000..7372b78
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/network-partitions/mock/network-partition-application-bursting-test-2.json
@@ -0,0 +1,24 @@
+{
+ "id": "network-partition-group-startup-order-test-2",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "network-partition-10-partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ },
+ {
+ "id": "network-partition-10-partition-2",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/RegionOne.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/RegionOne.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/RegionOne.json
new file mode 100755
index 0000000..47832db
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/RegionOne.json
@@ -0,0 +1,17 @@
+{
+ "id": "RegionOne",
+ "provider": "mock",
+ "partitions":
+ [
+ {
+ "id": "whole-region",
+ "property":
+ [
+ {
+ "name": "region",
+ "value": "RegionOne"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application-martin.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application-martin.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application-martin.json
new file mode 100644
index 0000000..30cd6d0
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application-martin.json
@@ -0,0 +1,100 @@
+{
+ "alias": "sub-G1-G2-G3-1-G4",
+ "applicationId": "sub-G1-G2-G3-1-G4",
+ "components": {
+ "cartridges": [],
+ "groups": [
+ {
+ "name": "sub-G1-G2-G3-1",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "sub-G1-G2-G3-1",
+ "cartridges": [],
+ "groups": [
+ {
+ "name": "multiple-groups-no-startup-G1-1",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "multiple-groups-no-startup-G1-1-0x0",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c1",
+ "subscribableInfo": {
+ "alias": "c1-1x0",
+ "deploymentPolicy": "static-1",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "economyPolicy"
+ }
+ },
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c2",
+ "subscribableInfo": {
+ "alias": "c2-1x0",
+ "deploymentPolicy": "static-1",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "economyPolicy"
+ }
+ }
+ ],
+ "groups": []
+ },
+ {
+ "name": "multiple-groups-no-startup-G2-1",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "multiple-groups-no-startup-G2-1-0x0",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c3",
+ "subscribableInfo": {
+ "alias": "c3-1x1",
+ "deploymentPolicy": "static-1",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "economyPolicy"
+ }
+ },
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c4",
+ "subscribableInfo": {
+ "alias": "c4-1x1",
+ "deploymentPolicy": "static-1",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "economyPolicy"
+ }
+ }
+ ],
+ "groups": []
+ }
+ ]
+ }
+ ]
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application-policy-1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application-policy-1.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application-policy-1.json
new file mode 100644
index 0000000..8fe4193
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application-policy-1.json
@@ -0,0 +1,17 @@
+{
+ "id": "application-policy-1",
+ "algorithm": "one-after-another",
+ "networkPartitions": [
+ "RegionOne"
+ ],
+ "properties": [
+ {
+ "name": "key-1",
+ "value": "value-1"
+ },
+ {
+ "name": "key-2",
+ "value": "value-2"
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application-s-g-c1-c2-c3-s.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application-s-g-c1-c2-c3-s.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application-s-g-c1-c2-c3-s.json
new file mode 100644
index 0000000..600d291
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application-s-g-c1-c2-c3-s.json
@@ -0,0 +1,130 @@
+{
+ "alias": "s-g-c1-c2-c3-s",
+ "applicationId": "s-g-c1-c2-c3-s",
+ "components": {
+ "cartridges": [],
+ "groups": [
+ {
+ "name": "g-sc-G4",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "g-sc-G4-x0x",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c1",
+ "subscribableInfo": {
+ "alias": "c1-1x0",
+ "deploymentPolicy": "static-1",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "economyPolicy"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "name": "g-G3",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "g-G3-1x0",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c2",
+ "subscribableInfo": {
+ "alias": "c2-1x0",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "deploymentPolicy": "static-1",
+
+ "autoscalingPolicy": "economyPolicy"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "name": "g-G2",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "g-G2-1x0",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c3",
+ "subscribableInfo": {
+ "alias": "c3-1x0",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "deploymentPolicy": "static-1",
+ "autoscalingPolicy": "economyPolicy"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "deploymentPolicy": "static-1",
+ "name": "g-G1",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "g-G1-1x0",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c4",
+ "subscribableInfo": {
+ "alias": "c4-1x0",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "economyPolicy"
+ }
+ },
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c5",
+ "subscribableInfo": {
+ "alias": "c5-1x0",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "economyPolicy"
+ }
+ }
+ ],
+ "groups": [
+ ]
+ }
+ ]
+ }
+ ]
+ }
+
+ ]
+ }
+ ]
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application.json
new file mode 100644
index 0000000..e05129a
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application.json
@@ -0,0 +1,108 @@
+{
+ "alias": "s-n-gr-s-G12-t-a-2-Id",
+ "applicationId": "s-n-gr-s-G12-t-a-2-Id",
+ "components": {
+ "cartridges": [],
+ "groups": [
+ {
+ "name": "s-n-gr-s-G12-t-a-2",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "s-n-gr-s-G12-t-a-2",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c1",
+ "subscribableInfo": {
+ "alias": "c1-0x0",
+ "deploymentPolicy": "static-1",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-1"
+ }
+ },
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c2",
+ "subscribableInfo": {
+ "alias": "c2-0x0",
+ "deploymentPolicy": "static-1",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-1"
+ }
+ },
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c3",
+ "subscribableInfo": {
+ "alias": "c3-0x0",
+ "deploymentPolicy": "static-1",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-1"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "name": "n-st-G2-t-a-2",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "n-st-G2-t-a-2-0x0",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c4",
+ "subscribableInfo": {
+ "alias": "c4-1x0",
+ "deploymentPolicy": "static-1",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-1"
+ }
+ },
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c5",
+ "subscribableInfo": {
+ "alias": "c5-1x0",
+ "deploymentPolicy": "static-1",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-1"
+ }
+ }
+ ],
+ "groups": []
+ }
+ ]
+ }
+ ]
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application.json.orig
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application.json.orig b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application.json.orig
new file mode 100644
index 0000000..b28c017
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/application.json.orig
@@ -0,0 +1,89 @@
+{
+ "alias": "sub-G1-G2-G3-1-G4",
+ "applicationId": "sub-G1-G2-G3-1-G4",
+ "components": {
+ "cartridges": [],
+ "groups": [
+ {
+ "name": "G1",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "group1",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c1",
+ "subscribableInfo": {
+ "alias": "c1-1x0",
+ "deploymentPolicy": "static-1",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "economyPolicy"
+ }
+ }
+
+ ],
+ "groups": [
+ {
+ "name": "G2",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "group2",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c2",
+ "subscribableInfo": {
+ "alias": "c2-1x0",
+ "deploymentPolicy": "static-1",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "economyPolicy"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "name": "G3",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "group3",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c3",
+ "subscribableInfo": {
+ "alias": "c3-1x1",
+ "deploymentPolicy": "static-1",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "economyPolicy"
+ }
+ }
+ ],
+ "groups": []
+ }
+ ]
+ }
+
+ ]
+ }
+ ]
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c1.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c1.json
new file mode 100755
index 0000000..19ac4c0
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c1.json
@@ -0,0 +1,45 @@
+{
+ "type": "c1",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c1",
+ "description": "c1 Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c2.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c2.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c2.json
new file mode 100755
index 0000000..8caa83a
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c2.json
@@ -0,0 +1,45 @@
+{
+ "type": "c2",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c2",
+ "description": "c2 Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c3.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c3.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c3.json
new file mode 100755
index 0000000..dedb0f6
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c3.json
@@ -0,0 +1,45 @@
+{
+ "type": "c3",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c3",
+ "description": "c3 Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c4.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c4.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c4.json
new file mode 100755
index 0000000..efc660a
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c4.json
@@ -0,0 +1,45 @@
+{
+ "type": "c4",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c4",
+ "description": "c4 Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c5.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c5.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c5.json
new file mode 100755
index 0000000..59e225f
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/c5.json
@@ -0,0 +1,132 @@
+{
+ "category": "Application",
+ "deployment": {
+ "baseDir": "/var/www",
+ "dir": [
+ "www=copy#app#files#here",
+ "simplesamlphp=copy#saml#libraries#here",
+ "sql=copy#saml#libraries#here"
+ ]
+ },
+ "description": "c4 Cartridge",
+ "displayName": "c4",
+ "host": "qmog.cisco.com",
+ "iaasProvider": [
+ {
+ "imageId": "RegionOne/16e7e35b-0c88-4605-90ce-cbef9e9dde0f",
+ "maxInstanceLimit": "4",
+ "networkInterfaces": [
+ {
+ "floatingNetworks": [
+ {
+ "name": "public",
+ "networkUuid": "26b4aa2b-06bc-4e4f-a6eb-c19fbc211af6"
+ }
+ ],
+ "name": "core",
+ "networkUuid": "5e107fbd-4820-47ad-84ea-6f135496f889"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/2cdbd576-8c9b-4c2d-8b1a-0f79dc4fb809"
+ },
+ {
+ "name": "keyPair",
+ "value": "phoenix"
+ },
+ {
+ "name": "autoAssignIp",
+ "value": "false"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ],
+ "type": "mock"
+ }
+ ],
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "port": "22",
+ "protocol": "http",
+ "proxyPort": "8280"
+ }
+ ],
+ "property": [
+ {
+ "name": "payload_parameter.MB_IP",
+ "value": "octl.qmog.cisco.com"
+ },
+ {
+ "name": "payload_parameter.MB_PORT",
+ "value": "61616"
+ },
+ {
+ "name": "payload_parameter.CEP_IP",
+ "value": "octl.qmog.cisco.com"
+ },
+ {
+ "name": "payload_parameter.CEP_PORT",
+ "value": "7611"
+ },
+ {
+ "name": "payload_parameter.CEP_ADMIN_USERNAME",
+ "value": "admin"
+ },
+ {
+ "name": "payload_parameter.CEP_ADMIN_PASSWORD",
+ "value": "admin"
+ },
+ {
+ "name": "payload_parameter.CERT_TRUSTSTORE",
+ "value": "/opt/apache-stratos-cartridge-agent/security/client-truststore.jks"
+ },
+ {
+ "name": "payload_parameter.TRUSTSTORE_PASSWORD",
+ "value": "wso2carbon"
+ },
+ {
+ "name": "payload_parameter.ENABLE_DATA_PUBLISHER",
+ "value": "false"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_IP",
+ "value": "octl.qmog.cisco.com"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_PORT",
+ "value": "7611"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_SECURE_PORT",
+ "value": "7711"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_ADMIN_USERNAME",
+ "value": "admin"
+ },
+ {
+ "name": "payload_parameter.MONITORING_SERVER_ADMIN_PASSWORD",
+ "value": "admin"
+ },
+ {
+ "name": "payload_parameter.QTCM_DNS_SEGMENT",
+ "value": ""
+ },
+ {
+ "name": "payload_parameter.QTCM_NETWORK_COUNT",
+ "value": "1"
+ },
+ {
+ "name": "payload_parameter.SIMPLE_PROPERTY",
+ "value": "value"
+ }
+ ],
+ "provider": "cisco",
+ "type": "c5",
+ "version": "1.0"
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/cartridge-groups-s-g-c1-c2-c3-s.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/cartridge-groups-s-g-c1-c2-c3-s.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/cartridge-groups-s-g-c1-c2-c3-s.json
new file mode 100755
index 0000000..00d4dc5
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/cartridge-groups-s-g-c1-c2-c3-s.json
@@ -0,0 +1,26 @@
+{
+ "name": "s-g-c1-c2-c3-s",
+ "dependencies": {
+ "terminationBehaviour": "terminate-none",
+ "startupOrders": [
+ {
+ "aliases": [
+ "cartridge.c3-0x0",
+ "cartridge.c2-0x0"
+ ]
+ },
+ {
+ "aliases": [
+ "cartridge.c2-0x0",
+ "cartridge.c1-0x0"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c1",
+ "c2",
+ "c3"
+ ],
+ "groups": []
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/cartridge-groups-working.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/cartridge-groups-working.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/cartridge-groups-working.json
new file mode 100755
index 0000000..749b191
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/cartridge-groups-working.json
@@ -0,0 +1,34 @@
+{
+ "name": "subscription-G1-G2-G3",
+ "dependencies": {
+ "terminationBehaviour": "terminate-none",
+ "startupOrders": []
+ },
+ "cartridges": [],
+ "groups": [
+ {
+ "name": "multiple-groups-no-startup-G1",
+ "dependencies": {
+ "terminationBehaviour": "terminate-none",
+ "startupOrders": []
+ },
+ "cartridges": [
+ "c1",
+ "c2"
+ ],
+ "groups": []
+ },
+ {
+ "name": "multiple-groups-no-startup-G2",
+ "dependencies": {
+ "terminationBehaviour": "terminate-none",
+ "startupOrders": []
+ },
+ "cartridges": [
+ "c1",
+ "c2"
+ ],
+ "groups": []
+ }
+ ]
+}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/cartridge-groups.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/cartridge-groups.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/cartridge-groups.json
new file mode 100644
index 0000000..8c4cf1e
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/cartridge-groups.json
@@ -0,0 +1,77 @@
+{
+ "name": "g-sc-G4",
+ "dependencies": {
+ "terminationBehaviour": "terminate-none",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.g-G3-1x0",
+ "cartridge.c1-1x0"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c1"
+ ],
+ "groups": [
+ {
+ "name": "g-G3",
+ "dependencies": {
+ "terminationBehaviour": "terminate-dependents",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.g-G2-1x0",
+ "cartridge.c2-1x0"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c2"
+ ],
+ "groups": [
+ {
+ "name": "g-G2",
+ "dependencies": {
+ "terminationBehaviour": "terminate-dependents",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.g-G1-1x0",
+ "cartridge.c3-1x0"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c3"
+ ],
+ "groups": [
+ {
+ "name": "g-G1",
+ "dependencies": {
+ "terminationBehaviour": "terminate-all",
+ "startupOrders": [
+ {
+ "aliases": [
+ "cartridge.c4-1x0",
+ "cartridge.c5-1x0"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c4",
+ "c5"
+ ],
+ "groups": [
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/cartridge-groups.json.back
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/cartridge-groups.json.back b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/cartridge-groups.json.back
new file mode 100644
index 0000000..3fff281
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/cartridge-groups.json.back
@@ -0,0 +1,53 @@
+{
+ "name": "s-n-gr-s-G12-t-a-2",
+ "dependencies": {
+ "terminationBehaviour": "terminate-dependents",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.n-st-G2-t-a-2-0x0",
+ "cartridge.c3-0x0"
+ ]
+ },
+ {
+ "aliases": [
+ "cartridge.c3-0x0",
+ "cartridge.c2-0x0"
+ ]
+ },
+ {
+ "aliases": [
+ "cartridge.c2-0x0",
+ "cartridge.c1-0x0"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c1",
+ "c2",
+ "c3"
+ ],
+ "groups": [
+ {
+ "name": "n-st-G2-t-a-2",
+ "dependencies": {
+ "terminationBehaviour": "terminate-all",
+ "startupOrders": [
+ {
+ "aliases": [
+ "cartridge.c5-1x0",
+ "cartridge.c4-1x0"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c4",
+ "c5"
+ ],
+ "groups": []
+ }
+ ]
+}
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/deploy.sh
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/deploy.sh b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/deploy.sh
new file mode 100755
index 0000000..ea81357
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/deploy.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+echo ${autoscaling_policies_path}/autoscaling-policy-1.json
+echo "Adding autoscale policy..."
+curl -X POST -H "Content-Type: application/json" -d "@economy-policy.json" -k -v -u admin:admin https://127.0.0.1:9443/api/autoscalingPolicies
+
+echo "Adding network partitions..."
+curl -X POST -H "Content-Type: application/json" -d "@RegionOne.json" -k -v -u admin:admin https://127.0.0.1:9443/api/networkPartitions
+
+echo "Adding deployment policies..."
+curl -X POST -H "Content-Type: application/json" -d "@static-1.json" -k -v -u admin:admin https://127.0.0.1:9443/api/deploymentPolicies
+
+echo "Adding tomcat cartridge..."
+curl -X POST -H "Content-Type: application/json" -d "@c1.json" -k -v -u admin:admin https://127.0.0.1:9443/api/cartridges
+
+echo "Adding tomcat1 cartridge..."
+curl -X POST -H "Content-Type: application/json" -d "@c2.json" -k -v -u admin:admin https://127.0.0.1:9443/api/cartridges
+
+echo "Adding tomcat2 cartridge..."
+curl -X POST -H "Content-Type: application/json" -d "@c3.json" -k -v -u admin:admin https://127.0.0.1:9443/api/cartridges
+
+echo "Adding tomcat2 cartridge..."
+curl -X POST -H "Content-Type: application/json" -d "@c4.json" -k -v -u admin:admin https://127.0.0.1:9443/api/cartridges
+curl -X POST -H "Content-Type: application/json" -d "@c5.json" -k -v -u admin:admin https://127.0.0.1:9443/api/cartridges
+
+
+echo "Adding group6c group..."
+curl -X POST -H "Content-Type: application/json" -d "@cartridge-groups.json" -k -v -u admin:admin https://127.0.0.1:9443/api/cartridgeGroups
+
+sleep 1
+
+echo "Adding application policy..."
+curl -X POST -H "Content-Type: application/json" -d "@application-policy-1.json" -k -v -u admin:admin https://127.0.0.1:9443/api/applicationPolicies
+
+sleep 1
+
+echo "Creating application..."
+curl -X POST -H "Content-Type: application/json" -d "@application-s-g-c1-c2-c3-s.json" -k -v -u admin:admin https://127.0.0.1:9443/api/applications
+
+sleep 1
+
+echo "Deploying application..."
+curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin https://127.0.0.1:9443/api/applications/s-g-c1-c2-c3-s/deploy/application-policy-1
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/economy-policy.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/economy-policy.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/economy-policy.json
new file mode 100755
index 0000000..b838769
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/economy-policy.json
@@ -0,0 +1,15 @@
+{
+ "id": "economyPolicy",
+ "loadThresholds": {
+ "requestsInFlight": {
+ "threshold": 50
+ },
+ "memoryConsumption": {
+ "threshold": 40
+ },
+ "loadAverage": {
+ "threshold": 40
+ }
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/static-1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/static-1.json b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/static-1.json
new file mode 100755
index 0000000..7ba62c0
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-startup-order-test/startup-order-termination-behavior/static-1.json
@@ -0,0 +1,17 @@
+{
+ "id": "static-1",
+ "networkPartitions":
+ [
+ {
+ "id": "RegionOne",
+ "partitionAlgo": "one-after-another",
+ "partitions":
+ [
+ {
+ "id": "whole-region",
+ "partitionMax": "2",
+ }
+ ]
+ }
+ ]
+}
[04/11] stratos git commit: Merge the latest changes of integration
test from master branch
Posted by ga...@apache.org.
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/application-policies/application-policy-application-bursting-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/application-policies/application-policy-application-bursting-test.json b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/application-policies/application-policy-application-bursting-test.json
new file mode 100644
index 0000000..15e757b
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/application-policies/application-policy-application-bursting-test.json
@@ -0,0 +1,17 @@
+{
+ "id": "application-policy-group-termination-behavior-test",
+ "algorithm": "one-after-another",
+ "networkPartitions": [
+ "network-partition-group-termination-behavior-test-1"
+ ],
+ "properties": [
+ {
+ "name": "networkPartitionGroups",
+ "value": "network-partition-group-termination-behavior-test-1"
+ },
+ {
+ "name": "key-2",
+ "value": "value-2"
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/applications/group-termination-behavior-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/applications/group-termination-behavior-test.json b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/applications/group-termination-behavior-test.json
new file mode 100644
index 0000000..0ce09a8
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/applications/group-termination-behavior-test.json
@@ -0,0 +1,101 @@
+{
+ "alias": "group-termination-behavior-test",
+ "applicationId": "group-termination-behavior-test",
+ "components": {
+ "cartridges": [],
+ "groups": [
+ {
+ "name": "g-sc-G4-group-termination-behavior-test",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "my-g-sc-G4-group-termination-behavior-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c1-group-termination-behavior-test",
+ "subscribableInfo": {
+ "alias": "c1-1x0-group-termination-behavior-test",
+ "deploymentPolicy": "deployment-policy-group-termination-behavior-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-group-termination-behavior-test"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "name": "g-G3-group-termination-behavior-test",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "g-G3-1x0-group-termination-behavior-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c2-group-termination-behavior-test",
+ "subscribableInfo": {
+ "alias": "c2-1x0-group-termination-behavior-test",
+ "deploymentPolicy": "deployment-policy-group-termination-behavior-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-group-termination-behavior-test"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "name": "g-G1-group-termination-behavior-test",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "g-G1-1x0-group-termination-behavior-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c4",
+ "subscribableInfo": {
+ "alias": "c4-1x0",
+ "deploymentPolicy": "deployment-policy-group-termination-behavior-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-group-termination-behavior-test"
+ }
+ },
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 1,
+ "type": "c3-group-termination-behavior-test",
+ "subscribableInfo": {
+ "alias": "c3-1x0-group-termination-behavior-test",
+ "deploymentPolicy": "deployment-policy-group-termination-behavior-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://octl.qmog.cisco.com:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-group-termination-behavior-test"
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/autoscaling-policies/autoscaling-policy-application-bursting-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/autoscaling-policies/autoscaling-policy-application-bursting-test.json b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/autoscaling-policies/autoscaling-policy-application-bursting-test.json
new file mode 100644
index 0000000..fd81d17
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/autoscaling-policies/autoscaling-policy-application-bursting-test.json
@@ -0,0 +1,14 @@
+{
+ "id": "autoscaling-policy-group-termination-behavior-test",
+ "loadThresholds": {
+ "requestsInFlight": {
+ "threshold": 35
+ },
+ "memoryConsumption": {
+ "threshold": 45
+ },
+ "loadAverage": {
+ "threshold": 25
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges-groups/cartridge-groups-group-termination-behavior-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges-groups/cartridge-groups-group-termination-behavior-test.json b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges-groups/cartridge-groups-group-termination-behavior-test.json
new file mode 100644
index 0000000..52ce80f
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges-groups/cartridge-groups-group-termination-behavior-test.json
@@ -0,0 +1,58 @@
+{
+ "name": "g-sc-G4-group-termination-behavior-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-none",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.g-G3-1x0-group-termination-behavior-test",
+ "cartridge.c1-1x0-group-termination-behavior-test"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c1-group-termination-behavior-test"
+ ],
+ "groups": [
+ {
+ "name": "g-G3-group-termination-behavior-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-dependents",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.g-G1-1x0-group-termination-behavior-test",
+ "cartridge.c2-1x0-group-termination-behavior-test"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c2-group-termination-behavior-test"
+ ],
+ "groups": [
+ {
+ "name": "g-G1-group-termination-behavior-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-all",
+ "startupOrders": [
+ {
+ "aliases": [
+ "cartridge.c3-1x0-group-termination-behavior-test",
+ "cartridge.c4-1x0-group-termination-behavior-test"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c4",
+ "c5"
+ ],
+ "groups": [
+ ]
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges/mock/c1-group-termination-behavior-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges/mock/c1-group-termination-behavior-test.json b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges/mock/c1-group-termination-behavior-test.json
new file mode 100755
index 0000000..343fcd5
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges/mock/c1-group-termination-behavior-test.json
@@ -0,0 +1,45 @@
+{
+ "type": "c1-group-termination-behavior-test",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c1-group-termination-behavior-test",
+ "description": "c1-group-termination-behavior-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges/mock/c2-group-termination-behavior-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges/mock/c2-group-termination-behavior-test.json b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges/mock/c2-group-termination-behavior-test.json
new file mode 100755
index 0000000..3d16511
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges/mock/c2-group-termination-behavior-test.json
@@ -0,0 +1,45 @@
+{
+ "type": "c2-group-termination-behavior-test",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c2-group-termination-behavior-test",
+ "description": "c2-group-termination-behavior-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges/mock/c3-group-termination-behavior-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges/mock/c3-group-termination-behavior-test.json b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges/mock/c3-group-termination-behavior-test.json
new file mode 100755
index 0000000..10aeb5d
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges/mock/c3-group-termination-behavior-test.json
@@ -0,0 +1,45 @@
+{
+ "type": "c3-group-termination-behavior-test",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c3-group-termination-behavior-test",
+ "description": "c3-group-termination-behavior-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges/mock/c4-group-termination-behavior-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges/mock/c4-group-termination-behavior-test.json b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges/mock/c4-group-termination-behavior-test.json
new file mode 100755
index 0000000..45414de
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/cartridges/mock/c4-group-termination-behavior-test.json
@@ -0,0 +1,45 @@
+{
+ "type": "c4-group-termination-behavior-test",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c4-group-termination-behavior-test",
+ "description": "c4-group-termination-behavior-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/deployment-policies/deployment-policy-termination-behavior-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/deployment-policies/deployment-policy-termination-behavior-test.json b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/deployment-policies/deployment-policy-termination-behavior-test.json
new file mode 100644
index 0000000..9209573
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/deployment-policies/deployment-policy-termination-behavior-test.json
@@ -0,0 +1,22 @@
+{
+ "id": "deployment-policy-group-termination-behavior-test",
+ "networkPartitions": [
+ {
+ "id": "network-partition-group-termination-behavior-test-1",
+ "partitionAlgo": "one-after-another",
+ "partitions": [
+ {
+ "id": "network-partition-10-partition-1",
+ "partitionMax": 4
+ },
+ {
+ "id": "network-partition-10-partition-2",
+ "partitionMax": 4
+ }
+ ]
+ }
+ ]
+}
+
+
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/network-partitions/mock/network-partition-application-bursting-test-1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/network-partitions/mock/network-partition-application-bursting-test-1.json b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/network-partitions/mock/network-partition-application-bursting-test-1.json
new file mode 100644
index 0000000..13abc47
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/group-termination-behavior-test/network-partitions/mock/network-partition-application-bursting-test-1.json
@@ -0,0 +1,15 @@
+{
+ "id": "network-partition-group-termination-behavior-test-1",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-network-partition-test-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-network-partition-test-v1.json b/products/stratos/modules/integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-network-partition-test-v1.json
new file mode 100644
index 0000000..ad4796f
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-network-partition-test-v1.json
@@ -0,0 +1,28 @@
+{
+ "id": "network-partition-network-partition-test",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ },
+ {
+ "id": "partition-2",
+ "property": [
+ {
+ "name": "region",
+ "value": "default1"
+ },
+ {
+ "name": "zone",
+ "value": "z1"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-network-partition-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-network-partition-test.json b/products/stratos/modules/integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-network-partition-test.json
new file mode 100644
index 0000000..1ecc5ba
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/network-partition-test/network-partitions/mock/network-partition-network-partition-test.json
@@ -0,0 +1,15 @@
+{
+ "id": "network-partition-network-partition-test",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/application-policies/application-policy-partition-round-robin-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/application-policies/application-policy-partition-round-robin-test.json b/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/application-policies/application-policy-partition-round-robin-test.json
new file mode 100644
index 0000000..ffd9702
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/application-policies/application-policy-partition-round-robin-test.json
@@ -0,0 +1,13 @@
+{
+ "id": "application-policy-partition-round-robin-test",
+ "algorithm": "one-after-another",
+ "networkPartitions": [
+ "network-partition-partition-round-robin-test"
+ ],
+ "properties": [
+ {
+ "name": "key-2",
+ "value": "value-2"
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/applications/partition-round-robin-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/applications/partition-round-robin-test.json b/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/applications/partition-round-robin-test.json
new file mode 100644
index 0000000..1726eb4
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/applications/partition-round-robin-test.json
@@ -0,0 +1,28 @@
+{
+ "applicationId": "partition-round-robin-test",
+ "alias": "partition-round-robin-test",
+ "components": {
+ "cartridges": [
+ {
+ "type": "c7-partition-round-robin-test",
+ "cartridgeMin": 6,
+ "cartridgeMax": 8,
+ "subscribableInfo": {
+ "alias": "my-c7",
+ "autoscalingPolicy": "autoscaling-policy-partition-round-robin-test",
+ "deploymentPolicy": "deployment-policy-partition-round-robin-test",
+ "artifactRepository": {
+ "privateRepo": false,
+ "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+ "repoUsername": "",
+ "repoPassword": ""
+ }
+ }
+ }
+ ],
+ "dependencies": {
+ "terminationBehaviour": "terminate-none"
+ }
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/autoscaling-policies/autoscaling-policy-partition-round-robin-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/autoscaling-policies/autoscaling-policy-partition-round-robin-test.json b/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/autoscaling-policies/autoscaling-policy-partition-round-robin-test.json
new file mode 100644
index 0000000..bca9b14
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/autoscaling-policies/autoscaling-policy-partition-round-robin-test.json
@@ -0,0 +1,14 @@
+{
+ "id": "autoscaling-policy-partition-round-robin-test",
+ "loadThresholds": {
+ "requestsInFlight": {
+ "threshold": 20
+ },
+ "memoryConsumption": {
+ "threshold": 30
+ },
+ "loadAverage": {
+ "threshold": 25
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/cartridges/mock/c7-partition-round-robin-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/cartridges/mock/c7-partition-round-robin-test.json b/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/cartridges/mock/c7-partition-round-robin-test.json
new file mode 100755
index 0000000..9a513ce
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/cartridges/mock/c7-partition-round-robin-test.json
@@ -0,0 +1,45 @@
+{
+ "type": "c7-partition-round-robin-test",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c7-partition-round-robin-test",
+ "description": "c7-partition-round-robin-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "name": "http-22",
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/deployment-policies/deployment-policy-partition-round-robin-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/deployment-policies/deployment-policy-partition-round-robin-test.json b/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/deployment-policies/deployment-policy-partition-round-robin-test.json
new file mode 100644
index 0000000..721ffb9
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/deployment-policies/deployment-policy-partition-round-robin-test.json
@@ -0,0 +1,22 @@
+{
+ "id": "deployment-policy-partition-round-robin-test",
+ "networkPartitions": [
+ {
+ "id": "network-partition-partition-round-robin-test",
+ "partitionAlgo": "round-robin",
+ "partitions": [
+ {
+ "id": "network-partition-11-partition-1",
+ "partitionMax": 5
+ },
+ {
+ "id": "network-partition-11-partition-2",
+ "partitionMax": 5
+ }
+ ]
+ }
+ ]
+}
+
+
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/network-partitions/mock/network-partition-partition-round-robin-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/network-partitions/mock/network-partition-partition-round-robin-test.json b/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/network-partitions/mock/network-partition-partition-round-robin-test.json
new file mode 100644
index 0000000..0386304
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/partition-round-robin-cluster-test/network-partitions/mock/network-partition-partition-round-robin-test.json
@@ -0,0 +1,24 @@
+{
+ "id": "network-partition-partition-round-robin-test",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "network-partition-11-partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ },
+ {
+ "id": "network-partition-11-partition-2",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/sample-applications-test/application-policies/application-policy-sample-applications-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/application-policies/application-policy-sample-applications-test.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/application-policies/application-policy-sample-applications-test.json
new file mode 100644
index 0000000..a4e83e6
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/sample-applications-test/application-policies/application-policy-sample-applications-test.json
@@ -0,0 +1,18 @@
+{
+ "id": "application-policy-sample-applications-test",
+ "algorithm": "one-after-another",
+ "networkPartitions": [
+ "network-partition-sample-applications-test-1",
+ "network-partition-sample-applications-test-2"
+ ],
+ "properties": [
+ {
+ "name": "networkPartitionGroups",
+ "value": "network-partition-sample-applications-test-1,network-partition-sample-applications-test-2"
+ },
+ {
+ "name": "key-2",
+ "value": "value-2"
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-sample-applications-test-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-sample-applications-test-v1.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-sample-applications-test-v1.json
new file mode 100644
index 0000000..70cd69b
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-sample-applications-test-v1.json
@@ -0,0 +1,86 @@
+{
+ "alias": "g-sc-G123-1-sample-applications-test",
+ "applicationId": "g-sc-G123-1-sample-applications-test",
+ "components": {
+ "cartridges": [],
+ "groups": [
+ {
+ "name": "G1-sample-applications-test",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "group1-sample-applications-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 2,
+ "cartridgeMax": 3,
+ "type": "c1-sample-applications-test",
+ "subscribableInfo": {
+ "alias": "c1-1x0-sample-applications-test",
+ "deploymentPolicy": "deployment-policy-sample-applications-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://stratos.apache.org:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-sample-applications-test"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "name": "G2-sample-applications-test",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "group2-sample-applications-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 2,
+ "cartridgeMax": 4,
+ "type": "c2-sample-applications-test",
+ "subscribableInfo": {
+ "alias": "c2-1x0-sample-applications-test",
+ "deploymentPolicy": "deployment-policy-sample-applications-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://stratos.apache.org:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-sample-applications-test"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "name": "G3-sample-applications-test",
+ "groupMaxInstances": 3,
+ "groupMinInstances": 2,
+ "deploymentPolicy": "deployment-policy-sample-applications-test",
+ "alias": "group3-sample-applications-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 2,
+ "cartridgeMax": 3,
+ "type": "c3-sample-applications-test",
+ "subscribableInfo": {
+ "alias": "c3-1x0-sample-applications-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://stratos.apache.org:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-sample-applications-test"
+ }
+ }
+ ],
+ "groups": []
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-sample-applications-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-sample-applications-test.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-sample-applications-test.json
new file mode 100644
index 0000000..ca40d63
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/sample-applications-test/applications/g-sc-G123-1-sample-applications-test.json
@@ -0,0 +1,86 @@
+{
+ "alias": "g-sc-G123-1-sample-applications-test",
+ "applicationId": "g-sc-G123-1-sample-applications-test",
+ "components": {
+ "cartridges": [],
+ "groups": [
+ {
+ "name": "G1-sample-applications-test",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "group1-sample-applications-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 2,
+ "type": "c1-sample-applications-test",
+ "subscribableInfo": {
+ "alias": "c1-1x0-sample-applications-test",
+ "deploymentPolicy": "deployment-policy-sample-applications-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://stratos.apache.org:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-sample-applications-test"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "name": "G2-sample-applications-test",
+ "groupMaxInstances": 1,
+ "groupMinInstances": 1,
+ "alias": "group2-sample-applications-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 2,
+ "type": "c2-sample-applications-test",
+ "subscribableInfo": {
+ "alias": "c2-1x0-sample-applications-test",
+ "deploymentPolicy": "deployment-policy-sample-applications-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://stratos.apache.org:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-sample-applications-test"
+ }
+ }
+ ],
+ "groups": [
+ {
+ "name": "G3-sample-applications-test",
+ "groupMaxInstances": 2,
+ "groupMinInstances": 1,
+ "deploymentPolicy": "deployment-policy-sample-applications-test",
+ "alias": "group3-sample-applications-test",
+ "cartridges": [
+ {
+ "cartridgeMin": 1,
+ "cartridgeMax": 2,
+ "type": "c3-sample-applications-test",
+ "subscribableInfo": {
+ "alias": "c3-1x0-sample-applications-test",
+ "artifactRepository": {
+ "repoUsername": "user",
+ "repoUrl": "http://stratos.apache.org:10080/git/default.git",
+ "privateRepo": true,
+ "repoPassword": "c-policy"
+ },
+ "autoscalingPolicy": "autoscaling-policy-sample-applications-test"
+ }
+ }
+ ],
+ "groups": []
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/sample-applications-test/autoscaling-policies/autoscaling-policy-sample-applications-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/autoscaling-policies/autoscaling-policy-sample-applications-test.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/autoscaling-policies/autoscaling-policy-sample-applications-test.json
new file mode 100644
index 0000000..5bd90ab
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/sample-applications-test/autoscaling-policies/autoscaling-policy-sample-applications-test.json
@@ -0,0 +1,14 @@
+{
+ "id": "autoscaling-policy-sample-applications-test",
+ "loadThresholds": {
+ "requestsInFlight": {
+ "threshold": 35
+ },
+ "memoryConsumption": {
+ "threshold": 45
+ },
+ "loadAverage": {
+ "threshold": 25
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges-groups/cartrdige-nested-sample-applications-test-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges-groups/cartrdige-nested-sample-applications-test-v1.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges-groups/cartrdige-nested-sample-applications-test-v1.json
new file mode 100644
index 0000000..9d1fc7b
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges-groups/cartrdige-nested-sample-applications-test-v1.json
@@ -0,0 +1,50 @@
+{
+ "name": "G1-sample-applications-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-none",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.group2-sample-applications-test",
+ "cartridge.c1-1x0-sample-applications-test"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c1-sample-applications-test"
+ ],
+ "groups": [
+ {
+ "name": "G2-sample-applications-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-dependents",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.group3-sample-applications-test",
+ "cartridge.c2-1x0-sample-applications-test"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c2-sample-applications-test"
+ ],
+ "groups": [
+ {
+ "name": "G3-sample-applications-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-all",
+ "startupOrders": []
+ },
+ "cartridges": [
+ "c3-sample-applications-test"
+ ],
+ "groups": []
+ }
+ ]
+ }
+ ]
+}
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges-groups/cartrdige-nested-sample-applications-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges-groups/cartrdige-nested-sample-applications-test.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges-groups/cartrdige-nested-sample-applications-test.json
new file mode 100644
index 0000000..9d1fc7b
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges-groups/cartrdige-nested-sample-applications-test.json
@@ -0,0 +1,50 @@
+{
+ "name": "G1-sample-applications-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-none",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.group2-sample-applications-test",
+ "cartridge.c1-1x0-sample-applications-test"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c1-sample-applications-test"
+ ],
+ "groups": [
+ {
+ "name": "G2-sample-applications-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-dependents",
+ "startupOrders": [
+ {
+ "aliases": [
+ "group.group3-sample-applications-test",
+ "cartridge.c2-1x0-sample-applications-test"
+ ]
+ }
+ ]
+ },
+ "cartridges": [
+ "c2-sample-applications-test"
+ ],
+ "groups": [
+ {
+ "name": "G3-sample-applications-test",
+ "dependencies": {
+ "terminationBehaviour": "terminate-all",
+ "startupOrders": []
+ },
+ "cartridges": [
+ "c3-sample-applications-test"
+ ],
+ "groups": []
+ }
+ ]
+ }
+ ]
+}
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c1-sample-applications-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c1-sample-applications-test.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c1-sample-applications-test.json
new file mode 100755
index 0000000..26f8588
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c1-sample-applications-test.json
@@ -0,0 +1,45 @@
+{
+ "type": "c1-sample-applications-test",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c1-sample-applications-test",
+ "description": "c1-sample-applications-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "name": "http-22",
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c2-sample-applications-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c2-sample-applications-test.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c2-sample-applications-test.json
new file mode 100755
index 0000000..0f3c61f
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c2-sample-applications-test.json
@@ -0,0 +1,45 @@
+{
+ "type": "c2-sample-applications-test",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c2-sample-applications-test",
+ "description": "c2-sample-applications-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "name": "http-22",
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c3-sample-applications-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c3-sample-applications-test.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c3-sample-applications-test.json
new file mode 100755
index 0000000..c959d53
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/sample-applications-test/cartridges/mock/c3-sample-applications-test.json
@@ -0,0 +1,45 @@
+{
+ "type": "c3-sample-applications-test",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c3-sample-applications-test",
+ "description": "c3-sample-applications-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "name": "http-22",
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-sample-applications-test-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-sample-applications-test-v1.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-sample-applications-test-v1.json
new file mode 100644
index 0000000..0e35536
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-sample-applications-test-v1.json
@@ -0,0 +1,36 @@
+{
+ "id": "deployment-policy-sample-applications-test",
+ "networkPartitions": [
+ {
+ "id": "network-partition-sample-applications-test-1",
+ "partitionAlgo": "one-after-another",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "partitionMax": 25
+ },
+ {
+ "id": "partition-2",
+ "partitionMax": 20
+ }
+ ]
+ },
+ {
+ "id": "network-partition-sample-applications-test-2",
+ "partitionAlgo": "round-robin",
+ "partitions": [
+ {
+ "id": "network-partition-2-partition-1",
+ "partitionMax": 15
+ },
+ {
+ "id": "network-partition-2-partition-2",
+ "partitionMax": 5
+ }
+ ]
+ }
+ ]
+}
+
+
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-sample-applications-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-sample-applications-test.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-sample-applications-test.json
new file mode 100644
index 0000000..2e26c25
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/sample-applications-test/deployment-policies/deployment-policy-sample-applications-test.json
@@ -0,0 +1,32 @@
+{
+ "id": "deployment-policy-sample-applications-test",
+ "networkPartitions": [
+ {
+ "id": "network-partition-sample-applications-test-1",
+ "partitionAlgo": "one-after-another",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "partitionMax": 20
+ }
+ ]
+ },
+ {
+ "id": "network-partition-sample-applications-test-2",
+ "partitionAlgo": "round-robin",
+ "partitions": [
+ {
+ "id": "network-partition-2-partition-1",
+ "partitionMax": 10
+ },
+ {
+ "id": "network-partition-2-partition-2",
+ "partitionMax": 9
+ }
+ ]
+ }
+ ]
+}
+
+
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-sample-applications-test-1-v1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-sample-applications-test-1-v1.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-sample-applications-test-1-v1.json
new file mode 100644
index 0000000..2df920e
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-sample-applications-test-1-v1.json
@@ -0,0 +1,28 @@
+{
+ "id": "network-partition-sample-applications-test-1",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ },
+ {
+ "id": "partition-2",
+ "property": [
+ {
+ "name": "region",
+ "value": "default1"
+ },
+ {
+ "name": "zone",
+ "value": "z1"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-sample-applications-test-1.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-sample-applications-test-1.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-sample-applications-test-1.json
new file mode 100644
index 0000000..8d7aed5
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-sample-applications-test-1.json
@@ -0,0 +1,15 @@
+{
+ "id": "network-partition-sample-applications-test-1",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-sample-applications-test-2.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-sample-applications-test-2.json b/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-sample-applications-test-2.json
new file mode 100644
index 0000000..2fd5411
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/sample-applications-test/network-partitions/mock/network-partition-sample-applications-test-2.json
@@ -0,0 +1,24 @@
+{
+ "id": "network-partition-sample-applications-test-2",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "network-partition-2-partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ },
+ {
+ "id": "network-partition-2-partition-2",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/application-policies/application-policy-single-cluster-scaling-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/application-policies/application-policy-single-cluster-scaling-test.json b/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/application-policies/application-policy-single-cluster-scaling-test.json
new file mode 100644
index 0000000..866f568
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/application-policies/application-policy-single-cluster-scaling-test.json
@@ -0,0 +1,13 @@
+{
+ "id": "application-policy-single-cluster-scaling-test",
+ "algorithm": "one-after-another",
+ "networkPartitions": [
+ "network-partition-single-cluster-scaling-test"
+ ],
+ "properties": [
+ {
+ "name": "key-2",
+ "value": "value-2"
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/applications/single-cluster-scaling-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/applications/single-cluster-scaling-test.json b/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/applications/single-cluster-scaling-test.json
new file mode 100644
index 0000000..f091e26
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/applications/single-cluster-scaling-test.json
@@ -0,0 +1,28 @@
+{
+ "applicationId": "single-cluster-scaling-test",
+ "alias": "single-cluster-scaling-test",
+ "components": {
+ "cartridges": [
+ {
+ "type": "c7-single-cluster-scaling-test",
+ "cartridgeMin": 2,
+ "cartridgeMax": 5,
+ "subscribableInfo": {
+ "alias": "my-c7",
+ "autoscalingPolicy": "autoscaling-policy-single-cluster-scaling-test",
+ "deploymentPolicy": "deployment-policy-single-cluster-scaling-test",
+ "artifactRepository": {
+ "privateRepo": false,
+ "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git",
+ "repoUsername": "",
+ "repoPassword": ""
+ }
+ }
+ }
+ ],
+ "dependencies": {
+ "terminationBehaviour": "terminate-none"
+ }
+ }
+}
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/autoscaling-policies/autoscaling-policy-single-cluster-scaling-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/autoscaling-policies/autoscaling-policy-single-cluster-scaling-test.json b/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/autoscaling-policies/autoscaling-policy-single-cluster-scaling-test.json
new file mode 100644
index 0000000..31602d1
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/autoscaling-policies/autoscaling-policy-single-cluster-scaling-test.json
@@ -0,0 +1,14 @@
+{
+ "id": "autoscaling-policy-single-cluster-scaling-test",
+ "loadThresholds": {
+ "requestsInFlight": {
+ "threshold": 20
+ },
+ "memoryConsumption": {
+ "threshold": 30
+ },
+ "loadAverage": {
+ "threshold": 25
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/cartridges/mock/c7-single-cluster-scaling-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/cartridges/mock/c7-single-cluster-scaling-test.json b/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/cartridges/mock/c7-single-cluster-scaling-test.json
new file mode 100755
index 0000000..c8abf51
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/cartridges/mock/c7-single-cluster-scaling-test.json
@@ -0,0 +1,45 @@
+{
+ "type": "c7-single-cluster-scaling-test",
+ "provider": "apache",
+ "host": "stratos.apache.org",
+ "category": "data",
+ "displayName": "c7-single-cluster-scaling-test",
+ "description": "c7-single-cluster-scaling-test Cartridge",
+ "version": "7",
+ "multiTenant": "false",
+ "portMapping": [
+ {
+ "name": "http-22",
+ "protocol": "http",
+ "port": "22",
+ "proxyPort": "8280"
+ }
+ ],
+ "deployment": {
+ },
+ "iaasProvider": [
+ {
+ "type": "mock",
+ "imageId": "RegionOne/b4ca55e3-58ab-4937-82ce-817ebd10240e",
+ "networkInterfaces": [
+ {
+ "networkUuid": "b55f009a-1cc6-4b17-924f-4ae0ee18db5e"
+ }
+ ],
+ "property": [
+ {
+ "name": "instanceType",
+ "value": "RegionOne/aa5f45a2-c6d6-419d-917a-9dd2e3888594"
+ },
+ {
+ "name": "keyPair",
+ "value": "vishanth-key"
+ },
+ {
+ "name": "securityGroups",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/deployment-policies/deployment-policy-single-cluster-scaling-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/deployment-policies/deployment-policy-single-cluster-scaling-test.json b/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/deployment-policies/deployment-policy-single-cluster-scaling-test.json
new file mode 100644
index 0000000..4818751
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/deployment-policies/deployment-policy-single-cluster-scaling-test.json
@@ -0,0 +1,22 @@
+{
+ "id": "deployment-policy-single-cluster-scaling-test",
+ "networkPartitions": [
+ {
+ "id": "network-partition-single-cluster-scaling-test",
+ "partitionAlgo": "round-robin",
+ "partitions": [
+ {
+ "id": "network-partition-11-partition-1",
+ "partitionMax": 3
+ },
+ {
+ "id": "network-partition-11-partition-2",
+ "partitionMax": 3
+ }
+ ]
+ }
+ ]
+}
+
+
+
http://git-wip-us.apache.org/repos/asf/stratos/blob/7fae8a72/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/network-partitions/mock/network-partition-single-cluster-scaling-test.json
----------------------------------------------------------------------
diff --git a/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/network-partitions/mock/network-partition-single-cluster-scaling-test.json b/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/network-partitions/mock/network-partition-single-cluster-scaling-test.json
new file mode 100644
index 0000000..13f1723
--- /dev/null
+++ b/products/stratos/modules/integration/src/test/resources/single-cluster-scaling-test/network-partitions/mock/network-partition-single-cluster-scaling-test.json
@@ -0,0 +1,24 @@
+{
+ "id": "network-partition-single-cluster-scaling-test",
+ "provider": "mock",
+ "partitions": [
+ {
+ "id": "network-partition-11-partition-1",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ },
+ {
+ "id": "network-partition-11-partition-2",
+ "property": [
+ {
+ "name": "region",
+ "value": "default"
+ }
+ ]
+ }
+ ]
+}