Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add WildFly 25 #210

Merged
merged 4 commits into from
Jan 6, 2023
Merged

add WildFly 25 #210

merged 4 commits into from
Jan 6, 2023

Conversation

simkam
Copy link
Collaborator

@simkam simkam commented Jun 16, 2022

intentionally adding only a single WF version per PR to leverage GH CI

depends on #206, #207, #208 and #209

@simkam simkam mentioned this pull request Jun 16, 2022
@simkam simkam marked this pull request as draft June 17, 2022 15:05
@simkam simkam marked this pull request as ready for review January 4, 2023 13:18
@simkam simkam marked this pull request as draft January 4, 2023 22:38
…WildFly 25 and above

legacy security was removed in WildFly 25
@simkam simkam requested review from jstourac and mchoma January 5, 2023 13:41
@simkam simkam mentioned this pull request Jan 5, 2023
@simkam simkam marked this pull request as ready for review January 5, 2023 14:44
= ManagementClient.online(OnlineOptions.standalone().localDefault().build()).version();
Assume.assumeFalse("Legacy security was removed in WildFly 25.",
serverVersion.greaterThanOrEqualTo(ServerVersion.VERSION_18_0_0));
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a proposal - wouldn't be better to create some common function for this and use it in all relevant places instead of having the very same code on multiple places? 👼

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking about it but in the end, I followed the same convention as it is in elytron commands, there is a similar check in every elytron command.

@@ -43,6 +44,10 @@ private AddAuthorizationModule(Builder builder) {
@Override
public void apply(OnlineCommandContext ctx) throws CliException, CommandFailedException, IOException,
TimeoutException, InterruptedException {
if (ctx.version.greaterThanOrEqualTo(ServerVersion.VERSION_18_0_0)) {
throw new AssertionError("Legacy security was removed in WildFly 25.");
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, having some common function would be probably nicer. But I don't insist.

@jstourac
Copy link
Collaborator

jstourac commented Jan 5, 2023

Just two comments but LGTM otherwise :)

@jstourac jstourac merged commit 6ddb21b into wildfly-extras:main Jan 6, 2023
@simkam simkam deleted the wf25 branch February 2, 2023 18:14
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.

2 participants