Hi, I used, getWebAppURL(WebAppTypes.WEBAPPS)
thanks, On Mon, Jun 29, 2015 at 11:32 AM, Niranjan Karunanandham <[email protected]> wrote: > Hi Manoj, > > The problem here is in Super Admin space when a web app is uploaded, it > does not require to append "webapps" to the server url, but only for > tenants this is required. Why is this different in the case of tenant and > super admin? > > Regards, > Nira > > On Mon, Jun 29, 2015 at 11:28 AM, Manoj Kumara <[email protected]> wrote: > >> Hi Nira, >> >> We discussed the same issue on the last week review as well. As per the >> integration team *webAppURL* is due to apps like Jaggery have different >> context and due to this they cannot make it generic to all webapps, >> >> ex: http://10.100.0.92:9763/t/wso2.com/jaggeryapps/docs/ >> >> As per what we discussed the conclusion was to append the required >> context depending on the userType. >> >> Also there was a discussion that whether we need to add 'webapp' or >> 'jaggeryapps' context for tenants. >> >> Regards, >> Manoj >> >> >> *Manoj Kumara |* Senior Software Engineer >> Inc. *| **lean. enterprise. middleware.* >> #20, Palm Grove, Colombo 03, Sri Lanka >> *Mobile:* +94 713 448188 *|** Work:* +94 112 145345 >> >> >> On Mon, Jun 29, 2015 at 11:17 AM, Niranjan Karunanandham < >> [email protected]> wrote: >> >>> Hi all, >>> >>> When writing the integration test for Web apps, I came across an issue >>> when testing it for Super Admin and Tenant user. To web app exposes a Rest >>> endpoint and the requirement is to check the endpoint in both space (Super >>> Admin and tenant). >>> >>> The web app successfully gets deployed in both space (Super Admin and >>> tenant) and to test the endpoint I use the >>> "HttpRequestUtil.sendGetRequest(endpoint, >>> null)" provided by the Automation Framework where the endpoint is >>> obtained from the *webAppURL* [1]. The problem is that when the webapp >>> is uploaded to Super-Admin space, the endpoint is >>> >>> *http://localhost:9763/ <http://localhost:9763/>*<webapp name> >>> >>> and in the Tenant space it is >>> >>> *http://localhost:9763/t/wso2.com/webapps >>> <http://localhost:9763/t/wso2.com/webapps>*/<webapp name> >>> >>> >>> but the *webAppURL* obtained when running the integration test for >>> Super Admin space is http://localhost:9763 and Tenant space is >>> http://localhost:9763/t/wso2.com and not >>> http://localhost:9763/t/wso2.com/webapps . Is there a way to get the >>> webapps URL for tenant instead of getting the Server URL? >>> >>> >>> >>> [1] - >>> https://github.com/wso2/product-as/blob/master/modules/integration/tests-common/integration-test-utils/src/main/java/org/wso2/appserver/integration/common/utils/ASIntegrationTest.java#L45 >>> >>> Regards, >>> Nira >>> >>> -- >>> >>> *Niranjan Karunanandham* >>> Senior Software Engineer - WSO2 Inc. >>> WSO2 Inc.: http://www.wso2.com >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> > > > -- > > *Niranjan Karunanandham* > Senior Software Engineer - WSO2 Inc. > WSO2 Inc.: http://www.wso2.com > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Supun Malinga, Senior Software Engineer, WSO2 Inc. http://wso2.com email: [email protected] <[email protected]> mobile: +94 (0)71 56 91 321
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
