Debian Codegraph @

testdata/transactions/legacy/count.json

raw symbols SCIP
1 {
2 "runOn": [
3 {
4 "minServerVersion": "4.0.2",
5 "topology": [
6 "replicaset"
7 ]
8 },
9 {
10 "minServerVersion": "4.1.8",
11 "topology": [
12 "sharded"
13 ]
14 }
15 ],
16 "database_name": "transaction-tests",
17 "collection_name": "test",
18 "data": [
19 {
20 "_id": 1
21 },
22 {
23 "_id": 2
24 },
25 {
26 "_id": 3
27 },
28 {
29 "_id": 4
30 }
31 ],
32 "tests": [
33 {
34 "description": "count",
35 "operations": [
36 {
37 "name": "startTransaction",
38 "object": "session0"
39 },
40 {
41 "name": "count",
42 "object": "collection",
43 "arguments": {
44 "session": "session0",
45 "filter": {
46 "_id": 1
47 }
48 },
49 "result": {
50 "errorCodeName": "OperationNotSupportedInTransaction",
51 "errorLabelsOmit": [
52 "TransientTransactionError",
53 "UnknownTransactionCommitResult"
54 ]
55 }
56 },
57 {
58 "name": "abortTransaction",
59 "object": "session0"
60 }
61 ],
62 "expectations": [
63 {
64 "command_started_event": {
65 "command": {
66 "count": "test",
67 "query": {
68 "_id": 1
69 },
70 "readConcern": null,
71 "lsid": "session0",
72 "txnNumber": {
73 "$numberLong": "1"
74 },
75 "startTransaction": true,
76 "autocommit": false,
77 "writeConcern": null
78 },
79 "command_name": "count",
80 "database_name": "transaction-tests"
81 }
82 },
83 {
84 "command_started_event": {
85 "command": {
86 "abortTransaction": 1,
87 "lsid": "session0",
88 "txnNumber": {
89 "$numberLong": "1"
90 },
91 "startTransaction": null,
92 "autocommit": false,
93 "writeConcern": null
94 },
95 "command_name": "abortTransaction",
96 "database_name": "admin"
97 }
98 }
99 ],
100 "outcome": {
101 "collection": {
102 "data": [
103 {
104 "_id": 1
105 },
106 {
107 "_id": 2
108 },
109 {
110 "_id": 3
111 },
112 {
113 "_id": 4
114 }
115 ]
116 }
117 }
118 }
119 ]
120 }