diff --git a/.evergreen/spec-patch/PYTHON-5993.patch b/.evergreen/spec-patch/PYTHON-5993.patch new file mode 100644 index 0000000000..3880924e83 --- /dev/null +++ b/.evergreen/spec-patch/PYTHON-5993.patch @@ -0,0 +1,94 @@ +diff --git a/test/unified-test-format/valid-pass/operator-gte.json b/test/unified-test-format/valid-pass/operator-gte.json +new file mode 100644 +index 000000000..ae69da5c9 +--- /dev/null ++++ b/test/unified-test-format/valid-pass/operator-gte.json +@@ -0,0 +1,88 @@ ++{ ++ "description": "operator-gte", ++ "schemaVersion": "1.29", ++ "createEntities": [ ++ { ++ "client": { ++ "id": "client0", ++ "observeEvents": [ ++ "commandStartedEvent" ++ ] ++ } ++ }, ++ { ++ "database": { ++ "id": "database0", ++ "client": "client0", ++ "databaseName": "database0Name" ++ } ++ }, ++ { ++ "collection": { ++ "id": "collection0", ++ "database": "database0", ++ "collectionName": "coll0" ++ } ++ } ++ ], ++ "initialData": [ ++ { ++ "collectionName": "coll0", ++ "databaseName": "database0Name", ++ "documents": [] ++ } ++ ], ++ "tests": [ ++ { ++ "description": "special gte matching operator", ++ "operations": [ ++ { ++ "name": "insertOne", ++ "object": "collection0", ++ "arguments": { ++ "document": { ++ "_id": 1, ++ "x": 2, ++ "y": 3, ++ "z": 4 ++ } ++ } ++ } ++ ], ++ "expectEvents": [ ++ { ++ "client": "client0", ++ "events": [ ++ { ++ "commandStartedEvent": { ++ "command": { ++ "insert": "coll0", ++ "documents": [ ++ { ++ "_id": { ++ "$$gte": 1 ++ }, ++ "x": { ++ "$$gte": 1.9 ++ }, ++ "y": { ++ "$$gte": { ++ "$numberLong": "3" ++ } ++ }, ++ "z": { ++ "$$gte": 4 ++ } ++ } ++ ] ++ }, ++ "commandName": "insert", ++ "databaseName": "database0Name" ++ } ++ } ++ ] ++ } ++ ] ++ } ++ ] ++} diff --git a/test/bson_corpus/dbref.json b/test/bson_corpus/dbref.json index 41c0b09d0e..cf54ccf538 100644 --- a/test/bson_corpus/dbref.json +++ b/test/bson_corpus/dbref.json @@ -22,6 +22,21 @@ "canonical_bson": "4400000003646272656600380000000224726566000b000000636f6c6c656374696f6e00072469640058921b3e6e32ab156a22b59e02666f6f0004000000626172000000", "canonical_extjson": "{\"dbref\": {\"$ref\": \"collection\", \"$id\": {\"$oid\": \"58921b3e6e32ab156a22b59e\"}, \"foo\": \"bar\"}}" }, + { + "description": "DBRef with dotted collection name", + "canonical_bson": "3a000000036462726566002e0000000224726566000e00000064622e636f6c6c656374696f6e00072469640058921b3e6e32ab156a22b59e0000", + "canonical_extjson": "{\"dbref\": {\"$ref\": \"db.collection\", \"$id\": {\"$oid\": \"58921b3e6e32ab156a22b59e\"}}}" + }, + { + "description": "DBRef with dotted collection name and database", + "canonical_bson": "4b000000036462726566003f0000000224726566000e00000064622e636f6c6c656374696f6e00072469640058921b3e6e32ab156a22b59e0224646200080000006f746865726462000000", + "canonical_extjson": "{\"dbref\": {\"$ref\": \"db.collection\", \"$id\": {\"$oid\": \"58921b3e6e32ab156a22b59e\"}, \"$db\": \"otherdb\"}}" + }, + { + "description": "DBRef with multiple dots in collection name", + "canonical_bson": "32000000036462726566002600000002247265660006000000612e622e6300072469640058921b3e6e32ab156a22b59e0000", + "canonical_extjson": "{\"dbref\": {\"$ref\": \"a.b.c\", \"$id\": {\"$oid\": \"58921b3e6e32ab156a22b59e\"}}}" + }, { "description": "Document with key names similar to those of a DBRef", "canonical_bson": "3e0000000224726566000c0000006e6f742d612d646272656600072469640058921b3e6e32ab156a22b59e022462616e616e6100050000007065656c0000",