Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-1980

Random test port does not work together with amazon-lambda-http extension

XMLWordPrintable

    • False
    • None
    • False
    • +
    • Hide
      mvn -Dmaven.repo.local=.../rh-quarkus-2.7.5.GA-maven-repository/maven-repository/ -Dquarkus-plugin.version=2.7.5.Final-redhat-00004 -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom com.redhat.quarkus.platform:quarkus-maven-plugin:2.7.5.Final-redhat-00004:create -DprojectGroupId=io.quarkus.qe -DprojectArtifactId=amazon-lambda-http -DprojectVersion=1.0.0-SNAPSHOT -DplatformGroupId=com.redhat.quarkus.platform -DplatformArtifactId=quarkus-bom -Dextensions=amazon-lambda-http -DquarkusRegistryClient=false
      
      cd ./amazon-lambda-http
      
      mvn -Dmaven.repo.local=.../rh-quarkus-2.7.5.GA-maven-repository/maven-repository/ -Dquarkus-plugin.version=2.7.5.Final-redhat-00004 -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom verify -Dquarkus.http.test-port=0
      

      (Change Quarkus version as needed.)

      Show
      mvn -Dmaven.repo. local =.../rh-quarkus-2.7.5.GA-maven-repository/maven-repository/ -Dquarkus-plugin.version=2.7.5.Final-redhat-00004 -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom com.redhat.quarkus.platform:quarkus-maven-plugin:2.7.5.Final-redhat-00004:create -DprojectGroupId=io.quarkus.qe -DprojectArtifactId=amazon-lambda-http -DprojectVersion=1.0.0-SNAPSHOT -DplatformGroupId=com.redhat.quarkus.platform -DplatformArtifactId=quarkus-bom -Dextensions=amazon-lambda-http -DquarkusRegistryClient=false cd ./amazon-lambda-http mvn -Dmaven.repo. local =.../rh-quarkus-2.7.5.GA-maven-repository/maven-repository/ -Dquarkus-plugin.version=2.7.5.Final-redhat-00004 -Dquarkus.platform.group-id=com.redhat.quarkus.platform -Dquarkus.platform.artifact-id=quarkus-bom verify -Dquarkus.http.test-port=0 (Change Quarkus version as needed.)
    • ---

      https://github.com/quarkusio/quarkus/issues/23581

      [INFO] Running io.quarkus.qe.GreetingResourceTest
      2022-04-06 16:26:09,171 INFO  [org.jbo.threads] (main) JBoss Threads version 3.4.2.Final-redhat-00001
      2022-04-06 16:26:09,949 INFO  [io.qua.ama.lam.run.MockEventServer] (build-38) Mock Lambda Event Server Started
      2022-04-06 16:26:11,072 INFO  [io.qua.ama.lam.run.AbstractLambdaPollLoop] (Lambda Thread (TEST)) Listening on: http://localhost:8081/_lambda_/2018-06-01/runtime/invocation/next
      2022-04-06 16:26:11,181 INFO  [io.quarkus] (main) Quarkus 2.7.5.Final-redhat-00004 on JVM started in 2.636s. 
      2022-04-06 16:26:11,182 INFO  [io.quarkus] (main) Profile test activated. 
      2022-04-06 16:26:11,182 INFO  [io.quarkus] (main) Installed features: [amazon-lambda, cdi, resteasy, security, smallrye-context-propagation, vertx]
      [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.703 s <<< FAILURE! - in io.quarkus.qe.GreetingResourceTest
      [ERROR] io.quarkus.qe.GreetingResourceTest.testHelloEndpoint  Time elapsed: 0.689 s  <<< ERROR!
      java.lang.IllegalArgumentException: Port must be greater than 0
      	at io.quarkus.qe.GreetingResourceTest.testHelloEndpoint(GreetingResourceTest.java:14)
      

              Unassigned Unassigned
              rhn-support-jsmrcka Josef Smrcka (Inactive)
              Michal Vavrik Michal Vavrik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: