Hi,
I am writing a test case for AS 5.2.1 when ghost deployment is enabled to
test the following,
1. webapp deployment from CApps
2. for a tenant, when it is idle, the first request for a
webapp/axis2service being successful
AKAIK the default tenant idle time is 15 minutes and cannot be configured
other than from a system property as of now.
Based on the offline chat I had with Krishantha, I
tried CarbonTestServerManager (sample usage [1]) and was successful in
starting an AS server setting the tenant.idle.time and with a port offset.
However when I checked asServer (which holds the back end url, session
cookies etc.) environment variable, it doesn't contain the values of the
server started with CarbonTestServerManager. Is there a way to get those
variables for the server started with CarbonTestServerManager?
A work around would be, without starting the server
with CarbonTestServerManager, simply deploy the CApp in a tenant, do a
graceful restart so that the tenant is idle when the server is up. Is there
a better way to achieve the task?
[1]
https://svn.wso2.org/repos/wso2/carbon/platform/branches/4.1.0/products/esb/4.7.0/modules/integration/tests/src/test/java/org/wso2/carbon/esb/test/servers/NewInstanceTestCase.java
--
Best Regards,
Kalpa Welivitigoda
Software Engineer, WSO2 Inc. http://wso2.com
Email: [email protected]
Mobile: +94776509215
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev