Skip to content

Commit

Permalink
add WildFly 24
Browse files Browse the repository at this point in the history
  • Loading branch information
simkam committed Jun 16, 2022
1 parent 7049a21 commit b8f890d
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 4 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,29 @@ Dependencies for `creaper-commands`:
<version>15.0.1.Final</version>
</dependency>

#### WildFly 24 (24.0.1) (based on WildFly Core 16)

Dependencies for `creaper-core`:

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

Dependencies for `creaper-commands`:

<dependency>
<groupId>org.wildfly.core</groupId>
<artifactId>wildfly-patching</artifactId>
<version>16.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 @@ -90,6 +90,8 @@ public final class ServerVersion {
public static final ServerVersion VERSION_15_0_0 = new ServerVersion(15, 0, 0);
/** WF 23.0.x.Final */
public static final ServerVersion VERSION_16_0_0 = new ServerVersion(16, 0, 0);
/** WF 24.0.x.Final */
public static final ServerVersion VERSION_17_0_0 = new ServerVersion(17, 0, 0);

private static final ServerVersion[] KNOWN_VERSIONS = {
VERSION_0_0_0,
Expand Down Expand Up @@ -119,7 +121,8 @@ public final class ServerVersion {
VERSION_13_0_0,
VERSION_14_0_0,
VERSION_15_0_0,
VERSION_16_0_0
VERSION_16_0_0,
VERSION_17_0_0
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public void referenceEquality() {
assertSame(ServerVersion.VERSION_14_0_0, ServerVersion.from(14, 0, 0));
assertSame(ServerVersion.VERSION_15_0_0, ServerVersion.from(15, 0, 0));
assertSame(ServerVersion.VERSION_16_0_0, ServerVersion.from(16, 0, 0));
assertSame(ServerVersion.VERSION_17_0_0, ServerVersion.from(17, 0, 0));

assertNotSame(ServerVersion.from(42, 42, 42), ServerVersion.from(42, 42, 42));
}
Expand Down Expand Up @@ -73,6 +74,7 @@ public void equality() {
assertSame(ServerVersion.VERSION_14_0_0, ServerVersion.from(14, 0, 0));
assertSame(ServerVersion.VERSION_15_0_0, ServerVersion.from(15, 0, 0));
assertSame(ServerVersion.VERSION_16_0_0, ServerVersion.from(16, 0, 0));
assertSame(ServerVersion.VERSION_17_0_0, ServerVersion.from(17, 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 @@ -60,6 +60,7 @@ public class OfflineServerVersionTest {
private static final String WFLY21_ROOT = "14.0";
private static final String WFLY22_ROOT = "15.0";
private static final String WFLY23_ROOT = "16.0";
private static final String WFLY24_ROOT = "17.0";

@Rule
public final TemporaryFolder tmp = new TemporaryFolder();
Expand Down Expand Up @@ -164,6 +165,11 @@ public void discoverStandaloneXml_wfly23() throws IOException {
test(ServerVersion.VERSION_16_0_0, STANDALONE_XML, WFLY23_ROOT, EAP7_LOGGING, EAP7_EE);
}

@Test
public void discoverStandaloneXml_wfly24() throws IOException {
test(ServerVersion.VERSION_17_0_0, STANDALONE_XML, WFLY24_ROOT, EAP7_LOGGING, EAP7_EE);
}

@Test
public void discoverHostXml_eap6() throws IOException {
test(ServerVersion.VERSION_1_7_0, HOST_XML, EAP6_ROOT, EAP6_LOGGING, EAP6_EE);
Expand Down Expand Up @@ -239,6 +245,11 @@ public void discoverHostXml_wfly23() throws IOException {
test(ServerVersion.VERSION_16_0_0, HOST_XML, WFLY23_ROOT, EAP7_LOGGING, EAP7_EE);
}

@Test
public void discoverHostXml_wfly24() throws IOException {
test(ServerVersion.VERSION_17_0_0, HOST_XML, WFLY24_ROOT, EAP7_LOGGING, EAP7_EE);
}

@Test
public void discoverDomainXml_eap6() throws IOException {
test(ServerVersion.VERSION_1_7_0, DOMAIN_XML, EAP6_ROOT, EAP6_LOGGING, EAP6_EE);
Expand Down Expand Up @@ -314,6 +325,11 @@ public void discoverDomainXml_wfly23() throws IOException {
test(ServerVersion.VERSION_16_0_0, DOMAIN_XML, WFLY23_ROOT, EAP7_LOGGING, EAP7_EE);
}

@Test
public void discoverDomainXml_wfly24() throws IOException {
test(ServerVersion.VERSION_17_0_0, DOMAIN_XML, WFLY24_ROOT, EAP7_LOGGING, EAP7_EE);
}

private void test(ServerVersion expected, String xmlPattern,
String rootVersion, String loggingVersion, String eeVersion) throws IOException {
String xml = xmlPattern
Expand Down
63 changes: 60 additions & 3 deletions testsuite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
<version.wildfly23>23.0.2.Final</version.wildfly23>
<version.wildfly23.core>15.0.1.Final</version.wildfly23.core>
<version.wildfly23.arquillian>3.0.1.Final</version.wildfly23.arquillian>
<version.wildfly24>24.0.1.Final</version.wildfly24>
<version.wildfly24.core>16.0.1.Final</version.wildfly24.core>
<version.wildfly24.arquillian>3.0.1.Final</version.wildfly24.arquillian>


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

<wildfly24.applicationServer.groupId>org.wildfly</wildfly24.applicationServer.groupId>
<wildfly24.applicationServer.artifactId>wildfly-dist</wildfly24.applicationServer.artifactId>
<wildfly24.applicationServer.version>${version.wildfly24}</wildfly24.applicationServer.version>
<wildfly24.arquillianContainer.groupId>org.wildfly.arquillian</wildfly24.arquillianContainer.groupId>
<wildfly24.arquillianContainer.artifactId>wildfly-arquillian-container-managed</wildfly24.arquillianContainer.artifactId>
<wildfly24.arquillianContainer.version>${version.wildfly24.arquillian}</wildfly24.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 @@ -977,9 +987,6 @@

<profile>
<id>wildfly23</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>

<properties>
<version.java>1.8</version.java>
Expand Down Expand Up @@ -1025,5 +1032,55 @@
</dependencies>
</profile>

<profile>
<id>wildfly24</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>

<properties>
<version.java>1.8</version.java>

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

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

<tests.ignoredCategory>${ignoredCategory.wildfly11}</tests.ignoredCategory>
<tests.specialJvmArgs>${specialJvmArgs.wildfly}</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.wildfly24.core}</version>
</dependency>
<dependency>
<groupId>org.wildfly.core</groupId>
<artifactId>wildfly-cli</artifactId>
<version>${version.wildfly24.core}</version>
</dependency>
<dependency>
<groupId>org.wildfly.core</groupId>
<artifactId>wildfly-patching</artifactId>
<version>${version.wildfly24.core}</version>
</dependency>
</dependencies>
</profile>

</profiles>
</project>

0 comments on commit b8f890d

Please sign in to comment.