Skip to content

Commit 4e5813c

Browse files
authored
PYTHON-4299 Add support for TopologyDescriptionChangedEvent to expectEvents (#1572)
1 parent efe8cc3 commit 4e5813c

File tree

40 files changed

+867
-94
lines changed

40 files changed

+867
-94
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"description": "entity-client-observeLogMessages-minProperties",
3+
"schemaVersion": "1.13",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0",
8+
"observeLogMessages": {}
9+
}
10+
}
11+
],
12+
"tests": [
13+
{
14+
"description": "foo",
15+
"operations": []
16+
}
17+
]
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"description": "entity-client-observeLogMessages-property-type",
3+
"schemaVersion": "1.13",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0",
8+
"observeLogMessages": {
9+
"command": {}
10+
}
11+
}
12+
}
13+
],
14+
"tests": [
15+
{
16+
"description": "foo",
17+
"operations": []
18+
}
19+
]
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"description": "entity-client-observeLogMessages-property-type",
3+
"schemaVersion": "1.13",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0",
8+
"observeLogMessages": {
9+
"command": "notALogLevel"
10+
}
11+
}
12+
}
13+
],
14+
"tests": [
15+
{
16+
"description": "foo",
17+
"operations": []
18+
}
19+
]
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"description": "entity-client-observeLogMessages-type",
3+
"schemaVersion": "1.13",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0",
8+
"observeLogMessages": 0
9+
}
10+
}
11+
],
12+
"tests": [
13+
{
14+
"description": "foo",
15+
"operations": []
16+
}
17+
]
18+
}

test/unified-test-format/invalid/expectedCmapEvent-poolClearedEvent-interruptInUseConnections-type.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
]
2121
}
2222
]
23-
}
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"description": "expectedCommandEvent-commandFailedEvent-databaseName-type",
3+
"schemaVersion": "1.15",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
}
10+
],
11+
"tests": [
12+
{
13+
"description": "foo",
14+
"operations": [],
15+
"expectEvents": [
16+
{
17+
"client": "client0",
18+
"events": [
19+
{
20+
"commandFailedEvent": {
21+
"databaseName": 0
22+
}
23+
}
24+
]
25+
}
26+
]
27+
}
28+
]
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"description": "expectedCommandEvent-commandSucceededEvent-databaseName-type",
3+
"schemaVersion": "1.15",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
}
10+
],
11+
"tests": [
12+
{
13+
"description": "foo",
14+
"operations": [],
15+
"expectEvents": [
16+
{
17+
"client": "client0",
18+
"events": [
19+
{
20+
"commandSucceededEvent": {
21+
"databaseName": 0
22+
}
23+
}
24+
]
25+
}
26+
]
27+
}
28+
]
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"description": "expectedLogMessage-additionalProperties",
3+
"schemaVersion": "1.13",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
}
10+
],
11+
"tests": [
12+
{
13+
"description": "foo",
14+
"operations": [],
15+
"expectLogMessages": [
16+
{
17+
"client": "client0",
18+
"messages": [],
19+
"foo": 0
20+
}
21+
]
22+
}
23+
]
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"description": "expectedLogMessage-component-enum",
3+
"schemaVersion": "1.13",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
}
10+
],
11+
"tests": [
12+
{
13+
"description": "foo",
14+
"operations": [],
15+
"expectLogMessages": [
16+
{
17+
"client": "client0",
18+
"messages": [
19+
{
20+
"level": "debug",
21+
"component": "foo",
22+
"data": {}
23+
}
24+
]
25+
}
26+
]
27+
}
28+
]
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"description": "expectedLogMessage-component-type",
3+
"schemaVersion": "1.13",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
}
10+
],
11+
"tests": [
12+
{
13+
"description": "foo",
14+
"operations": [],
15+
"expectLogMessages": [
16+
{
17+
"client": "client0",
18+
"messages": [
19+
{
20+
"level": "debug",
21+
"data": {}
22+
}
23+
]
24+
}
25+
]
26+
}
27+
]
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"description": "expectedLogMessage-component-type",
3+
"schemaVersion": "1.13",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
}
10+
],
11+
"tests": [
12+
{
13+
"description": "foo",
14+
"operations": [],
15+
"expectLogMessages": [
16+
{
17+
"client": "client0",
18+
"messages": [
19+
{
20+
"level": "debug",
21+
"component": 0,
22+
"data": {}
23+
}
24+
]
25+
}
26+
]
27+
}
28+
]
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"description": "expectedLogMessage-data-required",
3+
"schemaVersion": "1.13",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
}
10+
],
11+
"tests": [
12+
{
13+
"description": "foo",
14+
"operations": [],
15+
"expectLogMessages": [
16+
{
17+
"client": "client0",
18+
"messages": [
19+
{
20+
"level": "debug",
21+
"component": "command"
22+
}
23+
]
24+
}
25+
]
26+
}
27+
]
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"description": "expectedLogMessage-data-type",
3+
"schemaVersion": "1.13",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
}
10+
],
11+
"tests": [
12+
{
13+
"description": "foo",
14+
"operations": [],
15+
"expectLogMessages": [
16+
{
17+
"client": "client0",
18+
"messages": [
19+
{
20+
"level": "debug",
21+
"component": "command",
22+
"data": 0
23+
}
24+
]
25+
}
26+
]
27+
}
28+
]
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"description": "expectedLogMessage-failureIsRedacted-type",
3+
"schemaVersion": "1.13",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
}
10+
],
11+
"tests": [
12+
{
13+
"description": "foo",
14+
"operations": [],
15+
"expectLogMessages": [
16+
{
17+
"client": "client0",
18+
"messages": [
19+
{
20+
"level": "debug",
21+
"component": "command",
22+
"failureIsRedacted": 0,
23+
"data": {}
24+
}
25+
]
26+
}
27+
]
28+
}
29+
]
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"description": "expectedLogMessage-level-enum",
3+
"schemaVersion": "1.13",
4+
"createEntities": [
5+
{
6+
"client": {
7+
"id": "client0"
8+
}
9+
}
10+
],
11+
"tests": [
12+
{
13+
"description": "foo",
14+
"operations": [],
15+
"expectLogMessages": [
16+
{
17+
"client": "client0",
18+
"messages": [
19+
{
20+
"level": "foo",
21+
"component": "command",
22+
"data": {}
23+
}
24+
]
25+
}
26+
]
27+
}
28+
]
29+
}

0 commit comments

Comments
 (0)