Uploaded image for project: 'Stratos'
  1. Stratos
  2. STRATOS-7

Autoscale Mediator BE - AppDomainContextsTest Error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0
    • None
    • None

    Description

      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)

      Attachments

        Activity

          People

            imesh Imesh Gunaratne
            imesh Imesh Gunaratne
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: