From 717fb7a9f964bc1f5e3ac0155502f45aaada2e4e Mon Sep 17 00:00:00 2001 From: Markus Jung Date: Mon, 16 Sep 2024 16:22:33 +0200 Subject: [PATCH] attempt to fix flaky openapi TCK by using random port (cherry picked from commit 615cc37e2f1eaf3b720a4aaff2c7994ddad8c004) --- tck/microprofile-tck/openapi/pom.xml | 33 ++++++++++++++++++- .../openapi/src/test/resources/arquillian.xml | 6 ++-- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/tck/microprofile-tck/openapi/pom.xml b/tck/microprofile-tck/openapi/pom.xml index fcbefacd7ee..a5d5f473839 100644 --- a/tck/microprofile-tck/openapi/pom.xml +++ b/tck/microprofile-tck/openapi/pom.xml @@ -29,7 +29,38 @@ TomEE :: TCK :: MicroProfile Open API TCK + + + src/test/resources + true + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + + reserve-tomee-port + + generate-test-resources + + reserve-network-port + + + + + tomee.port + + + + + + maven-surefire-plugin @@ -39,7 +70,7 @@ org.eclipse.microprofile.openapi:microprofile-openapi-tck - http://localhost:50290 + http://localhost:${tomee.port} diff --git a/tck/microprofile-tck/openapi/src/test/resources/arquillian.xml b/tck/microprofile-tck/openapi/src/test/resources/arquillian.xml index 5fea36e73bf..da8ceea88e6 100644 --- a/tck/microprofile-tck/openapi/src/test/resources/arquillian.xml +++ b/tck/microprofile-tck/openapi/src/test/resources/arquillian.xml @@ -23,7 +23,7 @@ http://jboss.org/schema/arquillian/arquillian_1_0.xsd"> - 50290 + ${tomee.port} -1 -1 microprofile @@ -39,7 +39,7 @@ - 50290 + ${tomee.port} -1 -1 plus @@ -55,7 +55,7 @@ - 50290 + ${tomee.port} -1 -1 plume