Hi Sinthuja, a)You can change the configuration by using applyConfigurationWithoutRestart() methods in org.wso2.carbon.integration. common.utils.mgt.ServerConfigurationManager.java. For sample usage of ServerConfigurationManager [1] . You have to restart the server like in the sample [1] to get the configaration to apply.
b) I am not clear about your 2nd requirement, Do you want to run the same test case with 2 different configarations? [1] https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-backend/src/test/java/org/wso2/am/integration/tests/api/lifecycle/APIManagerConfigurationChangeTest.java Thanks and Best Regards, Saneth Dharmakeerthi Senior Software Engineer WSO2, Inc. Mobile: +94772325511 On Wed, Apr 22, 2015 at 7:32 PM, Sinthuja Ragendran <[email protected]> wrote: > Hi QAA team, > > I have a requirement in DAS integration test to change a configuration > file and run the whole integration tests again. > > Basically in DAS we have a core API which can run in LOCAL mode by using > osgi services, and REMOTE mode by connecting to a remote services in a > distributed setup. By default this configuration is LOCAL, and hence it > just uses the osgi services. But I need to tests the REMOTE functionality > as well by changing the configuration to REMOTE and point to localhost. And > currently the file is loaded only in the server start up, therefore > configuration fi. And I would prefer all the tests to be executed in both > modes to make sure functionality. > > How can I achieve my requirement? Please advice. > > Thanks, > Sinthuja. > > -- > *Sinthuja Rajendran* > Senior Software Engineer <http://wso2.com/> > WSO2, Inc.:http://wso2.com > > Blog: http://sinthu-rajan.blogspot.com/ > Mobile: +94774273955 > > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
