File tree 6 files changed +22
-25
lines changed
source/unified-test-format
6 files changed +22
-25
lines changed Original file line number Diff line number Diff line change 220
220
"enum" : [" command" , " cmap" ]
221
221
},
222
222
"events" : { "type" : " array" },
223
- "eventMatch" : {
224
- "type" : " string" ,
225
- "enum" : [" exact" , " prefix" ]
226
- }
223
+ "ignoreExtraEvents" : { "type" : " boolean" }
227
224
},
228
225
"oneOf" : [
229
226
{
Original file line number Diff line number Diff line change 1
1
{
2
- "description" : " expectedEventsForClient-additionalProperties " ,
2
+ "description" : " expectedEventsForClient-ignoreExtraEvents-type " ,
3
3
"schemaVersion" : " 1.7" ,
4
4
"createEntities" : [
5
5
{
16
16
{
17
17
"client" : " client0" ,
18
18
"events" : [],
19
- "eventMatch " : 0
19
+ "ignoreExtraEvents " : 0
20
20
}
21
21
]
22
22
}
Original file line number Diff line number Diff line change 1
- description : " expectedEventsForClient-additionalProperties "
1
+ description : " expectedEventsForClient-ignoreExtraEvents-type "
2
2
3
3
schemaVersion : " 1.7"
4
4
12
12
expectEvents :
13
13
- client : *client0
14
14
events : []
15
- eventMatch : 0
15
+ ignoreExtraEvents : 0
Original file line number Diff line number Diff line change 1
1
{
2
- "description" : " expectedEventsForClient-eventType " ,
2
+ "description" : " expectedEventsForClient-ignoreExtraEvents " ,
3
3
"schemaVersion" : " 1.7" ,
4
4
"createEntities" : [
5
5
{
35
35
],
36
36
"tests" : [
37
37
{
38
- "description" : " eventMatch can be set to exact " ,
38
+ "description" : " ignoreExtraEvents can be set to false " ,
39
39
"operations" : [
40
40
{
41
41
"name" : " insertOne" ,
50
50
"expectEvents" : [
51
51
{
52
52
"client" : " client0" ,
53
- "eventMatch " : " exact " ,
53
+ "ignoreExtraEvents " : false ,
54
54
"events" : [
55
55
{
56
56
"commandStartedEvent" : {
70
70
]
71
71
},
72
72
{
73
- "description" : " eventMatch can be set to prefix " ,
73
+ "description" : " ignoreExtraEvents can be set to true " ,
74
74
"operations" : [
75
75
{
76
76
"name" : " insertOne" ,
94
94
"expectEvents" : [
95
95
{
96
96
"client" : " client0" ,
97
- "eventMatch " : " prefix " ,
97
+ "ignoreExtraEvents " : true ,
98
98
"events" : [
99
99
{
100
100
"commandStartedEvent" : {
114
114
]
115
115
},
116
116
{
117
- "description" : " eventMatch defaults to exact if unset" ,
117
+ "description" : " ignoreExtraEvents defaults to false if unset" ,
118
118
"operations" : [
119
119
{
120
120
"name" : " insertOne" ,
Original file line number Diff line number Diff line change 1
- description : expectedEventsForClient-eventType
1
+ description : expectedEventsForClient-ignoreExtraEvents
2
2
3
3
schemaVersion : ' 1.7'
4
4
@@ -23,15 +23,15 @@ initialData:
23
23
documents : []
24
24
25
25
tests :
26
- - description : eventMatch can be set to exact
26
+ - description : ignoreExtraEvents can be set to false
27
27
operations :
28
28
- name : insertOne
29
29
object : *collection0
30
30
arguments :
31
31
document : &insertDocument1 { _id: 1 }
32
32
expectEvents :
33
33
- client : *client0
34
- eventMatch : exact
34
+ ignoreExtraEvents : false
35
35
events :
36
36
- commandStartedEvent :
37
37
command :
40
40
- *insertDocument1
41
41
commandName : insert
42
42
43
- - description : eventMatch can be set to prefix
43
+ - description : ignoreExtraEvents can be set to true
44
44
operations :
45
45
- name : insertOne
46
46
object : *collection0
52
52
document : { _id: 3 }
53
53
expectEvents :
54
54
- client : *client0
55
- eventMatch : prefix
55
+ ignoreExtraEvents : true
56
56
events :
57
57
- commandStartedEvent :
58
58
command :
61
61
- *insertDocument2
62
62
commandName : insert
63
63
64
- - description : eventMatch defaults to exact if unset
64
+ - description : ignoreExtraEvents defaults to false if unset
65
65
operations :
66
66
- name : insertOne
67
67
object : *collection0
Original file line number Diff line number Diff line change @@ -1006,11 +1006,11 @@ The structure of each object is as follows:
1006
1006
executing `operations `_. If the array is empty, the test runner MUST assert
1007
1007
that no events were observed on the client (excluding ignored events).
1008
1008
1009
- - ``eventMatch ``: Optional string . Specifies how the ``events `` array is
1010
- matched against the observed events. Valid values are `` exact ``, meaning
1011
- that observed events after all specified events have matched MUST cause a
1012
- test failure, and `` prefix ``, meaning that observed events after all
1013
- specified events have been matched MUST NOT cause a test failure .
1009
+ - ``ignoreExtraEvents ``: Optional boolean . Specifies how the ``events `` array
1010
+ is matched against the observed events. If `` false ``, observed events after
1011
+ all specified events have matched MUST cause a test failure; if `` true ``,
1012
+ observed events after all specified events have been matched MUST NOT cause a
1013
+ test failure. Defaults to `` false `` .
1014
1014
1015
1015
1016
1016
expectedEvent
You can’t perform that action at this time.
0 commit comments