You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2015/03/06 12:51:56 UTC

stratos git commit: Renaming application-policy.json to application-policy-1.json

Repository: stratos
Updated Branches:
  refs/heads/master 1abb9a770 -> ae202e48e


Renaming application-policy.json to application-policy-1.json


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

Branch: refs/heads/master
Commit: ae202e48e43561f4b6bfef2350947e1da8b84bae
Parents: 1abb9a7
Author: Imesh Gunaratne <im...@apache.org>
Authored: Fri Mar 6 17:21:49 2015 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Fri Mar 6 17:21:49 2015 +0530

----------------------------------------------------------------------
 .../application-policies/application-policy-1.json   | 15 +++++++++++++++
 samples/application-policies/application-policy.json | 15 ---------------
 .../complex-app-with-lb/scripts/common/deploy.sh     |  2 +-
 .../complex-app/scripts/common/deploy.sh             |  2 +-
 .../sample-cartridges/scripts/common/deploy.sh       |  2 +-
 .../sample-groups/scripts/common/deploy.sh           |  2 +-
 .../scripts/common/deploy.sh                         |  2 +-
 .../group-cartridges/scripts/common/deploy.sh        |  2 +-
 .../group-scaling-v1/scripts/common/deploy.sh        |  2 +-
 .../group-scaling/scripts/common/deploy.sh           |  2 +-
 .../more-complex-app/scripts/common/deploy.sh        |  2 +-
 .../nested-group/scripts/common/deploy.sh            |  2 +-
 .../single-cartridge/scripts/common/deploy.sh        |  2 +-
 .../single-group-cartridge/scripts/common/deploy.sh  |  2 +-
 .../scripts/common/deploy.sh                         |  2 +-
 .../single-group-v1/scripts/common/deploy.sh         |  2 +-
 .../single-group-v2/scripts/common/deploy.sh         |  2 +-
 .../single-group-v3/scripts/common/deploy.sh         |  2 +-
 samples/applications/tomcat/scripts/common/deploy.sh |  2 +-
 .../wordpress-extended-v1/scripts/common/deploy.sh   |  2 +-
 .../wordpress-extended-v2/scripts/common/deploy.sh   |  2 +-
 .../applications/wordpress/scripts/common/deploy.sh  |  2 +-
 22 files changed, 35 insertions(+), 35 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/application-policies/application-policy-1.json
----------------------------------------------------------------------
diff --git a/samples/application-policies/application-policy-1.json b/samples/application-policies/application-policy-1.json
new file mode 100644
index 0000000..f7e7c92
--- /dev/null
+++ b/samples/application-policies/application-policy-1.json
@@ -0,0 +1,15 @@
+{
+    "id": "application-policy-1",
+    "algorithm":"one-after-another",
+    "networkPartitions":[
+        "network-partition-1"
+    ],
+    "properties":[
+        { 
+            "key1" : "value1" 
+        },
+        {
+            "key2" : "value2"
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/application-policies/application-policy.json
----------------------------------------------------------------------
diff --git a/samples/application-policies/application-policy.json b/samples/application-policies/application-policy.json
deleted file mode 100644
index f7e7c92..0000000
--- a/samples/application-policies/application-policy.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
-    "id": "application-policy-1",
-    "algorithm":"one-after-another",
-    "networkPartitions":[
-        "network-partition-1"
-    ],
-    "properties":[
-        { 
-            "key1" : "value1" 
-        },
-        {
-            "key2" : "value2"
-        }
-    ]
-}

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/complex-app-with-lb/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/complex-app-with-lb/scripts/common/deploy.sh b/samples/applications/complex-app-with-lb/scripts/common/deploy.sh
index 4e33ea9..22f064c 100755
--- a/samples/applications/complex-app-with-lb/scripts/common/deploy.sh
+++ b/samples/applications/complex-app-with-lb/scripts/common/deploy.sh
@@ -54,7 +54,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/complex-app/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/complex-app/scripts/common/deploy.sh b/samples/applications/complex-app/scripts/common/deploy.sh
index 60b6614..1be231c 100755
--- a/samples/applications/complex-app/scripts/common/deploy.sh
+++ b/samples/applications/complex-app/scripts/common/deploy.sh
@@ -51,7 +51,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/dependent-scaling/sample-cartridges/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/dependent-scaling/sample-cartridges/scripts/common/deploy.sh b/samples/applications/dependent-scaling/sample-cartridges/scripts/common/deploy.sh
index c2d2afb..3bc1ea3 100755
--- a/samples/applications/dependent-scaling/sample-cartridges/scripts/common/deploy.sh
+++ b/samples/applications/dependent-scaling/sample-cartridges/scripts/common/deploy.sh
@@ -41,7 +41,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_path}/php.jso
 
 sleep 1
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 
 echo "Creating application..."

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/dependent-scaling/sample-groups/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/dependent-scaling/sample-groups/scripts/common/deploy.sh b/samples/applications/dependent-scaling/sample-groups/scripts/common/deploy.sh
index 653085f..ddd1f33 100755
--- a/samples/applications/dependent-scaling/sample-groups/scripts/common/deploy.sh
+++ b/samples/applications/dependent-scaling/sample-groups/scripts/common/deploy.sh
@@ -53,4 +53,4 @@ curl -X POST -H "Content-Type: application/json" -d "@${artifacts_path}/applicat
 sleep 1
 
 echo "Deploying application..."
-curl -X POST -H "Content-Type: application/json" -d "@${artifacts_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/dependency-scaling-groups-app/deploy
+curl -X POST -H "Content-Type: application/json" -d "@${artifacts_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications/dependency-scaling-groups-app/deploy

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/esb-php-nested-with-esb-php-nested-with-mysql-php-app/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/esb-php-nested-with-esb-php-nested-with-mysql-php-app/scripts/common/deploy.sh b/samples/applications/esb-php-nested-with-esb-php-nested-with-mysql-php-app/scripts/common/deploy.sh
index fa874b2..c92dbf6 100755
--- a/samples/applications/esb-php-nested-with-esb-php-nested-with-mysql-php-app/scripts/common/deploy.sh
+++ b/samples/applications/esb-php-nested-with-esb-php-nested-with-mysql-php-app/scripts/common/deploy.sh
@@ -46,7 +46,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_path}/esb.jso
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/group-cartridges/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/group-cartridges/scripts/common/deploy.sh b/samples/applications/group-cartridges/scripts/common/deploy.sh
index a271ed8..1197e28 100755
--- a/samples/applications/group-cartridges/scripts/common/deploy.sh
+++ b/samples/applications/group-cartridges/scripts/common/deploy.sh
@@ -50,7 +50,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/group-scaling-v1/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/group-scaling-v1/scripts/common/deploy.sh b/samples/applications/group-scaling-v1/scripts/common/deploy.sh
index 92ccea3..d2f7f45 100644
--- a/samples/applications/group-scaling-v1/scripts/common/deploy.sh
+++ b/samples/applications/group-scaling-v1/scripts/common/deploy.sh
@@ -47,7 +47,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/group-scaling/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/group-scaling/scripts/common/deploy.sh b/samples/applications/group-scaling/scripts/common/deploy.sh
index 0915e04..4a7b96b 100644
--- a/samples/applications/group-scaling/scripts/common/deploy.sh
+++ b/samples/applications/group-scaling/scripts/common/deploy.sh
@@ -59,7 +59,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/more-complex-app/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/more-complex-app/scripts/common/deploy.sh b/samples/applications/more-complex-app/scripts/common/deploy.sh
index a6e9bea..99379fe 100755
--- a/samples/applications/more-complex-app/scripts/common/deploy.sh
+++ b/samples/applications/more-complex-app/scripts/common/deploy.sh
@@ -51,7 +51,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/nested-group/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/nested-group/scripts/common/deploy.sh b/samples/applications/nested-group/scripts/common/deploy.sh
index 4e7f308..c9b8e64 100755
--- a/samples/applications/nested-group/scripts/common/deploy.sh
+++ b/samples/applications/nested-group/scripts/common/deploy.sh
@@ -49,7 +49,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/single-cartridge/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/single-cartridge/scripts/common/deploy.sh b/samples/applications/single-cartridge/scripts/common/deploy.sh
index 55595cc..f63bba2 100755
--- a/samples/applications/single-cartridge/scripts/common/deploy.sh
+++ b/samples/applications/single-cartridge/scripts/common/deploy.sh
@@ -39,7 +39,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${iaas_cartridges_path}/ph
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 echo "Adding application..."
 curl -X POST -H "Content-Type: application/json" -d "@${artifacts_path}/application.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applications

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/single-group-cartridge/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/single-group-cartridge/scripts/common/deploy.sh b/samples/applications/single-group-cartridge/scripts/common/deploy.sh
index 8382a83..bd2264b 100755
--- a/samples/applications/single-group-cartridge/scripts/common/deploy.sh
+++ b/samples/applications/single-group-cartridge/scripts/common/deploy.sh
@@ -49,7 +49,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/single-group-group-scaling/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/single-group-group-scaling/scripts/common/deploy.sh b/samples/applications/single-group-group-scaling/scripts/common/deploy.sh
index b4df633..2732a55 100755
--- a/samples/applications/single-group-group-scaling/scripts/common/deploy.sh
+++ b/samples/applications/single-group-group-scaling/scripts/common/deploy.sh
@@ -42,7 +42,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/single-group-v1/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/single-group-v1/scripts/common/deploy.sh b/samples/applications/single-group-v1/scripts/common/deploy.sh
index daa2e4a..c2812ed 100755
--- a/samples/applications/single-group-v1/scripts/common/deploy.sh
+++ b/samples/applications/single-group-v1/scripts/common/deploy.sh
@@ -45,7 +45,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/single-group-v2/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/single-group-v2/scripts/common/deploy.sh b/samples/applications/single-group-v2/scripts/common/deploy.sh
index 475f202..7b47ea1 100755
--- a/samples/applications/single-group-v2/scripts/common/deploy.sh
+++ b/samples/applications/single-group-v2/scripts/common/deploy.sh
@@ -48,7 +48,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/single-group-v3/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/single-group-v3/scripts/common/deploy.sh b/samples/applications/single-group-v3/scripts/common/deploy.sh
index 9a22d41..b2c1a5a 100755
--- a/samples/applications/single-group-v3/scripts/common/deploy.sh
+++ b/samples/applications/single-group-v3/scripts/common/deploy.sh
@@ -42,7 +42,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/tomcat/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/tomcat/scripts/common/deploy.sh b/samples/applications/tomcat/scripts/common/deploy.sh
index f261c99..abb10c9 100755
--- a/samples/applications/tomcat/scripts/common/deploy.sh
+++ b/samples/applications/tomcat/scripts/common/deploy.sh
@@ -40,7 +40,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${iaas_cartridges_path}/to
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/wordpress-extended-v1/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/wordpress-extended-v1/scripts/common/deploy.sh b/samples/applications/wordpress-extended-v1/scripts/common/deploy.sh
index a119b69..3a0f22d 100755
--- a/samples/applications/wordpress-extended-v1/scripts/common/deploy.sh
+++ b/samples/applications/wordpress-extended-v1/scripts/common/deploy.sh
@@ -50,7 +50,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/wordpress-extended-v2/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/wordpress-extended-v2/scripts/common/deploy.sh b/samples/applications/wordpress-extended-v2/scripts/common/deploy.sh
index a119b69..3a0f22d 100755
--- a/samples/applications/wordpress-extended-v2/scripts/common/deploy.sh
+++ b/samples/applications/wordpress-extended-v2/scripts/common/deploy.sh
@@ -50,7 +50,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/ae202e48/samples/applications/wordpress/scripts/common/deploy.sh
----------------------------------------------------------------------
diff --git a/samples/applications/wordpress/scripts/common/deploy.sh b/samples/applications/wordpress/scripts/common/deploy.sh
index c4eccb9..bc183de 100755
--- a/samples/applications/wordpress/scripts/common/deploy.sh
+++ b/samples/applications/wordpress/scripts/common/deploy.sh
@@ -47,7 +47,7 @@ curl -X POST -H "Content-Type: application/json" -d "@${cartridges_groups_path}/
 sleep 1
 
 echo "Adding application policy..."
-curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
+curl -X POST -H "Content-Type: application/json" -d "@${application_policies_path}/application-policy-1.json" -k -v -u admin:admin https://${host_ip}:${host_port}/api/applicationPolicies
 
 sleep 1