[SERVER-49442] Implement document validation error generation tests which use customer validators Created: 10/Jul/20 Updated: 29/Oct/23 Resolved: 06/Jan/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.9.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Mihai Andrei | Assignee: | Mindaugas Malinauskas |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | qexec-team | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Sprint: | Query 2020-10-05, Query 2020-10-19, Query 2020-11-02 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Outside of the unit tests which verify that individual operators generate errors in the expected format, it would be useful to have coverage of generated errors using real world validators. Some example validators include the following from various JIRA tickets (one, two, and three) as well as the sample schemas presented in the MongoDB docs. Additionally, a number of sample schemas can be found on schemastore.org. |
| Comments |
| Comment by Mindaugas Malinauskas [ 06/Jan/21 ] |
|
Restored epic link. |
| Comment by Mindaugas Malinauskas [ 06/Jan/21 ] |
|
Re-closing the ticket while extracting Ryan's concern reported in the comments to a separate ticketĀ |
| Comment by Githook User [ 27/Oct/20 ] |
|
Author: {'name': 'Mindaugas Malinauskas', 'email': 'mindaugas.malinauskas@mongodb.com'}Message: |
| Comment by Asya Kamsky [ 10/Jul/20 ] |
|
https://stackoverflow.com/questions/54485749/correct-syntax-for-mongodb-jsonschema-validation has an interesting schema with two errors, one more subtle than the other, but both being hard to find - there's sample document to insert there as well. |