Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 2.14 KB

QUARKUS-1061.md

File metadata and controls

39 lines (28 loc) · 2.14 KB

QUARKUS-1061 - Tech Preview support for MongoDB

JIRA link: https://issues.redhat.com/browse/QUARKUS-1061

Initial analysis: https://issues.redhat.com/browse/QUARKUS-1061?focusedCommentId=18933696&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-18933696

https://quarkus.io/guides/mongodb

https://quarkus.io/guides/mongodb-panache

MongoDB datasource using mongodb-client and mongodb-panache.

Scope of testing

Existing tests

Quarkus integration tests:

  • mongodb-client
    • /vehicles endpoint is not tested.
    • Coverage should be added back as it was present in older commits but removed in quarkusio/quarkus#12902 (or at least we need to undestant why the test was removed, but not the classes relevant to the endpoint).
    • Native mode covered.
  • mongodb-panache
    • Classic vs. reactive, transactions, various entities and repositories, native mode covered.
  • mongodb-rest-data-panache
    • Various CRUD operations, json and hal+json output formats, native mode covered.

Quarkus Quickstarts:

  • mongodb-panache-quickstart - covers related guide, nice starting point, includes tests for CRUD operations.
  • mongodb-quickstart - covers related guide, reasonable starting point, not many changes in code, NO tests.

Automated test development

Impact on test suites and test environment

  • One new scenario in QE TS, approximate time increase: 2 minutes JVM mode, 5 minutes native mode, 4 minutes OpenShift JVM, 8 minutes OpenShift native.