Skip to content

Commit

Permalink
Add recent WildFly versions to facilitate transformer tests for commu…
Browse files Browse the repository at this point in the history
…nity features.
  • Loading branch information
pferraro committed Oct 17, 2024
1 parent 1ab1249 commit 2f48df6
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@
*/
package org.jboss.as.model.test;

import java.util.EnumSet;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Properties;
import java.util.Set;

import org.jboss.as.controller.ModelVersion;
import org.jboss.as.version.Stability;
import org.wildfly.legacy.version.LegacyVersions;


Expand All @@ -21,7 +24,13 @@ public enum ModelTestControllerVersion {
EAP_7_4_0("7.4.0.GA-redhat-00005", true, "23.0.0", "15.0.2.Final-redhat-00001", "7.4.0"),
EAP_8_0_0("8.0.0.GA-redhat-00011", true, "29.0.0", "21.0.5.Final-redhat-00001", "8.0.0"),
EAP_XP_4("4.0.0.GA-redhat-00003", true, "23.0.0", "15.0.26.Final-redhat-00001", "xp4"),
EAP_XP_5("5.0.0.GA-redhat-00005", true, "29.0.0", "21.0.5.Final-redhat-00001", "xp5");
EAP_XP_5("5.0.0.GA-redhat-00005", true, "29.0.0", "21.0.5.Final-redhat-00001", "xp5"),

WILDFLY_31_0_0("31.0.0", "23.0.0"), // First version containing Stability distinction
WILDFLY_32_0_0("32.0.0", "24.0.0"),
WILDFLY_33_0_0("33.0.0", "25.0.0"),
WILDFLY_34_0_0("34.0.0", "26.0.0"),
;

private final String mavenGavVersion;
private final String testControllerVersion;
Expand All @@ -36,6 +45,10 @@ public enum ModelTestControllerVersion {
private final String artifactIdPrefix;
private final Map<String, ModelVersion> subsystemModelVersions = new LinkedHashMap<>();

ModelTestControllerVersion(String version, String coreVersion) {
this(version + ".Final", false, version, coreVersion + ".Final", version);
}

ModelTestControllerVersion(String mavenGavVersion, boolean eap, String testControllerVersion, String realVersionName) {
this(mavenGavVersion, eap, testControllerVersion, null, realVersionName);
}
Expand Down Expand Up @@ -115,6 +128,10 @@ public String getArtifactIdPrefix(){
return artifactIdPrefix;
}

public Set<Stability> getTestableStabilitySet() {
return this.isEap() ? EnumSet.of(Stability.DEFAULT) : EnumSet.of(Stability.DEFAULT, Stability.COMMUNITY);
}

public interface CurrentVersion {
String VERSION = VersionLocator.VERSION;
}
Expand Down

0 comments on commit 2f48df6

Please sign in to comment.