...
1{
2 "description": "pre-42-server-connection-id",
3 "schemaVersion": "1.13",
4 "runOnRequirements": [
5 {
6 "maxServerVersion": "4.0.99"
7 }
8 ],
9 "createEntities": [
10 {
11 "client": {
12 "id": "client",
13 "observeLogMessages": {
14 "command": "debug"
15 }
16 }
17 },
18 {
19 "database": {
20 "id": "database",
21 "client": "client",
22 "databaseName": "logging-server-connection-id-tests"
23 }
24 },
25 {
26 "collection": {
27 "id": "collection",
28 "database": "database",
29 "collectionName": "logging-tests-collection"
30 }
31 }
32 ],
33 "initialData": [
34 {
35 "databaseName": "logging-server-connection-id-tests",
36 "collectionName": "logging-tests-collection",
37 "documents": []
38 }
39 ],
40 "tests": [
41 {
42 "description": "command log messages do not include server connection id",
43 "operations": [
44 {
45 "name": "insertOne",
46 "object": "collection",
47 "arguments": {
48 "document": {
49 "x": 1
50 }
51 }
52 },
53 {
54 "name": "find",
55 "object": "collection",
56 "arguments": {
57 "filter": {
58 "$or": true
59 }
60 },
61 "expectError": {
62 "isError": true
63 }
64 }
65 ],
66 "expectLogMessages": [
67 {
68 "client": "client",
69 "messages": [
70 {
71 "level": "debug",
72 "component": "command",
73 "data": {
74 "message": "Command started",
75 "commandName": "insert",
76 "serverConnectionId": {
77 "$$exists": false
78 }
79 }
80 },
81 {
82 "level": "debug",
83 "component": "command",
84 "data": {
85 "message": "Command succeeded",
86 "commandName": "insert",
87 "serverConnectionId": {
88 "$$exists": false
89 }
90 }
91 },
92 {
93 "level": "debug",
94 "component": "command",
95 "data": {
96 "message": "Command started",
97 "commandName": "find",
98 "serverConnectionId": {
99 "$$exists": false
100 }
101 }
102 },
103 {
104 "level": "debug",
105 "component": "command",
106 "data": {
107 "message": "Command failed",
108 "commandName": "find",
109 "serverConnectionId": {
110 "$$exists": false
111 }
112 }
113 }
114 ]
115 }
116 ]
117 }
118 ]
119}
View as plain text