Skip to content

Add mock discovery tests for WildFly 39, 40, and 41 - #742

Merged
robstryker merged 6 commits into
redhat-developer:masterfrom
robstryker:test-wf39-40-41-discovery
Aug 8, 2026
Merged

Add mock discovery tests for WildFly 39, 40, and 41#742
robstryker merged 6 commits into
redhat-developer:masterfrom
robstryker:test-wf39-40-41-discovery

Conversation

@robstryker

Copy link
Copy Markdown
Collaborator

Summary

  • Add mock server layouts for WildFly 39.0.1, 40.0.1, and 41.0.0 to verify they are correctly discovered by the existing WildFly 38+ (ServerBeanTypeWildflyPlus) adapter
  • No new server type definitions needed — the canHandleVersion catch-all logic correctly claims these versions since 38 is the highest registered adapter
  • Tests pass: JBossServerBeanLoaderTest goes from 45 to 48 parameterized cases (all green)

Test plan

  • mvn verify -pl runtimes/tests/org.jboss.tools.rsp.server.wildfly.test -am — 133 tests, 0 failures
  • CI validates the same on all matrix platforms

🤖 Generated with Claude Code

robstryker and others added 6 commits August 6, 2026 15:46
Verify that the existing WildFly 38+ server adapter correctly
discovers and claims WildFly 39.0.1, 40.0.1, and 41.0.0
installations via the ServerBeanTypeWildflyPlus catch-all
mechanism, without requiring new server type definitions.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The switch statement was missing cases for SERVER_WILDFLY_350 and
SERVER_WILDFLY_380, causing integration tests to fall through to
the WF 12 default and fail ServerHandle equality checks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Also fix getRuntimeById() which ignored its id parameter and
always filtered for the hardcoded WF 18 runtime id.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…uickstarts

WF 38 quickstarts require Java 17 to compile, but CI runs Java 11.
Configure maven-invoker-plugin with a javaHome property so the
quickstart builds can use a different JDK. Upgrade the plugin from
3.2.0 to 3.8.1 to fix compatibility with Maven 3.9.x. Update the
CI workflow to set up Java 17 alongside Java 11 and pass
-Dinvoker.javaHome to the build.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
WF 38 requires Java 17+ to run, but the RSP server and CI build
use Java 11. Add a server.vm.install.path property that the tests
pass as vm.install.path when creating and starting servers, so the
RSP launches WildFly with a different JDK than its own. CI sets
this to $JAVA_HOME_17_X64.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@robstryker
robstryker merged commit b64613b into redhat-developer:master Aug 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant