-
Notifications
You must be signed in to change notification settings - Fork 409
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 tests for insertion of documents with invalid _id
fields
#3579
Add tests for insertion of documents with invalid _id
fields
#3579
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3579 +/- ##
==========================================
- Coverage 61.43% 61.31% -0.13%
==========================================
Files 426 426
Lines 27225 27225
==========================================
- Hits 16727 16694 -33
- Misses 9504 9535 +31
- Partials 994 996 +2 see 9 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. |
@rumyantseva I've added integrations tests, could you please review it? Also can you please explain a little bit more about:
I think this is what you mean? FerretDB/integration/shareddata/composites.go Line 161 in ff92b03
|
fix invalid validation for _id field
issue_id
fields
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@slavabobik my message was that we don't have any test cases where _id
is a document. I expect some tests will need to be adjusted if we add such a case, and this is why I think it should be a separate story.
P.S. I created an issue to illustrate and discuss my question: #3587. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
Description
Add integration tests for error cases
Closes #2804.
Readiness checklist
task all
, and it passed.@FerretDB/core
), Milestone (Next
), Labels, Project and project's Sprint fields.