-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Sync CRUD unified tests #1543
Sync CRUD unified tests #1543
Conversation
nhachicha
commented
Oct 29, 2024
•
edited
Loading
edited
- Removed all client bulkWrite tests until @stIncMale finishes the implementation
- Added some skips in driver-sync/src/test/functional/com/mongodb/client/unified/UnifiedCrudTest.java
- Fix checkstyle
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.
While there are some advantages to including the YAML for the readability, we have so far decided to copy over only the JSON files, not the YAML ones. Let's not change that here.
assumeFalse(testDescription.toLowerCase().contains("replaceone with sort option"), "Skipping until JAVA-5622 is implemented"); | ||
assumeFalse(testDescription.equals("BulkWrite with string comment"), "Skipping until we decide " | ||
+ "whether to update the spec or test https://mongodb.slack.com/archives/C72LB5RPV/p1730225657999979"); | ||
assumeFalse(testDescription.equals("BulkWrite with document comment"), "Skipping until we decide " |
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.
Let's only include links that are accessible to the public. Slack doesn't fit the bill.
@@ -122,7 +122,6 @@ | |||
"expectEvents": [ | |||
{ | |||
"client": "client0", | |||
"note": "Events split due to : JAVA-4537 ", |
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.
Since we had previously decided to change this test, let's not reverse this decision until we have a better alternative. I'd prefer to revert the change to this file and leave it as is.
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 after the requested change.
@@ -43,6 +43,22 @@ public static void doSkips(final String fileDescription, final String testDescri | |||
assumeFalse(testDescription.equals("Aggregate with $out includes read preference for 5.0+ server")); | |||
assumeFalse(testDescription.equals("Database-level aggregate with $out includes read preference for 5.0+ server")); | |||
} | |||
if (fileDescription.equals("updateOne-sort")) { | |||
assumeFalse(testDescription.equals("UpdateOne with sort option")); |
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.
Let's add a second param for each of these, like "Skipped until implementation of JAVA-XXXX"
, where XXXX is the issue number for adding sort to update/replace.
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. LGTM