You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "George Reyes (JIRA)" <ji...@apache.org> on 2016/01/26 17:29:39 UTC

[jira] [Resolved] (USERGRID-504) Querying by application name in rest test framework doesn't work

     [ https://issues.apache.org/jira/browse/USERGRID-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Reyes resolved USERGRID-504.
-----------------------------------
    Resolution: Fixed

There isn't really a need for this but if there were then you could just add the following method and it should work: 

protected String getManagementOrgAppPath(String additionalPath){
    return "management/orgs/"+clientSetup.orgName + "/apps/" + clientSetup.appUuid + "/" + (additionalPath !=null ? additionalPath : "");
}

By using the pathResource we can build the types of paths we want without the builder method.

> Querying by application name in rest test framework doesn't work
> ----------------------------------------------------------------
>
>                 Key: USERGRID-504
>                 URL: https://issues.apache.org/jira/browse/USERGRID-504
>             Project: Usergrid
>          Issue Type: Story
>            Reporter: George Reyes
>            Assignee: George Reyes
>            Priority: Minor
>             Fix For: 2.1.1
>
>
>  
> The following call doesn't work 
> management().orgs().organization( clientSetup.getOrganizationName() )
>                         .app().addToPath( clientSetup.getAppName())
> but this call does
> management().orgs().organization( clientSetup.getOrganizationName() )
>                         .app().addToPath( clientSetup.getAppUuid())
> The reason being it seems like the application name under the management side also includes the org name as part of its identify but when forming rest calls it doesn't work. Thats why when the name doesn't work the uuid still does . Ideally it should just have the application name as part of its identity. 



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