Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-13946

Enable and fix occasional test failures in SiteIntegrationTest

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • None
    • None
    • Pulsar
    • Pulsar 276 - Cycle 8 Cooldown

    Description

      Failed

      Test / Test (Unit & integration tests) / org.onehippo.cm.engine.site.SiteIntegrationTest.sites_test_delete

      Stacktrace

      java.lang.reflect.InvocationTargetException at org.onehippo.cm.engine.site.SiteIntegrationTest.sites_test_delete(SiteIntegrationTest.java:263) Caused by: org.onehippo.cms7.services.HippoServiceException: A service of type org.onehippo.cms7.services.lock.LockManager is already registered. at org.onehippo.cm.engine.site.SiteIntegrationTest.sites_test_delete(SiteIntegrationTest.java:263)

      Standard Output

      20.08.2020 12:46:46 ERROR [org.onehippo.cms7.services.WhiteboardServiceRegistry.register():117] There was an error notifying the ServiceTracker org.onehippo.cm.engine.ConfigurationServiceImpl for registering service org.onehippo.cms7.services.context.HippoWebappContext org.onehippo.cm.model.impl.exceptions.DuplicateNameException: Duplicate Site: 'm1'. at org.onehippo.cm.model.impl.OrderableByNameListSorter.sort(OrderableByNameListSorter.java:96) ~[hippo-configuration-management-model-100.4.0-SNAPSHOT.jar:100.4.0-SNAPSHOT] at org.onehippo.cm.model.impl.ConfigurationModelImpl.buildModel(ConfigurationModelImpl.java:278) ~[hippo-configuration-management-model-100.4.0-SNAPSHOT.jar:100.4.0-SNAPSHOT] at org.onehippo.cm.model.impl.ConfigurationModelImpl.build(ConfigurationModelImpl.java:257) ~[hippo-configuration-management-model-100.4.0-SNAPSHOT.jar:100.4.0-SNAPSHOT] at org.onehippo.cm.model.parser.ClasspathConfigurationModelReader.readSite(ClasspathConfigurationModelReader.java:130) ~[hippo-configuration-management-model-100.4.0-SNAPSHOT.jar:100.4.0-SNAPSHOT] at org.onehippo.cm.engine.ConfigurationServiceImpl.applySiteConfig(ConfigurationServiceImpl.java:238) ~[hippo-repository-engine-100.4.0-SNAPSHOT.jar:100.4.0-SNAPSHOT] at org.onehippo.cm.engine.ConfigurationServiceImpl.serviceRegistered(ConfigurationServiceImpl.java:1150) ~[hippo-repository-engine-100.4.0-SNAPSHOT.jar:100.4.0-SNAPSHOT] at org.onehippo.cms7.services.WhiteboardServiceRegistry.register(WhiteboardServiceRegistry.java:113) [hippo-services-100.4.0-SNAPSHOT.jar:100.4.0-SNAPSHOT] at org.onehippo.cms7.services.context.HippoWebappContextRegistry.register(HippoWebappContextRegistry.java:44) [hippo-services-100.4.0-SNAPSHOT.jar:100.4.0-SNAPSHOT] at org.onehippo.cm.engine.site.SiteIntegrationTest.sites_test_delete(SiteIntegrationTest.java:262) [test-classes/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_252] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_252] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_252] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_252] at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) [junit-4.12.jar:4.12] at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.12.jar:4.12] at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) [junit-4.12.jar:4.12] at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) [junit-4.12.jar:4.12] at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48) [junit-4.12.jar:4.12] at org.junit.rules.RunRules.evaluate(RunRules.java:20) [junit-4.12.jar:4.12] at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) [junit-4.12.jar:4.12] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) [junit-4.12.jar:4.12] at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) [junit-4.12.jar:4.12] at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [junit-4.12.jar:4.12] at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [junit-4.12.jar:4.12] at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [junit-4.12.jar:4.12] at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [junit-4.12.jar:4.12] at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [junit-4.12.jar:4.12] at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [junit-4.12.jar:4.12] at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:364) [surefire-junit4-3.0.0-M5.jar:3.0.0-M5] at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272) [surefire-junit4-3.0.0-M5.jar:3.0.0-M5] at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:237) [surefire-junit4-3.0.0-M5.jar:3.0.0-M5] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:158) [surefire-junit4-3.0.0-M5.jar:3.0.0-M5] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428) [surefire-booter-3.0.0-M5.jar:3.0.0-M5] at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162) [surefire-booter-3.0.0-M5.jar:3.0.0-M5] at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562) [surefire-booter-3.0.0-M5.jar:3.0.0-M5] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548) [surefire-booter-3.0.0-M5.jar:3.0.0-M5]

       

      org.onehippo.cm.engine.site.SiteIntegrationTest.Test / Test (Unit & integration tests) / sites_test_delete
      2
      270269
      org.onehippo.cm.engine.site.SiteIntegrationTest.Test / Test (Unit & integration tests) / sites_test_incompatible_nodeoverride
      2
      270269
      org.onehippo.cm.engine.site.SiteIntegrationTest.Test / Test (Unit & integration tests) / sites_test_incompatible_subnode
      2
      270269
      org.onehippo.cm.engine.site.SiteIntegrationTest.Test / Test (Unit & integration tests) / sites_test_namespace_defs
      2
      270269
      org.onehippo.cm.engine.site.SiteIntegrationTest.Test / Test (Unit & integration tests) / sites_with_content
      2
      270269

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aschrijvers Ard Schrijvers
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: