ARTEMIS-4212 add compatibility tests

This commit is contained in:
Justin Bertram 2023-05-05 12:03:12 -05:00 committed by clebertsuconic
parent c5d872575e
commit 5e32a1ab62
3 changed files with 51 additions and 24 deletions

View File

@ -409,30 +409,53 @@
</libList>
<file>${basedir}/target/ARTEMIS-2_17_0.cp</file>
</configuration>
</execution> <execution>
<phase>compile</phase>
<goals>
<goal>dependency-scan</goal>
</goals>
<id>2_18_0-check</id>
<configuration>
<optional>true</optional>
<libListWithDeps>
<arg>org.apache.activemq:artemis-jms-server:2.18.0</arg>
<arg>org.apache.activemq:artemis-jms-client:2.18.0</arg>
<arg>org.apache.activemq:artemis-cli:2.18.0</arg>
<arg>org.apache.activemq:artemis-hornetq-protocol:2.18.0</arg>
<arg>org.apache.activemq:artemis-amqp-protocol:2.18.0</arg>
<arg>org.apache.activemq:artemis-hornetq-protocol:2.18.0</arg>
<arg>org.apache.groovy:groovy-all:pom:${groovy.version}</arg>
<arg>org.jboss.marshalling:jboss-marshalling-river:2.0.9.Final</arg>
</libListWithDeps>
<libList>
<arg>org.apache.activemq.tests:compatibility-tests:${project.version}</arg>
</libList>
<file>${basedir}/target/ARTEMIS-2_18_0.cp</file>
</configuration>
</execution>
</execution>
<execution>
<phase>compile</phase>
<goals>
<goal>dependency-scan</goal>
</goals>
<id>2_18_0-check</id>
<configuration>
<optional>true</optional>
<libListWithDeps>
<arg>org.apache.activemq:artemis-jms-server:2.18.0</arg>
<arg>org.apache.activemq:artemis-jms-client:2.18.0</arg>
<arg>org.apache.activemq:artemis-cli:2.18.0</arg>
<arg>org.apache.activemq:artemis-hornetq-protocol:2.18.0</arg>
<arg>org.apache.activemq:artemis-amqp-protocol:2.18.0</arg>
<arg>org.apache.activemq:artemis-hornetq-protocol:2.18.0</arg>
<arg>org.apache.groovy:groovy-all:pom:${groovy.version}</arg>
<arg>org.jboss.marshalling:jboss-marshalling-river:2.0.9.Final</arg>
</libListWithDeps>
<libList>
<arg>org.apache.activemq.tests:compatibility-tests:${project.version}</arg>
</libList>
<file>${basedir}/target/ARTEMIS-2_18_0.cp</file>
</configuration>
</execution>
<execution>
<phase>compile</phase>
<goals>
<goal>dependency-scan</goal>
</goals>
<id>2_28_0-check</id>
<configuration>
<optional>true</optional>
<libListWithDeps>
<arg>org.apache.activemq:artemis-jms-server:2.28.0</arg>
<arg>org.apache.activemq:artemis-cli:2.28.0</arg>
<arg>org.apache.activemq:artemis-jms-client:2.28.0</arg>
<arg>org.apache.activemq:artemis-hornetq-protocol:2.28.0</arg>
<arg>org.apache.activemq:artemis-amqp-protocol:2.28.0</arg>
<arg>org.apache.groovy:groovy-all:pom:${groovy.version}</arg>
</libListWithDeps>
<libList>
<arg>org.apache.activemq.tests:compatibility-tests:${project.version}</arg>
</libList>
<file>${basedir}/target/ARTEMIS-2_28_0.cp</file>
</configuration>
</execution>
<execution>
<phase>compile</phase>

View File

@ -42,6 +42,7 @@ public class GroovyRun {
public static final String TWO_SEVENTEEN_ZERO = "ARTEMIS-2_17_0";
public static final String TWO_EIGHTEEN_ZERO = "ARTEMIS-2_18_0";
public static final String TWO_TWENTYTWO_ZERO = "ARTEMIS-2_22_0";
public static final String TWO_TWENTYEIGHT_ZERO = "ARTEMIS-2_28_0";
public static final String HORNETQ_235 = "HORNETQ-235";
public static final String HORNETQ_247 = "HORNETQ-247";
public static final String AMQ_5_11 = "AMQ_5_11";

View File

@ -36,6 +36,7 @@ import static org.apache.activemq.artemis.tests.compatibility.GroovyRun.ONE_FIVE
import static org.apache.activemq.artemis.tests.compatibility.GroovyRun.ONE_FOUR;
import static org.apache.activemq.artemis.tests.compatibility.GroovyRun.SNAPSHOT;
import static org.apache.activemq.artemis.tests.compatibility.GroovyRun.TWO_FOUR;
import static org.apache.activemq.artemis.tests.compatibility.GroovyRun.TWO_TWENTYEIGHT_ZERO;
@RunWith(Parameterized.class)
public class MeshTest extends ServerBase {
@ -60,6 +61,8 @@ public class MeshTest extends ServerBase {
combinations.addAll(combinatory(SNAPSHOT, new Object[]{HORNETQ_235}, new Object[]{ONE_FIVE, SNAPSHOT, HORNETQ_235}, new Object[]{ONE_FIVE, SNAPSHOT, HORNETQ_235}));
combinations.addAll(combinatory(SNAPSHOT, new Object[]{HORNETQ_247}, new Object[]{SNAPSHOT, HORNETQ_247}, new Object[]{SNAPSHOT, HORNETQ_247}));
combinations.add(new Object[]{SNAPSHOT, ONE_FOUR, ONE_FOUR});
combinations.add(new Object[]{SNAPSHOT, TWO_TWENTYEIGHT_ZERO, TWO_TWENTYEIGHT_ZERO});
combinations.add(new Object[]{TWO_TWENTYEIGHT_ZERO, SNAPSHOT, SNAPSHOT});
return combinations;
}