Skip to content

Commit

Permalink
add WildFly 32
Browse files Browse the repository at this point in the history
  • Loading branch information
simkam committed Sep 9, 2024
1 parent d3b2625 commit 191f610
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 5 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,29 @@ Dependencies for `creaper-commands`:
<version>23.0.3.Final</version>
</dependency>

#### WildFly 32 (32.0.1) (based on WildFly Core 24)

Dependencies for `creaper-core`:

<dependency>
<groupId>org.wildfly.core</groupId>
<artifactId>wildfly-controller-client</artifactId>
<version>24.0.1.Final</version>
</dependency>
<dependency>
<groupId>org.wildfly.core</groupId>
<artifactId>wildfly-cli</artifactId>
<version>24.0.1.Final</version>
</dependency>

Dependencies for `creaper-commands`:

<dependency>
<groupId>org.wildfly.core</groupId>
<artifactId>wildfly-patching</artifactId>
<version>24.0.1.Final</version>
</dependency>

### Transitive Dependencies

These are the dependencies that you will get transitively when you depend
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ public final class ServerVersion {
public static final ServerVersion VERSION_23_0_0 = new ServerVersion(23, 0, 0);
/** WF 31.0.x.Final */
public static final ServerVersion VERSION_24_0_0 = new ServerVersion(24, 0, 0);
/** WF 32.0.x.Final */
public static final ServerVersion VERSION_25_0_0 = new ServerVersion(25, 0, 0);

private static final ServerVersion[] KNOWN_VERSIONS = {
VERSION_0_0_0,
Expand Down Expand Up @@ -143,7 +145,8 @@ public final class ServerVersion {
VERSION_21_0_0,
VERSION_22_0_0,
VERSION_23_0_0,
VERSION_24_0_0
VERSION_24_0_0,
VERSION_25_0_0
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public void referenceEquality() {
assertSame(ServerVersion.VERSION_22_0_0, ServerVersion.from(22, 0, 0));
assertSame(ServerVersion.VERSION_23_0_0, ServerVersion.from(23, 0, 0));
assertSame(ServerVersion.VERSION_24_0_0, ServerVersion.from(24, 0, 0));
assertSame(ServerVersion.VERSION_25_0_0, ServerVersion.from(25, 0, 0));

assertNotSame(ServerVersion.from(42, 42, 42), ServerVersion.from(42, 42, 42));
}
Expand Down Expand Up @@ -89,6 +90,7 @@ public void equality() {
assertSame(ServerVersion.VERSION_22_0_0, ServerVersion.from(22, 0, 0));
assertSame(ServerVersion.VERSION_23_0_0, ServerVersion.from(23, 0, 0));
assertSame(ServerVersion.VERSION_24_0_0, ServerVersion.from(24, 0, 0));
assertSame(ServerVersion.VERSION_25_0_0, ServerVersion.from(25, 0, 0));

assertEquals(ServerVersion.from(42, 42, 42), ServerVersion.from(42, 42, 42));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public class OfflineServerVersionTest {
private static final String WFLY29_ROOT = "22.0";
private static final String WFLY30_ROOT = "23.0";
private static final String WFLY31_ROOT = "24.0";
private static final String WFLY32_ROOT = "25.0";

private static final String COMMUNITY = "community";
private static final String PREVIEW = "preview";
Expand Down Expand Up @@ -218,6 +219,11 @@ public void discoverStandaloneXml_wfly31() throws IOException {
test(ServerVersion.VERSION_24_0_0, STANDALONE_XML, WFLY31_ROOT, EAP7_LOGGING, EAP8_EE);
}

@Test
public void discoverStandaloneXml_wfly32() throws IOException {
test(ServerVersion.VERSION_25_0_0, STANDALONE_XML, WFLY32_ROOT, EAP7_LOGGING, EAP8_EE);
}

public void discoverStandaloneXml_wfly34_community() throws IOException {
test(ServerVersion.VERSION_20_0_0, STANDALONE_XML, COMMUNITY, WFLY27_ROOT, EAP7_LOGGING, EAP8_EE);
}
Expand Down Expand Up @@ -349,6 +355,11 @@ public void discoverHostXml_wfly31() throws IOException {
test(ServerVersion.VERSION_24_0_0, HOST_XML, WFLY31_ROOT, EAP7_LOGGING, EAP8_EE);
}

@Test
public void discoverHostXml_wfly32() throws IOException {
test(ServerVersion.VERSION_25_0_0, HOST_XML, WFLY32_ROOT, EAP7_LOGGING, EAP8_EE);
}

public void discoverHostXml_wfly34_community() throws IOException {
test(ServerVersion.VERSION_20_0_0, HOST_XML, COMMUNITY, WFLY27_ROOT, EAP7_LOGGING, EAP8_EE);
}
Expand Down Expand Up @@ -480,6 +491,11 @@ public void discoverDomainXml_wfly31() throws IOException {
test(ServerVersion.VERSION_24_0_0, DOMAIN_XML, WFLY31_ROOT, EAP7_LOGGING, EAP8_EE);
}

@Test
public void discoverDomainXml_wfly32() throws IOException {
test(ServerVersion.VERSION_25_0_0, DOMAIN_XML, WFLY32_ROOT, EAP7_LOGGING, EAP8_EE);
}

public void discoverDomainXml_wfly34_community() throws IOException {
test(ServerVersion.VERSION_20_0_0, DOMAIN_XML, COMMUNITY, WFLY27_ROOT, EAP7_LOGGING, EAP8_EE);
}
Expand Down
63 changes: 59 additions & 4 deletions testsuite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@
<version.wildfly31>31.0.1.Final</version.wildfly31>
<version.wildfly31.core>23.0.3.Final</version.wildfly31.core>
<version.wildfly31.arquillian>5.0.1.Final</version.wildfly31.arquillian>
<version.wildfly32>32.0.1.Final</version.wildfly32>
<version.wildfly32.core>24.0.1.Final</version.wildfly32.core>
<version.wildfly32.arquillian>5.0.1.Final</version.wildfly32.arquillian>


<managementPort.wildfly>9990</managementPort.wildfly>
Expand Down Expand Up @@ -247,6 +250,13 @@
<wildfly31.arquillianContainer.artifactId>wildfly-arquillian-container-managed</wildfly31.arquillianContainer.artifactId>
<wildfly31.arquillianContainer.version>${version.wildfly31.arquillian}</wildfly31.arquillianContainer.version>

<wildfly32.applicationServer.groupId>org.wildfly</wildfly32.applicationServer.groupId>
<wildfly32.applicationServer.artifactId>wildfly-dist</wildfly32.applicationServer.artifactId>
<wildfly32.applicationServer.version>${version.wildfly32}</wildfly32.applicationServer.version>
<wildfly32.arquillianContainer.groupId>org.wildfly.arquillian</wildfly32.arquillianContainer.groupId>
<wildfly32.arquillianContainer.artifactId>wildfly-arquillian-container-managed</wildfly32.arquillianContainer.artifactId>
<wildfly32.arquillianContainer.version>${version.wildfly32.arquillian}</wildfly32.arquillianContainer.version>

<!-- defined in profiles "wildfly10", "wildfly11", "wildfly12", "wildfly13", "wildfly14", "wildfly15",
"wildfly16", "wildfly17", "wildfly18", "wildfly19" and "wildfly20" below -->
<applicationServer.groupId>MUST-BE-DEFINED</applicationServer.groupId>
Expand Down Expand Up @@ -1389,10 +1399,6 @@

<profile>
<id>wildfly31</id>
<activation>
<!-- Note: WildFly 27+ doesn't support JDK 1.8 anymore -->
<activeByDefault>true</activeByDefault>
</activation>

<properties>
<applicationServer.groupId>${wildfly31.applicationServer.groupId}</applicationServer.groupId>
Expand Down Expand Up @@ -1436,5 +1442,54 @@
</dependencies>
</profile>

<profile>
<id>wildfly32</id>
<activation>
<!-- Note: WildFly 27+ doesn't support JDK 1.8 anymore -->
<activeByDefault>true</activeByDefault>
</activation>

<properties>
<applicationServer.groupId>${wildfly32.applicationServer.groupId}</applicationServer.groupId>
<applicationServer.artifactId>${wildfly32.applicationServer.artifactId}</applicationServer.artifactId>
<applicationServer.version>${wildfly32.applicationServer.version}</applicationServer.version>
<applicationServer.managementPort>${managementPort.wildfly}</applicationServer.managementPort>

<arquillianContainer.groupId>${wildfly32.arquillianContainer.groupId}</arquillianContainer.groupId>
<arquillianContainer.artifactId>${wildfly32.arquillianContainer.artifactId}</arquillianContainer.artifactId>
<arquillianContainer.version>${wildfly32.arquillianContainer.version}</arquillianContainer.version>

<tests.ignoredCategory>${ignoredCategory.wildfly11}</tests.ignoredCategory>
<tests.specialJvmArgs />
</properties>

<dependencies>
<dependency>
<groupId>org.wildfly.extras.creaper</groupId>
<artifactId>creaper-core</artifactId>
</dependency>
<dependency>
<groupId>org.wildfly.extras.creaper</groupId>
<artifactId>creaper-commands</artifactId>
</dependency>

<dependency>
<groupId>org.wildfly.core</groupId>
<artifactId>wildfly-controller-client</artifactId>
<version>${version.wildfly32.core}</version>
</dependency>
<dependency>
<groupId>org.wildfly.core</groupId>
<artifactId>wildfly-cli</artifactId>
<version>${version.wildfly32.core}</version>
</dependency>
<dependency>
<groupId>org.wildfly.core</groupId>
<artifactId>wildfly-patching</artifactId>
<version>${version.wildfly32.core}</version>
</dependency>
</dependencies>
</profile>

</profiles>
</project>

0 comments on commit 191f610

Please sign in to comment.