Mariangela Hills created STRATOS-1287:
-----------------------------------------
Summary: Sample application single-group-v1 can not be deployed
Key: STRATOS-1287
URL: https://issues.apache.org/jira/browse/STRATOS-1287
Project: Stratos
Issue Type: Bug
Components: Stratos Samples
Affects Versions: 4.1.0 Alpha
Reporter: Mariangela Hills
When running the deploy.sh, which is in the
<STRATOS_SOURCE_HOME>/samples/applications/single-group-v1/scripts/mock
directory, the application policy does not get added and the single-group-v1
application does not get deployed.
The reason for this is that the wrong application policy has been added and the
wrong application policy ID has been added when deploying an application in the
deploy.sh file.
This needs to be fixed by updating the following two entries in the
<STRATOS_SOURCE_HOME>/samples/applications/single-group-v1/scripts/common/deploy.sh
as follows:
[1] Incorrect
echo "Adding application policy..."
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
[1] Correct
sleep 1
echo "Adding application policy..."
curl -X POST -H "Content-Type: application/json" -d
"@${application_policies_path}/application-policy-2.json" -k -v -u admin:admin
https://${host_ip}:${host_port}/api/applicationPolicies
-------------
[2] Incorrect
echo "Deploying application..."
curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin
https://${host_ip}:${host_port}/api/applications/single-group-v1/deploy/application-policy-1
[2] Correct
echo "Deploying application..."
curl -X POST -H "Content-Type: application/json" -k -v -u admin:admin
https://${host_ip}:${host_port}/api/applications/single-group-v1/deploy/application-policy-2
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)