-
Task
-
Resolution: Fixed
-
L3 - Default
-
None
-
None
-
Not defined
Since the implementation of the migration to Spring Boot 3 (OPT-6608) we are no longer able to run integration tests locally. That has to do with the generation/deployment of the engine-it-plugin. When executing the command below to setup the integration testing environment, for some reason the engine-it-plugin is either not deployed properly to it or it is not executed properly. Either way, no integration tests can be executed. This is the error we get when executing a test:
16:14:51.757 [main] INFO o.c.o.test.engine.EnginePluginClient - Deploying engine with name integrationTest 16:14:51.773 [main] ERROR o.c.o.test.engine.EnginePluginClient - Error deploying engine integrationTest, got status code Not Found. Error message was: <!doctype html><html lang="en"><head><title>HTTP Status 404 – Not Found</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 404 – Not Found</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> The requested resource [/engine-it-plugin/deploy] is not available</p><p><b>Description</b> The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p><hr class="line" /><h3>Apache Tomcat/9.0.58</h3></body></html> java.lang.ExceptionInInitializerError at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method) at java.base/jdk.internal.misc.Unsafe.ensureClassInitialized(Unsafe.java:1160) at java.base/java.lang.reflect.Field.acquireOverrideFieldAccessor(Field.java:1198) at java.base/java.lang.reflect.Field.getOverrideFieldAccessor(Field.java:1167) at java.base/java.lang.reflect.Field.get(Field.java:442) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) at java.base/java.util.stream.Sink$ChainedReference.end(Sink.java:258) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) Caused by: java.lang.RuntimeException: Something really bad happened during engine deployment, please check the logs. at org.camunda.optimize.test.engine.EnginePluginClient.deployEngine(EnginePluginClient.java:53) at org.camunda.optimize.test.util.client.SimpleEngineClient.deployEngine(SimpleEngineClient.java:158) at org.camunda.optimize.test.it.extension.EngineIntegrationExtension.initEngine(EngineIntegrationExtension.java:117) at org.camunda.optimize.test.it.extension.EngineIntegrationExtension.<init>(EngineIntegrationExtension.java:89) at org.camunda.optimize.test.it.extension.EngineIntegrationExtension.<init>(EngineIntegrationExtension.java:80) at org.camunda.optimize.test.it.extension.EngineIntegrationExtension.<init>(EngineIntegrationExtension.java:72) at org.camunda.optimize.AbstractPlatformIT.<clinit>(AbstractPlatformIT.java:33) ... 16 more
Testing notes
1. Run
mvn pre-integration-test -Pit,engine-latest -pl backend -am -Dskip.fe.build -e -X -rf :optimize-backend
2. Open IntelliJ and run any integration test
3. The integration test should execute without errors
This is the controller panel for Smart Panels app
- is related to
-
OPT-6608 Update to Spring Boot 3.0
- Done