Hi Automation team,
In this[1] test, we have *CarbonTestServerManager *with
*MultipleServersManager *to spawn a new APIM server. Now I need to apply a
modified api-manager.xml file before starting this server. How can I do
that? Appreciate some help.
public void setEnvironment() throws Exception {
// to start the server from a different port offset
serverPropertyMap.put("-DportOffset", "510");
// start with OSGI component service
serverPropertyMap.put("-DosgiConsole", Integer.toString(telnetPort));
AutomationContext autoCtx = new AutomationContext();
CarbonTestServerManager server =
new CarbonTestServerManager(autoCtx, System.getProperty("carbon.zip"),
serverPropertyMap);
manager.startServers(server);
}
[1]
https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/server/mgt/OSGIServerBundleStatusTestCase.java#L63
Thanks,
--
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com <http://wso2.com>*
*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
<http://www.linkedin.com/in/bhathiyaj>*
*Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>*
*Blog: http://movingaheadblog.blogspot.com
<http://movingaheadblog.blogspot.com/>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev