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
