You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by "Imesh Gunaratne (JIRA)" <ji...@apache.org> on 2013/07/30 10:27:54 UTC

[jira] [Comment Edited] (STRATOS-7) Autoscale Mediator BE - AppDomainContextsTest Error

    [ https://issues.apache.org/jira/browse/STRATOS-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13723564#comment-13723564 ] 

Imesh Gunaratne edited comment on STRATOS-7 at 7/30/13 8:27 AM:
----------------------------------------------------------------

Fixed: 
- Updated test case to use junit4 and added tear down functionality
- Now the setup and tear down are only run once.
- Attached patch file: 0001-Updated-test-case-to-use-junit4-and-added-tear-down-.patch
                
      was (Author: imesh):
    Fixed: 
- Updated test case to use junit4 and added tear down functionality
- Attached patch file: 0001-Updated-test-case-to-use-junit4-and-added-tear-down-.patch
                  
> Autoscale Mediator BE - AppDomainContextsTest Error
> ---------------------------------------------------
>
>                 Key: STRATOS-7
>                 URL: https://issues.apache.org/jira/browse/STRATOS-7
>             Project: Stratos
>          Issue Type: Bug
>            Reporter: Imesh Gunaratne
>            Assignee: Isuru Perera
>            Priority: Minor
>         Attachments: 0001-Added-missing-sub-domain-aware-group-management-agen.patch, 0001-Removed-service-configuration-at-the-end-of-test-add.patch, 0001-Updated-test-case-to-use-junit4-and-added-tear-down-.patch, trace.log
>
>
> AppDomainContextsTest in Autoscale Mediator BE is using the singleton LB configuration instance and it's service configurations added in one test method are affecting the other test methods.
> We might need to isolate and remove service configurations added in a test method either in tearDown() or at the end of the test.
> Error:
> -------------------------------------------------------------------------------
> Test set: org.apache.stratos.mediator.autoscale.lbautoscale.AppDomainContextsTest
> -------------------------------------------------------------------------------
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.215 sec <<< FAILURE!
> testRemoval(org.apache.stratos.mediator.autoscale.lbautoscale.AppDomainContextsTest)  Time elapsed: 0.003 sec  <<< ERROR!
> org.apache.synapse.SynapseException: Axis2 clustering GroupManagementAgent for domain: wso2.as3.domain, sub-domain: mgt has not been defined
> 	at org.apache.stratos.mediator.autoscale.lbautoscale.util.AutoscaleUtil.getAppDomainContexts(AutoscaleUtil.java:256)
> 	at org.apache.stratos.mediator.autoscale.lbautoscale.AppDomainContextsTest.setUp(AppDomainContextsTest.java:63)
> 	at junit.framework.TestCase.runBare(TestCase.java:139)
> 	at junit.framework.TestResult$1.protect(TestResult.java:122)
> 	at junit.framework.TestResult.runProtected(TestResult.java:142)
> 	at junit.framework.TestResult.run(TestResult.java:125)
> 	at junit.framework.TestCase.run(TestCase.java:129)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:255)
> 	at junit.framework.TestSuite.run(TestSuite.java:250)
> 	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)
> 	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> 	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> 	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira