This is an automated email from the ASF dual-hosted git repository.

clebertsuconic pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq-artemis.git

commit 10b6ab9bd3c10c202f566a4f0d55de3330e3edfe
Author: Clebert Suconic <[email protected]>
AuthorDate: Tue Aug 13 15:47:44 2024 -0400

    ARTEMIS-4986 Providing a test that will look for the distribution from a 
System Variable
    
    if you define TEST_ROLLED_DISTRIBUTION=your artemis home
    
    testRollUpgrade_Provided_Distribution will execute the rolling upgrade from 
that distribution
---
 .../tests/compatibility/distribution/RollingUpgradeTest.java   | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git 
a/tests/compatibility-tests/src/test/java/org/apache/activemq/artemis/tests/compatibility/distribution/RollingUpgradeTest.java
 
b/tests/compatibility-tests/src/test/java/org/apache/activemq/artemis/tests/compatibility/distribution/RollingUpgradeTest.java
index cdf4b39a8c..1c6cf2870e 100644
--- 
a/tests/compatibility-tests/src/test/java/org/apache/activemq/artemis/tests/compatibility/distribution/RollingUpgradeTest.java
+++ 
b/tests/compatibility-tests/src/test/java/org/apache/activemq/artemis/tests/compatibility/distribution/RollingUpgradeTest.java
@@ -35,6 +35,7 @@ import org.apache.activemq.artemis.util.ServerUtil;
 import org.apache.activemq.artemis.utils.FileUtil;
 import org.apache.activemq.artemis.utils.RealServerTestBase;
 import org.apache.activemq.artemis.utils.SpawnedVMSupport;
+import org.apache.activemq.artemis.utils.TestParameters;
 import org.apache.activemq.artemis.utils.Wait;
 import org.apache.activemq.artemis.utils.cli.helper.HelperBase;
 import org.junit.jupiter.api.Test;
@@ -188,6 +189,15 @@ public class RollingUpgradeTest extends RealServerTestBase 
{
       testRollUpgrade(new File(TWO_THIRTY_SIX));
    }
 
+   // Define a System Property TEST_ROLLED_DISTRIBUTION towards the Artemis 
Home of your choice and this will
+   // perform the tests towards that distribution
+   @Test
+   public void testRollUpgrade_Provided_Distribution() throws Exception {
+      String distribution = TestParameters.testProperty("ROLLED", 
"DISTRIBUTION", null);
+      assumeTrue(distribution != null);
+      testRollUpgrade(new File(distribution));
+   }
+
    private void testRollUpgrade(File artemisHome) throws Exception {
       assumeTrue(artemisHome.exists());
       createServers(artemisHome);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to