[keycloak-dev] Testsuite broken?

Stan Silvert ssilvert at redhat.com
Fri Feb 8 14:24:40 EST 2019


Wondering if something has changed recently that causes this to fail 
locally.  The stack trace I posted earlier is what happens if you run 
arquillian testsuite alone.

If I run full testsuite with "mvn test", I get:

[INFO] --- maven-dependency-plugin:3.1.1:unpack (unpack-undertow-server) 
@ integration-arquillian-tests-base ---
[INFO] Configured Artifact: 
org.keycloak.testsuite:integration-arquillian-servers-auth-server-undertow:4.8.3.Final-SNAPSHOT:jar
[INFO] Unpacking 
C:\GitHub\keycloak\testsuite\integration-arquillian\servers\auth-server\undertow\target\classes 
to 
C:\GitHub\keycloak\testsuite\integration-arquillian\tests\base\target\containers\auth-server-undertow 
with includes "*.jks,*.crt,*.truststore" and excludes ""
[INFO] 
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Keycloak TestSuite 4.8.3.Final-SNAPSHOT ............ SUCCESS [  
1.308 s]
[INFO] Keycloak Arquillian Integration TestSuite .......... SUCCESS [  
0.034 s]
[INFO] Servers ............................................ SUCCESS [  
0.034 s]
[INFO] Auth Server ........................................ SUCCESS [  
0.036 s]
[INFO] Auth Server Services ............................... SUCCESS [  
0.040 s]
[INFO] Auth Server Services - Testsuite Providers ......... SUCCESS [  
2.268 s]
[INFO] Keycloak TestSuite Utils ........................... SUCCESS [  
1.314 s]
[INFO] Test apps .......................................... SUCCESS [  
0.036 s]
[INFO] integration-arquillian-test-apps-servlets .......... SUCCESS [  
0.144 s]
[INFO] Keycloak Integration TestSuite - deprecated ........ SUCCESS 
[03:58 min]
[INFO] Keycloak Tomcat 8 Integration TestSuite ............ SUCCESS [ 
36.763 s]
[INFO] Test apps distribution ............................. SUCCESS [  
0.861 s]
[INFO] Keycloak Authz: PhotoZ  Test Parent ................ SUCCESS [  
0.035 s]
[INFO] Keycloak Authz Test: Photoz RESTful API ............ SUCCESS [  
0.127 s]
[INFO] Keycloak Authz Tests: Photoz HTML5 Client .......... SUCCESS [  
0.082 s]
[INFO] Keycloak Authz Tests: Photoz Authz Rule-based Policy SUCCESS [  
0.081 s]
[INFO] Keycloak Authz Tests: Hello World Example .......... SUCCESS [  
0.094 s]
[INFO] Keycloak Authz: Servlet Authorization Test ......... SUCCESS [  
0.084 s]
[INFO] Keycloak Authz: Simple Servlet App with Policy Enforcer SUCCESS 
[  0.069 s]
[INFO] Keycloak Test App Profile JEE ...................... SUCCESS [  
0.090 s]
[INFO] integration-arquillian-test-apps-cors-parent ....... SUCCESS [  
0.035 s]
[INFO] Angular Product Portal JS .......................... SUCCESS [  
0.108 s]
[INFO] JAX-RS Database Service Using OAuth Bearer Tokens .. SUCCESS [  
0.099 s]
[INFO] Fuse Test Applications ............................. SUCCESS [  
0.038 s]
[INFO] Customer Portal - Secured in Karaf/Fuse ............ SUCCESS [  
0.834 s]
[INFO] CXF JAXRS Example - Secured in Karaf/Fuse .......... SUCCESS [  
0.142 s]
[INFO] CXF JAXRS Example - Secured in Karaf/Fuse 7.0 on Undertow SUCCESS 
[  0.102 s]
[INFO] CXF JAXWS Example - Secured in Karaf/Fuse .......... SUCCESS [  
0.584 s]
[INFO] CXF JAXWS Example - Secured in Karaf/Fuse 7.0 on Undertow SUCCESS 
[  0.264 s]
[INFO] Product Portal - Secured in Karaf/Fuse ............. SUCCESS [  
0.104 s]
[INFO] Product Portal - Secured in Karaf/Fuse 7.0 on Undertow SUCCESS [  
0.105 s]
[INFO] Camel endpoint example - Secured in Karaf/Fuse ..... SUCCESS [  
0.173 s]
[INFO] Camel endpoint example - Secured in Karaf/Fuse 7.0 on Undertow 
SUCCESS [  0.110 s]
[INFO] Keycloak Fuse Example - Features ................... SUCCESS [  
0.091 s]
[INFO] Keycloak Examples - External Config ................ SUCCESS [  
0.252 s]
[INFO] Auth Server - JBoss ................................ SUCCESS [  
0.034 s]
[INFO] Test Util .......................................... SUCCESS [  
0.351 s]
[INFO] Auth Server - Undertow ............................. SUCCESS [  
0.497 s]
[INFO] App Server ......................................... SUCCESS [  
0.031 s]
[INFO] App Server - SPI ................................... SUCCESS [  
0.097 s]
[INFO] App Server - JBoss ................................. SUCCESS [  
0.034 s]
[INFO] App Server - Karaf ................................. SUCCESS [  
0.031 s]
[INFO] App Server - Tomcat ................................ SUCCESS [  
0.032 s]
[INFO] App Server - Undertow .............................. SUCCESS [  
0.167 s]
[INFO] Cache Server ....................................... SUCCESS [  
0.035 s]
[INFO] Cache Server - JBoss Family ........................ SUCCESS [  
0.038 s]
[INFO] Tests .............................................. SUCCESS [  
0.132 s]
[INFO] Base TestSuite ..................................... FAILURE [  
6.991 s]
[INFO] Other Tests Modules ................................ SKIPPED
[INFO] Adapter Tests ...................................... SKIPPED
[INFO] Adapter Tests - JBoss .............................. SKIPPED
[INFO] Adapter Tests - Karaf .............................. SKIPPED
[INFO] Adapter Tests - Tomcat ............................. SKIPPED
[INFO] Adapter Tests - WAS ................................ SKIPPED
[INFO] Adapter Tests - WLS ................................ SKIPPED
[INFO] SSSD tests ......................................... SKIPPED
[INFO] integration-arquillian-tests-springboot ............ SKIPPED
[INFO] Keycloak Jetty 9.2.x Integration TestSuite ......... SKIPPED
[INFO] Keycloak Jetty 9.3.x Integration TestSuite ......... SKIPPED
[INFO] Keycloak Jetty 9.4.x Integration TestSuite ......... SKIPPED
[INFO] Keycloak SAML Jetty Testsuite Integration .......... SKIPPED
[INFO] Keycloak Security Proxy TestSuite .................. SKIPPED
[INFO] Keycloak Tomcat 7 Integration TestSuite 4.8.3.Final-SNAPSHOT SKIPPED
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 04:55 min
[INFO] Finished at: 2019-02-08T14:19:21-05:00
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-dependency-plugin:3.1.1:unpack 
(unpack-undertow-server) on project integration-arquillian-tests-base: 
Artifact has not been packaged yet. When used on reactor artifact, 
unpack should be executed after packaging: see MDEP-98. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the 
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, 
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the 
command
[ERROR]   mvn <goals> -rf :integration-arquillian-tests-base

On 2/8/2019 2:00 PM, Stan Silvert wrote:
> Trying to run tests locally.  I did a clean build from master. Anyone
> know what is wrong?
>
> java.lang.RuntimeException: RESTEASY003325: Failed to construct public
> org.keycloak.services.resources.KeycloakApplication(javax.servlet.ServletContext,org.jboss.resteasy.core.Dispatcher)
>       at
> org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:166)
>       at
> org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2757)
>       at
> org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:363)
>       at
> org.jboss.resteasy.spi.ResteasyDeployment.startInternal(ResteasyDeployment.java:276)
>       at
> org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:88)
>       at
> org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:119)
>       at
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36)
>       at
> io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)
>       at
> io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:300)
>       at
> io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:140)
>       at
> io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:583)
>       at
> io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:554)
>       at
> io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
>       at
> io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
>       at
> io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:596)
>       at
> org.jboss.resteasy.plugins.server.undertow.UndertowJaxrsServer.deploy(UndertowJaxrsServer.java:270)
>       at
> org.keycloak.testsuite.arquillian.undertow.KeycloakOnUndertow.start(KeycloakOnUndertow.java:204)
>       at
> org.jboss.arquillian.container.impl.ContainerImpl.start(ContainerImpl.java:179)
>       at
> org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleController.java:137)
>       at
> org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController$8.perform(ContainerLifecycleController.java:133)
>       at
> org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.forContainer(ContainerLifecycleController.java:208)
>       at
> org.jboss.arquillian.container.impl.client.container.ContainerLifecycleController.startContainer(ContainerLifecycleController.java:133)
>       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.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.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:54)
>       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.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.core.impl.EventImpl.fire(EventImpl.java:62)
>       at
> org.keycloak.testsuite.arquillian.AuthServerTestEnricher.startAuthContainer(AuthServerTestEnricher.java:321)
>       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.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.client.ContainerEventController.execute(ContainerEventController.java:83)
>       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.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.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:69)
>       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.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.beforeSuite(EventTestRunnerAdaptor.java:70)
>       at
> org.jboss.arquillian.junit.AdaptorManager.initializeAdaptor(AdaptorManager.java:23)
>       at
> org.jboss.arquillian.junit.AdaptorManagerWithNotifier.initializeAdaptor(AdaptorManagerWithNotifier.java:19)
>       at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:109)
>       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)
> Caused by: java.lang.RuntimeException: Failed to connect to database
>       at
> org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.getConnection(DefaultJpaConnectionProviderFactory.java:382)
>       at
> org.keycloak.connections.jpa.updater.liquibase.lock.LiquibaseDBLockProvider.lazyInit(LiquibaseDBLockProvider.java:65)
>       at
> org.keycloak.connections.jpa.updater.liquibase.lock.LiquibaseDBLockProvider.lambda$waitForLock$0(LiquibaseDBLockProvider.java:97)
>       at
> org.keycloak.models.utils.KeycloakModelUtils.suspendJtaTransaction(KeycloakModelUtils.java:678)
>       at
> org.keycloak.connections.jpa.updater.liquibase.lock.LiquibaseDBLockProvider.waitForLock(LiquibaseDBLockProvider.java:95)
>       at
> org.keycloak.services.resources.KeycloakApplication$1.run(KeycloakApplication.java:148)
>       at
> org.keycloak.models.utils.KeycloakModelUtils.runJobInTransaction(KeycloakModelUtils.java:227)
>       at
> org.keycloak.services.resources.KeycloakApplication.<init>(KeycloakApplication.java:141)
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>       at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>       at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>       at
> org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:154)
>       ... 77 more
> Caused by: java.lang.ClassNotFoundException:
>       at java.lang.Class.forName0(Native Method)
>       at java.lang.Class.forName(Class.java:264)
>       at
> org.keycloak.connections.jpa.DefaultJpaConnectionProviderFactory.getConnection(DefaultJpaConnectionProviderFactory.java:378)
>       ... 89 more
>
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev




More information about the keycloak-dev mailing list