esend7881 opened a new issue #906: Tests fail on integration-tests/platform-http for 1.0.0-M5 URL: https://github.com/apache/camel-quarkus/issues/906 I'm not sure if I am missing a prerequisite instructions for running tests on the platform-http IT, but I get the following from maven: ``` [user@ubuntu:~/workspace/camel-quarkus]$ mvn test -f integration-tests/platform-http [INFO] Scanning for projects... [INFO] [INFO] --< org.apache.camel.quarkus:camel-quarkus-integration-test-platform-http >-- [INFO] Building Camel Quarkus :: Integration Tests :: Platform HTTP 1.0.0-M5 [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- directory-maven-plugin:0.3.1:highest-basedir (directories) @ camel-quarkus-integration-test-platform-http --- [INFO] Highest basedir set to: /home/user/workspace/camel-quarkus [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ camel-quarkus-integration-test-platform-http --- [INFO] [INFO] --- maven-enforcer-plugin:1.4.1:enforce (camel-quarkus-enforcer-rules) @ camel-quarkus-integration-test-platform-http --- [INFO] [INFO] --- groovy-maven-plugin:2.1.1:execute (sanity-checks) @ camel-quarkus-integration-test-platform-http --- [INFO] [INFO] --- formatter-maven-plugin:2.11.0:format (format) @ camel-quarkus-integration-test-platform-http --- [INFO] Using 'UTF-8' encoding to format source files. [INFO] Number of files to be formatted: 4 [INFO] Successfully formatted: 0 file(s) [INFO] Fail to format: 0 file(s) [INFO] Skipped: 4 file(s) [INFO] Read only skipped: 0 file(s) [INFO] Approximate time taken: 1s [INFO] [INFO] --- impsort-maven-plugin:1.3.2:sort (sort-imports) @ camel-quarkus-integration-test-platform-http --- [INFO] Total Files Processed: 4 in 00:00.353 [INFO] Already Sorted: 4 [INFO] Needed Sorting: 0 [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ camel-quarkus-integration-test-platform-http --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- build-helper-maven-plugin:3.0.0:reserve-network-port (reserve-network-port) @ camel-quarkus-integration-test-platform-http --- [INFO] Reserved port 36615 for test.http.port.jvm [INFO] Reserved port 42759 for test.http.port.native [INFO] [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ camel-quarkus-integration-test-platform-http --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (copy-generated-resources) @ camel-quarkus-integration-test-platform-http --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ camel-quarkus-integration-test-platform-http --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /home/user/workspace/camel-quarkus/integration-tests/platform-http/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ camel-quarkus-integration-test-platform-http --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ camel-quarkus-integration-test-platform-http --- [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest 2020-03-18 12:15:25,920 INFO [io.quarkus] (main) Quarkus 1.3.0.Final started in 1.896s. Listening on: http://0.0.0.0:36615 2020-03-18 12:15:25,926 INFO [io.quarkus] (main) Profile test activated. 2020-03-18 12:15:25,926 INFO [io.quarkus] (main) Installed features: [cdi, mutiny, vertx, vertx-web] [ERROR] Tests run: 16, Failures: 16, Errors: 0, Skipped: 0, Time elapsed: 4.288 s <<< FAILURE! - in org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest [ERROR] code204EmptyString Time elapsed: 1.267 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. Expected status code <204> but was <404>. at org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest.code204EmptyString(PlatformHttpTest.java:213) [ERROR] code204SomeString Time elapsed: 0.015 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. Expected status code <200> but was <404>. at org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest.code204SomeString(PlatformHttpTest.java:221) [ERROR] multiValueParams Time elapsed: 0.022 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. Expected status code <200> but was <404>. at org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest.multiValueParams(PlatformHttpTest.java:174) [ERROR] invalidMethod Time elapsed: 0.036 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. Expected status code <405> but was <404>. at org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest.invalidMethod(PlatformHttpTest.java:125) [ERROR] multipart Time elapsed: 0.103 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. Expected status code <200> but was <404>. at org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest.multipart(PlatformHttpTest.java:140) [ERROR] produces Time elapsed: 0.02 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. Expected status code <406> but was <404>. at org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest.produces(PlatformHttpTest.java:98) [ERROR] consumes Time elapsed: 0.015 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. Expected status code <415> but was <404>. at org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest.consumes(PlatformHttpTest.java:70) [ERROR] pathParam Time elapsed: 0.017 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. Expected status code <200> but was <404>. at org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest.pathParam(PlatformHttpTest.java:239) [ERROR] rest Time elapsed: 0.095 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. Response body doesn't match expectation. Expected: "GET: /rest-get" Actual: <html><body><h1>Resource not found</h1></body></html> at org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest.rest(PlatformHttpTest.java:57) [ERROR] responseCodeViaHeader Time elapsed: 0.013 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. Expected status code <299> but was <404>. at org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest.responseCodeViaHeader(PlatformHttpTest.java:197) [ERROR] basic Time elapsed: 0.015 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. Expected status code <200> but was <404>. at org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest.basic(PlatformHttpTest.java:37) [ERROR] code204Null Time elapsed: 0.013 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. Expected status code <204> but was <404>. at org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest.code204Null(PlatformHttpTest.java:205) [ERROR] customHeaderFilterStrategy Time elapsed: 0.012 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. Expected status code <200> but was <404>. at org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest.customHeaderFilterStrategy(PlatformHttpTest.java:163) [ERROR] formUrlEncoded Time elapsed: 0.03 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. Expected status code <200> but was <404>. at org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest.formUrlEncoded(PlatformHttpTest.java:152) [ERROR] encoding Time elapsed: 0.017 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. Expected status code <200> but was <404>. at org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest.encoding(PlatformHttpTest.java:187) [ERROR] code200EmptyString Time elapsed: 0.039 s <<< FAILURE! java.lang.AssertionError: 1 expectation failed. Expected status code <200> but was <404>. at org.apache.camel.quarkus.component.http.server.it.PlatformHttpTest.code200EmptyString(PlatformHttpTest.java:230) 2020-03-18 12:15:27,780 INFO [io.quarkus] (main) Quarkus stopped in 0.083s [INFO] [INFO] Results: [INFO] [ERROR] Failures: [ERROR] PlatformHttpTest.basic:37 1 expectation failed. Expected status code <200> but was <404>. [ERROR] PlatformHttpTest.code200EmptyString:230 1 expectation failed. Expected status code <200> but was <404>. [ERROR] PlatformHttpTest.code204EmptyString:213 1 expectation failed. Expected status code <204> but was <404>. [ERROR] PlatformHttpTest.code204Null:205 1 expectation failed. Expected status code <204> but was <404>. [ERROR] PlatformHttpTest.code204SomeString:221 1 expectation failed. Expected status code <200> but was <404>. [ERROR] PlatformHttpTest.consumes:70 1 expectation failed. Expected status code <415> but was <404>. [ERROR] PlatformHttpTest.customHeaderFilterStrategy:163 1 expectation failed. Expected status code <200> but was <404>. [ERROR] PlatformHttpTest.encoding:187 1 expectation failed. Expected status code <200> but was <404>. [ERROR] PlatformHttpTest.formUrlEncoded:152 1 expectation failed. Expected status code <200> but was <404>. [ERROR] PlatformHttpTest.invalidMethod:125 1 expectation failed. Expected status code <405> but was <404>. [ERROR] PlatformHttpTest.multiValueParams:174 1 expectation failed. Expected status code <200> but was <404>. [ERROR] PlatformHttpTest.multipart:140 1 expectation failed. Expected status code <200> but was <404>. [ERROR] PlatformHttpTest.pathParam:239 1 expectation failed. Expected status code <200> but was <404>. [ERROR] PlatformHttpTest.produces:98 1 expectation failed. Expected status code <406> but was <404>. [ERROR] PlatformHttpTest.responseCodeViaHeader:197 1 expectation failed. Expected status code <299> but was <404>. [ERROR] PlatformHttpTest.rest:57 1 expectation failed. Response body doesn't match expectation. Expected: "GET: /rest-get" Actual: <html><body><h1>Resource not found</h1></body></html> [INFO] [ERROR] Tests run: 16, Failures: 16, Errors: 0, Skipped: 0 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 15.039 s [INFO] Finished at: 2020-03-18T12:15:28-07:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project camel-quarkus-integration-test-platform-http: There are test failures. [ERROR] [ERROR] Please refer to /home/user/workspace/camel-quarkus/integration-tests/platform-http/target/surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [ERROR] -> [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/MojoFailureException ``` I tried the integration-test/servlet tests and they pass, so I'm failing to see a common denominator.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services