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

Test relations against databases #3442

Closed
5 tasks
bajtos opened this issue Jul 26, 2019 · 0 comments · Fixed by #3538
Closed
5 tasks

Test relations against databases #3442

bajtos opened this issue Jul 26, 2019 · 0 comments · Fixed by #3538
Assignees
Labels
feature Relations Model relations (has many, etc.) Repository Issues related to @loopback/repository package

Comments

@bajtos
Copy link
Member

bajtos commented Jul 26, 2019

Refactor existing integration & acceptance tests for relations, move most (or
all) of them to repository-tests package.

I am not sure how much work will be required to make these tests pass against MongoDB (coercion between ObjectID vs. string). If it would require non-trivial amount of time, then:

  • Introduce one or more new CrudFeature flags allowing MongoDB test suite to skip these new tests.
  • Open a follow-up issue to investigate & fix the MongoDB test suite later.

See also #3387, and here.

Acceptance criteria

Tests to review & move:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Relations Model relations (has many, etc.) Repository Issues related to @loopback/repository package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants