Hi Denuwanthi, If you continue to use kernel 5.1.0, then you have to manually copy the uuf app and relevant artifact to the correct path inside the carbon.home as mention in the example[1].
[1] https://github.com/wso2/carbon-kernel/blob/v5.1.0/tests/osgi-tests/src/test/java/org/wso2/carbon/osgi/jmx/JMXOSGiTest.java#L73 Thanks, Chanaka. On Fri, Mar 31, 2017 at 10:10 AM, Niranjan Karunanandham <niran...@wso2.com> wrote: > Hi Denuwanthi, > > In C 5.2.0-m3, we have introduced pax exam container level testing [1]. > Did you check if we can test it via it? > > [1] - https://github.com/wso2/carbon-kernel/blob/master/ > docs/DeveloperTools/UsingIn-ContainerOSGiTesting.md > > Regards, > Nira > > On Tue, Mar 28, 2017 at 11:05 PM, Denuwanthi De Silva <denuwan...@wso2.com > > wrote: > >> Hi, >> >> 1. I have a micro service registered in a uuf app via component.yaml >> >> apis: >> - className: >> "org.wso2.is.portal.user.client.api.micro.PasswordUtilityMicroService" >> uri: "/passwordUtil-micro-service/" >> >> Now, the url for the micorservice is in the form of >> >> /admin-portal/root/apis/passwordUtil-micro-service/validatePassword >> >> 2. Inside the microservice I call an OSGI service. >> >> BundleContext bundleContext = >> FrameworkUtil.getBundle(PasswordValidationService.class).getBundleContext(); >> >> >> 3.When writing a test case with 'MicroServicesRunner' since it is a >> non-osgi environment, my OSGI service is not fetched. >> >> 4.Then we tried to write as an osgi test. Then it says it cannot find >> 'admin-portal' app >> >> >> Is there a way we can deploy the uuf app when running the tests?(We are >> on kernel 5.1.0) >> >> >> Thanks >> -- >> Denuwanthi De Silva >> Senior Software Engineer; >> WSO2 Inc.; http://wso2.com, >> Email: denuwan...@wso2.com >> Blog: https://denuwanthi.wordpress.com/ >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > > *Niranjan Karunanandham* > Associate Technical Lead - WSO2 Inc. > WSO2 Inc.: http://www.wso2.com > > -- Chanaka Cooray Software Engineer, WSO2 Inc. http://wso2.com Email: chana...@wso2.com Mobile: +94713149860 <https://wso2.com/signature>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev