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

Added Elytron Creaper commands #168

Merged
merged 2 commits into from
Mar 27, 2018
Merged

Conversation

olukas
Copy link
Collaborator

@olukas olukas commented Mar 22, 2018

Huge PR with Elytron Creaper commands. It was developed by Martin Choma, Ondrej Kotek, Josef Cacek, Jan Tymel, Hynek Svabek and me. We made code review of every code change during development phase.
It contained about 150 commits and most commands were changed a lot of times during development (because their related resources in WildFly were changed a lot of times). Since it contains only new commands we decided that history of their development is not so relevant => we squash them into one PR.

import org.wildfly.extras.creaper.core.online.operations.Values;
import org.wildfly.extras.creaper.core.online.operations.admin.Administration;

public abstract class AbstractAddCustom implements OnlineCommand, OfflineCommand {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it need to be public?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is extended by classes in different packages. I believe that DesignPatterns:FriendPackages can be use somehow, but I do not think it would be helpful here. Moreover it can be extended by some Creaper command for any Elytron custom resources in any different project in the future.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yea, sure, it's fine like this.

import org.wildfly.extras.creaper.core.online.operations.Operations;
import org.wildfly.extras.creaper.core.online.operations.admin.Administration;

public final class AddExtensionAndSubsystem implements OnlineCommand {
Copy link
Contributor

Choose a reason for hiding this comment

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

Boooo! This should have been called AddElytron....

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

+1, thanks, I will fix it; however I think whether to use AddElytronExtensionAndSubsystem or just AddElytron. WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

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

AddElytron sounds good to me.

* </p>
*
*/
public class CreateServerSSLContext implements OnlineCommand {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't be final?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

+1, thanks

@Ladicek
Copy link
Contributor

Ladicek commented Mar 22, 2018

OK, I just took a look at a couple of files, looks good :-D

@olukas olukas force-pushed the elytron-squashed branch from 3fe6380 to ce725d3 Compare March 23, 2018 08:33
@olukas
Copy link
Collaborator Author

olukas commented Mar 23, 2018

Travis CI has time limit 50 minutes for job [1]. It is exceeded after adding Elytron commands tests (yay, as mchoma said, we officially overtested Creaper :) ). I split tests execution in Travis CI to Elytron and non-Elytron tests, see .travis.yml and last Travis CI results for this PR for more details.

[1] https://docs.travis-ci.com/user/customizing-the-build/#Build-Timeouts

@Ladicek
Copy link
Contributor

Ladicek commented Mar 23, 2018

we officially overtested Creaper

🤣 🤣 🤣

@olukas olukas requested a review from mchoma March 23, 2018 12:30
@olukas
Copy link
Collaborator Author

olukas commented Mar 23, 2018

Failed test cases in Travis (JournalStoreVsJdbcStoreOnlineTest and ChangeJdbcAttributesOnlineTest) are caused by issue #166.

@olukas olukas merged commit cd48eee into wildfly-extras:master Mar 27, 2018
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.

3 participants