File tree Expand file tree Collapse file tree 4 files changed +62
-4
lines changed
specifications/command-logging-and-monitoring/tests Expand file tree Collapse file tree 4 files changed +62
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"description" : " unacknowledged-write" ,
3
- "schemaVersion" : " 1.13 " ,
3
+ "schemaVersion" : " 1.16 " ,
4
4
"createEntities" : [
5
5
{
6
6
"client" : {
7
7
"id" : " client" ,
8
+ "useMultipleMongoses" : false ,
8
9
"observeLogMessages" : {
9
10
"command" : " debug"
10
11
}
53
54
"_id" : 2
54
55
}
55
56
}
57
+ },
58
+ {
59
+ "name" : " find" ,
60
+ "object" : " collection" ,
61
+ "arguments" : {
62
+ "filter" : {}
63
+ },
64
+ "expectResult" : [
65
+ {
66
+ "_id" : 1
67
+ },
68
+ {
69
+ "_id" : 2
70
+ }
71
+ ]
56
72
}
57
73
],
58
74
"expectLogMessages" : [
59
75
{
60
76
"client" : " client" ,
77
+ "ignoreExtraMessages" : true ,
61
78
"messages" : [
62
79
{
63
80
"level" : " debug" ,
Original file line number Diff line number Diff line change 1
1
description : " unacknowledged-write"
2
2
3
- schemaVersion : " 1.13 "
3
+ schemaVersion : " 1.16 "
4
4
5
5
createEntities :
6
6
- client :
7
7
id : &client client
8
+ useMultipleMongoses : false
8
9
observeLogMessages :
9
10
command : debug
10
11
- database :
@@ -31,8 +32,18 @@ tests:
31
32
object : *collection
32
33
arguments :
33
34
document : { _id: 2 }
35
+ # Force completion of the w: 0 write by executing a find on the same connection
36
+ - name : find
37
+ object : *collection
38
+ arguments :
39
+ filter : { }
40
+ expectResult : [
41
+ { _id: 1 },
42
+ { _id: 2 }
43
+ ]
34
44
expectLogMessages :
35
45
- client : *client
46
+ ignoreExtraMessages : true
36
47
messages :
37
48
- level : debug
38
49
component : command
Original file line number Diff line number Diff line change 1
1
{
2
2
"description" : " unacknowledgedBulkWrite" ,
3
- "schemaVersion" : " 1.0 " ,
3
+ "schemaVersion" : " 1.7 " ,
4
4
"createEntities" : [
5
5
{
6
6
"client" : {
7
7
"id" : " client" ,
8
+ "useMultipleMongoses" : false ,
8
9
"observeEvents" : [
9
10
" commandStartedEvent" ,
10
11
" commandSucceededEvent" ,
64
65
],
65
66
"ordered" : false
66
67
}
68
+ },
69
+ {
70
+ "name" : " find" ,
71
+ "object" : " collection" ,
72
+ "arguments" : {
73
+ "filter" : {}
74
+ },
75
+ "expectResult" : [
76
+ {
77
+ "_id" : 1 ,
78
+ "x" : 11
79
+ },
80
+ {
81
+ "_id" : " unorderedBulkWriteInsertW0" ,
82
+ "x" : 44
83
+ }
84
+ ]
67
85
}
68
86
],
69
87
"expectEvents" : [
70
88
{
71
89
"client" : " client" ,
90
+ "ignoreExtraEvents" : true ,
72
91
"events" : [
73
92
{
74
93
"commandStartedEvent" : {
Original file line number Diff line number Diff line change 1
1
description : " unacknowledgedBulkWrite"
2
2
3
- schemaVersion : " 1.0 "
3
+ schemaVersion : " 1.7 "
4
4
5
5
createEntities :
6
6
- client :
7
7
id : &client client
8
+ useMultipleMongoses : false
8
9
observeEvents :
9
10
- commandStartedEvent
10
11
- commandSucceededEvent
@@ -36,8 +37,18 @@ tests:
36
37
- insertOne :
37
38
document : { _id: "unorderedBulkWriteInsertW0", x: 44 }
38
39
ordered : false
40
+ # Force completion of the w: 0 write by executing a find on the same connection
41
+ - name : find
42
+ object : *collection
43
+ arguments :
44
+ filter : { }
45
+ expectResult : [
46
+ { _id: 1, x: 11 },
47
+ { _id: "unorderedBulkWriteInsertW0", x: 44 }
48
+ ]
39
49
expectEvents :
40
50
- client : *client
51
+ ignoreExtraEvents : true
41
52
events :
42
53
- commandStartedEvent :
43
54
command :
You can’t perform that action at this time.
0 commit comments