Skip to content

Commit 197d50e

Browse files
committed
fix all but one test
1 parent 85c1fcf commit 197d50e

File tree

4 files changed

+56
-6
lines changed

4 files changed

+56
-6
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
diff --git a/test/client-side-encryption/spec/unified/updateOne.json b/test/client-side-encryption/spec/unified/updateOne.json
2+
index a059b07c4..6c8fdcbb6 100644
3+
--- a/test/client-side-encryption/spec/unified/updateOne.json
4+
+++ b/test/client-side-encryption/spec/unified/updateOne.json
5+
@@ -396,6 +396,12 @@
6+
"$unset": {
7+
"encrypted_string": ""
8+
}
9+
+ },
10+
+ "multi": {
11+
+ "$$unsetOrMatches": false
12+
+ },
13+
+ "upsert": {
14+
+ "$$unsetOrMatches": false
15+
}
16+
}
17+
],
18+
@@ -472,6 +478,12 @@
19+
"$rename": {
20+
"encrypted_string": "encrypted_string_equivalent"
21+
}
22+
+ },
23+
+ "multi": {
24+
+ "$$unsetOrMatches": false
25+
+ },
26+
+ "upsert": {
27+
+ "$$unsetOrMatches": false
28+
}
29+
}
30+
],
31+
diff --git a/test/client-side-encryption/spec/unified/timeoutMS.json b/test/client-side-encryption/spec/unified/timeoutMS.json
32+
index 399c57df6..98dc50e98 100644
33+
--- a/test/client-side-encryption/spec/unified/timeoutMS.json
34+
+++ b/test/client-side-encryption/spec/unified/timeoutMS.json
35+
@@ -196,7 +196,7 @@
36+
}
37+
},
38+
"object": "coll",
39+
- "expectResult": {
40+
+ "expectError": {
41+
"isTimeoutError": true
42+
}
43+
}
44+
@@ -260,7 +260,7 @@
45+
}
46+
},
47+
"object": "coll",
48+
- "expectResult": {
49+
+ "expectError": {
50+
"isTimeoutError": true
51+
}
52+
}

test/asynchronous/test_encryption.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,7 @@ async def run_scenario(self):
747747
if _HAVE_PYMONGOCRYPT:
748748
globals().update(
749749
generate_test_classes(
750-
os.path.join(SPEC_PATH, "unified"),
751-
module=__name__,
750+
os.path.join(SPEC_PATH, "unified"), module=__name__, expected_failures=["mapReduce .*"]
752751
)
753752
)
754753

test/client-side-encryption/spec/unified/timeoutMS.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
}
197197
},
198198
"object": "coll",
199-
"expectResult": {
199+
"expectError": {
200200
"isTimeoutError": true
201201
}
202202
}
@@ -260,7 +260,7 @@
260260
}
261261
},
262262
"object": "coll",
263-
"expectResult": {
263+
"expectError": {
264264
"isTimeoutError": true
265265
}
266266
}

test/test_encryption.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,7 @@ def run_scenario(self):
745745
if _HAVE_PYMONGOCRYPT:
746746
globals().update(
747747
generate_test_classes(
748-
os.path.join(SPEC_PATH, "unified"),
749-
module=__name__,
748+
os.path.join(SPEC_PATH, "unified"), module=__name__, expected_failures=["mapReduce .*"]
750749
)
751750
)
752751

0 commit comments

Comments
 (0)