From 3e97a95a6dcbe74ff89d1bde65c256453a4132de Mon Sep 17 00:00:00 2001 From: Yeray Borges Date: Fri, 4 Oct 2024 11:24:22 +0100 Subject: [PATCH] [WFCORE-7015] Fix ProvisioningConsistencyTestCase failure when -Drelease is set Jira issue: https://issues.redhat.com/browse/WFCORE-7015 --- build/pom.xml | 2 +- dist/pom.xml | 4 ++-- pom.xml | 3 ++- testsuite/manualmode/pom.xml | 2 +- .../provisioning/ProvisioningConsistencyTestCase.java | 6 +----- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/build/pom.xml b/build/pom.xml index c4afe020bb4..ca0ef7b4a80 100644 --- a/build/pom.xml +++ b/build/pom.xml @@ -30,7 +30,7 @@ - ${server.output.dir.prefix}-${project.version} + ${server.output.dir.prefix}-${wildfly.core.release.version} org.jboss.galleon diff --git a/dist/pom.xml b/dist/pom.xml index e8151b850e2..9ca962ddc87 100644 --- a/dist/pom.xml +++ b/dist/pom.xml @@ -33,6 +33,7 @@ + ${server.output.dir.prefix}-${wildfly.core.release.version} org.jboss.galleon @@ -44,7 +45,7 @@ provision - ${basedir}/target/${project.build.finalName} + ${project.build.directory}/${project.build.finalName} false ${galleon.log.time} true @@ -73,7 +74,6 @@ - ${server.output.dir.prefix}-${wildfly.core.release.version} org.apache.maven.plugins diff --git a/pom.xml b/pom.xml index 2fd219e5280..5582e366fe5 100644 --- a/pom.xml +++ b/pom.xml @@ -136,7 +136,8 @@ 2.4.1.Final 2.5 1.1.0 - dist/target/${server.output.dir.prefix}-${wildfly.core.release.version} + build/target/${server.output.dir.prefix}-${wildfly.core.release.version} + dist/target/${server.output.dir.prefix}-${wildfly.core.release.version} ${project.version} git@github.com:wildfly/wildfly-core.git diff --git a/testsuite/manualmode/pom.xml b/testsuite/manualmode/pom.xml index 8d94751002b..870fe549444 100644 --- a/testsuite/manualmode/pom.xml +++ b/testsuite/manualmode/pom.xml @@ -294,7 +294,7 @@ ${basedir}/target/test-classes/ssl/jbossClient.keystore clientPassword clientPassword - ${project.version} + ${wildfly.dist.output.dir} ${wildfly.home} diff --git a/testsuite/manualmode/src/test/java/org/jboss/as/test/manualmode/provisioning/ProvisioningConsistencyTestCase.java b/testsuite/manualmode/src/test/java/org/jboss/as/test/manualmode/provisioning/ProvisioningConsistencyTestCase.java index 3b0f90bcb4b..361f1be2c82 100644 --- a/testsuite/manualmode/src/test/java/org/jboss/as/test/manualmode/provisioning/ProvisioningConsistencyTestCase.java +++ b/testsuite/manualmode/src/test/java/org/jboss/as/test/manualmode/provisioning/ProvisioningConsistencyTestCase.java @@ -47,7 +47,7 @@ public class ProvisioningConsistencyTestCase { private static final Path INSTALLATION_METADATA = CHANNEL_INSTALLATION.resolve(INSTALLATION); private static final Path PROVISIONING_XML = CHANNEL_INSTALLATION.resolve(PROVISIONING); private static final Path SOURCE_HOME = JBOSS_HOME.getParent().getParent().getParent().getParent(); - private static final Path DIST_INSTALLATION = SOURCE_HOME.resolve("dist").resolve("target").resolve(getDistDir()); + private static final Path DIST_INSTALLATION = SOURCE_HOME.resolve(System.getProperty("dist.output.dir")); private static Path resolveJBossHome() { try { @@ -57,10 +57,6 @@ private static Path resolveJBossHome() { } } - private static String getDistDir() { - return "wildfly-core-dist-" + System.getProperty("standard.dist.version"); - } - private static File getDistFile(Path channelPath, boolean exists, boolean directory, List errors) { Path relative = CHANNEL_INSTALLATION.relativize(channelPath); System.out.println("Getting dist file for relative path " + relative);