Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-8665

Error in ExportImportTest.testSingleFileRealmExportImport

    XMLWordPrintable

    Details

    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      Error Message
      expected:<

      {hello=[keycloak, world]}> but was:<{hello=[world, keycloak]}>
      Stacktrace
      java.lang.AssertionError: expected:<{hello=[keycloak, world]}

      > but was:<

      {hello=[world, keycloak]}

      >
      at org.junit.Assert.fail(Assert.java:88)
      at org.junit.Assert.failNotEquals(Assert.java:834)
      at org.junit.Assert.assertEquals(Assert.java:118)
      at org.junit.Assert.assertEquals(Assert.java:144)
      at org.keycloak.testsuite.exportimport.ExportImportTest.testRealmExportImport(ExportImportTest.java:314)
      at org.keycloak.testsuite.exportimport.ExportImportTest.testSingleFileRealmExportImport(ExportImportTest.java:162)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      at org.jboss.arquillian.junit.Arquillian$8$1.invokeMethod(Arquillian.java:325)
      at org.jboss.arquillian.junit.MethodInvoker$1.invoke(MethodInvoker.java:18)
      at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.execute(LocalTestExecuter.java:57)
      at org.keycloak.testsuite.arquillian.ModelTestExecutor.execute(ModelTestExecutor.java:49)
      at sun.reflect.GeneratedMethodAccessor186.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
      at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)
      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)
      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)
      at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:62)
      at org.jboss.arquillian.container.test.impl.execution.ClientTestExecuter.execute(ClientTestExecuter.java:50)
      at sun.reflect.GeneratedMethodAccessor185.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
      at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)
      at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:128)
      at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createTestContext(ContainerEventController.java:118)
      at sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
      at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:116)
      at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
      at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:83)
      at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
      at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:69)
      at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)
      at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:122)
      at org.jboss.arquillian.junit.MethodInvoker.invoke(MethodInvoker.java:15)
      at org.jboss.arquillian.junit.Arquillian$8.evaluate(Arquillian.java:332)
      at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:204)
      at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:350)
      at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
      at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:215)
      at org.jboss.arquillian.junit.Arquillian$7$1.invoke(Arquillian.java:279)
      at org.jboss.arquillian.container.test.impl.execution.ClientBeforeAfterLifecycleEventExecuter.execute(ClientBeforeAfterLifecycleEventExecuter.java:88)
      at org.jboss.arquillian.container.test.impl.execution.ClientBeforeAfterLifecycleEventExecuter.on(ClientBeforeAfterLifecycleEventExecuter.java:66)
      at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
      at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)
      at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:128)
      at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createBeforeContext(ContainerEventController.java:114)
      at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
      at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:116)
      at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
      at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:83)
      at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
      at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:69)
      at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
      at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)
      at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)
      at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.fireCustomLifecycle(EventTestRunnerAdaptor.java:142)
      at org.jboss.arquillian.junit.Arquillian$7.evaluate(Arquillian.java:273)
      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:166)
      at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:350)
      at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
      at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:177)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:115)
      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:367)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:274)
      at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:161)
      at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:290)
      at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:242)
      at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:121)
      Standard Output
      &amp#27;[33m05:25:45,830 WARN [org.keycloak.models.utils.RepresentationToModel] (default task-7) Using deprecated 'clientTemplates' configuration in JSON representation for realm 'test-realm'. It will be removed in future versions
      &amp#27;[0m&amp#27;[0m05:25:47,294 INFO [org.keycloak.services] (default task-7) KC-SERVICES0034: Export of realm 'test' requested.
      &amp#27;[0m&amp#27;[0m05:25:47,295 INFO [org.keycloak.exportimport.singlefile.SingleFileExportProvider] (default task-7) Exporting realm 'test' into file /home/jenkins/workspace/keycloak-pr-pipeline-structured/keycloak/testsuite/integration-arquillian/tests/base/target/singleFile-realm.json
      &amp#27;[0m&amp#27;[0m05:25:47,865 INFO [org.keycloak.services] (default task-7) KC-SERVICES0035: Export finished successfully
      &amp#27;[0m&amp#27;[0m05:25:49,641 INFO [org.keycloak.services] (default task-7) KC-SERVICES0031: Import of realm 'test' requested. Strategy: OVERWRITE_EXISTING
      &amp#27;[0m&amp#27;[0m05:25:49,641 INFO [org.keycloak.exportimport.singlefile.SingleFileImportProvider] (default task-7) Full importing from file /home/jenkins/workspace/keycloak-pr-pipeline-structured/keycloak/testsuite/integration-arquillian/tests/base/target/singleFile-realm.json
      &amp#27;[0m&amp#27;[0m05:25:52,582 INFO [org.keycloak.exportimport.util.ImportUtils] (default task-7) Realm 'test' imported
      &amp#27;[0m&amp#27;[0m05:25:52,602 INFO [org.keycloak.services] (default task-7) KC-SERVICES0032: Import finished successfully
      &amp#27;[0m&amp#27;[0m05:25:55,326 INFO [org.keycloak.storage.ldap.LDAPIdentityStoreRegistry] (default task-7) Creating new LDAP Store for the LDAP storage provider: 'MyLDAPProvider1', LDAP Configuration:

      {changedSyncPeriod=[0], lastSync=[0], fullSyncPeriod=[0], connectionUrl=[ldap://foo], priority=[1]}

      , binaryAttributes: []
      &amp#27;[0m&amp#27;[0m05:25:55,332 INFO [org.keycloak.storage.ldap.LDAPIdentityStoreRegistry] (default task-7) Creating new LDAP Store for the LDAP storage provider: 'MyLDAPProvider2', LDAP Configuration:

      {changedSyncPeriod=[0], lastSync=[0], fullSyncPeriod=[0], connectionUrl=[ldap://bar], priority=[2]}

      , binaryAttributes: []
      &amp#27;[0m

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vramik Vlasta Ramik
                  Reporter:
                  stianst Stian Thorgersen
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: