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

Open Liberty support #283

Merged
merged 13 commits into from
Sep 22, 2023

Conversation

gkwan-ibm
Copy link
Contributor

The changes include:

  • adding an openliberty profile in the pom.xml
  • adding 2 Open Liberty configuration files, server.xml and bootstrap.properties, under the src/main/liberty directory
  • updating the README.md for the instructions to run the openliberty profile

Note: no update for any Java, xml, and other files

If not merge to the master branch, suggest to create a new branch liberty-ee10.

gkwan-ibm and others added 3 commits September 8, 2023 15:45
* add VS Code instructions

* add VS Code instructions

* add VS Code instructions

* add VS Code instructions

* add VS Code instructions

* add VS Code instructions

* add VS Code instructions

* add VS Code instructions

* add VS Code instructions

* add VS Code instructions

* add VS Code instructions

* add VS Code instructions

* Update Open Liberty section of README.md

---------

Co-authored-by: Gilbert Kwan <gkwan@ca.ibm.com>
@m-reza-rahman m-reza-rahman changed the title Make the Cargo Tracker EE10 version to run on Open Liberty Open Liberty support Sep 17, 2023
@m-reza-rahman
Copy link
Contributor

m-reza-rahman commented Sep 17, 2023

How serious, complete, and well-tested is this PR? What about the Arquillian tests? Are those working? Why is there not something like this: https://hantsy.github.io/jakartaee9-starter-boilerplate/arq-openliberty.html?

pom.xml Outdated Show resolved Hide resolved
pom.xml Outdated Show resolved Hide resolved
pom.xml Show resolved Hide resolved
@m-reza-rahman
Copy link
Contributor

If this is a PR that isn’t really ready to review yet, can you switch to draft until it is please? Otherwise it’s really confusing what I am looking at. When it is ready, you can take it out or draft state.

@gkwan-ibm gkwan-ibm marked this pull request as draft September 19, 2023 18:35
@gkwan-ibm
Copy link
Contributor Author

How serious, complete, and well-tested is this PR? What about the Arquillian tests? Are those working? Why is there not something like this: https://hantsy.github.io/jakartaee9-starter-boilerplate/arq-openliberty.html?

The Arquillian test BookingServiceTest.java is not compatible with io.openliberty.arquillian:arquillian-liberty-managed-jakarta. Disabled it from the openliberty profile. Instead, added 3 integration tests at src/test/java/org/eclipse/cargotracker/rest directory. They can be run by Liberty dev mode, or by failsafe:integration-test goal when the app is running either started by payara or openliberty profile.

This PR was tested through payara and openlibery profiles. Let me know if need more to test.

@m-reza-rahman
Copy link
Contributor

m-reza-rahman commented Sep 19, 2023

We cannot have separate sets of tests per runtime. What is the specific issue with getting Arquillian working with Liberty?

@m-reza-rahman
Copy link
Contributor

With regards to testing, please manually test all application functionality to be working including batch processing - in addition
to getting all existing automated tests working properly (including Arquillian). No existing automated tests should be disabled. I will do so myself before I merge, but it is expected that no bugs are introduced.

@gkwan-ibm
Copy link
Contributor Author

Tested the following on Mac, Linux, and Windows

  • mvn clean package cargo:run
    • 29 unit tests passed
    • the application worked fine
  • mvn -P openliberty clean liberty:create liberty:install-feature verify
    • 29 unit tests passed
  • mvn -P openliberty clean liberty:dev
    • the application worked fine
    • hit enter key to run tests and 29 unit tests passed

@gkwan-ibm gkwan-ibm marked this pull request as ready for review September 22, 2023 14:42
@m-reza-rahman
Copy link
Contributor

OK. I’ll review ASAP.

@m-reza-rahman
Copy link
Contributor

I see there is still some commit activity. Can you please confirm this PR is ready for review and merge?

@gkwan-ibm
Copy link
Contributor Author

I see there is still some commit activity. Can you please confirm this PR is ready for review and merge?

yes, ready to review. That activity was caused by synchronized the branch with your yesterday commits.

@m-reza-rahman
Copy link
Contributor

Please ensure simply running the following works. It should be possible to configure Maven so that nothing more complex is required for the build to work.

mvn clean package -Popenliberty

Let me know when this is addressed. I will review the PR again after that.

@m-reza-rahman m-reza-rahman marked this pull request as draft September 22, 2023 17:35
@gkwan-ibm gkwan-ibm marked this pull request as ready for review September 22, 2023 21:41
@gkwan-ibm
Copy link
Contributor Author

hi @m-reza-rahman

Updated the pom.xml to make mvn clean package -Popenliberty work

@m-reza-rahman m-reza-rahman merged commit e862892 into eclipse-ee4j:master Sep 22, 2023
3 checks passed
@m-reza-rahman m-reza-rahman mentioned this pull request Sep 22, 2023
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