[ 
https://issues.apache.org/jira/browse/STRATOS-1288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14634812#comment-14634812
 ] 

Shavindri Dissanayake commented on STRATOS-1288:
------------------------------------------------

This sample has been removed when refining the samples [1]. Please resolve.

[1] Refining Application Samples

> Sample application single-group-v2 can not be deployed
> ------------------------------------------------------
>
>                 Key: STRATOS-1288
>                 URL: https://issues.apache.org/jira/browse/STRATOS-1288
>             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-v2/scripts/mock 
> directory, the application policy does not get added and the single-group-v2 
> 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-v2/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
> 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_v2/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_v2/deploy/application-policy-2



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to