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 automated system tests #34

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

aguibert
Copy link

@aguibert aguibert commented Jul 16, 2019

Runs integration tests on Portfolio microservice using several Docker containers:

  • Liberty
  • DB2
  • Mockserver (mocks external services such as the stock-quote service)

Run tests using mvn verify

Tests run in about 2 minutes on my machine. First run will take longer due to pulling necessary Docker images.

Summary of changes in this PR:

  1. Added some test-scoped maven dependencies
  2. Added AppConfig class defining test container topology/env
  3. Added PortfolioServiceTest class for the actual Portfolio service tests
  4. A bit of app-side cleanup:
    • changed to 1 JAX-RS Application. Multiple Applications is undefined by JAX-RS spec
    • made readiness endpoint not require a JWT
    • Converted Portfolio object to use JSON-B instead of JSON-P
    • used @RegisterRestClient(baseUri = "...") for defaults instead of jvm.options
    • cleaned up JWT config by removing web.xml and using @RolesAllowed annotations instead

@jwalcorn
Copy link
Member

Per Andy today:
image

@jwalcorn
Copy link
Member

Just checking back in on this. I think MicroShed has matured some since we last touched base. Can this PR be fixed up and submitted for review now?

@aguibert
Copy link
Author

hi @jwalcorn, yes MicroShed has matured quite a bit since the original PR, but there is still one more important design aspect that I'd like to solve before it's ready for prime time

@jwalcorn
Copy link
Member

OK, checking back in on this again. Are you still interested in delivering this? Of course, some of the files originally touched have evolved since 2019. FYI, I just moved everything up to 22.0.0.6 and Java 17. Anyway, let me know - thanks!

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.

None yet

2 participants