Skip to content

Commit

Permalink
chore(txns): update to latest spec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Apr 18, 2018
1 parent 53fcff1 commit d3411f3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 156 deletions.
96 changes: 0 additions & 96 deletions test/functional/spec/transactions/bulk.json
Original file line number Diff line number Diff line change
Expand Up @@ -508,102 +508,6 @@
]
}
}
},
{
"description": "operation writeConcern ignored for bulk",
"operations": [
{
"name": "startTransaction",
"arguments": {
"session": "session0",
"options": {
"writeConcern": {
"w": "majority"
}
}
}
},
{
"name": "bulkWrite",
"arguments": {
"requests": [
{
"name": "insertOne",
"arguments": {
"document": {
"_id": 1
}
}
}
],
"writeConcern": {
"w": "majority"
},
"session": "session0"
},
"result": {
"deletedCount": 0,
"insertedIds": {
"0": 1
},
"matchedCount": 0,
"modifiedCount": 0,
"upsertedCount": 0,
"upsertedIds": {}
}
},
{
"name": "commitTransaction",
"arguments": {
"session": "session0"
}
}
],
"expectations": [
{
"command_started_event": {
"command": {
"insert": "test",
"documents": [
{
"_id": 1
}
],
"ordered": true,
"readConcern": null,
"lsid": "session0",
"txnNumber": {
"$numberLong": "1"
},
"stmtId": 0,
"startTransaction": true,
"autocommit": false,
"writeConcern": null
},
"command_name": "insert",
"database_name": "transaction-tests"
}
},
{
"command_started_event": {
"command": {
"commitTransaction": 1,
"lsid": "session0",
"txnNumber": {
"$numberLong": "1"
},
"stmtId": 1,
"startTransaction": null,
"autocommit": false,
"writeConcern": {
"w": "majority"
}
},
"command_name": "commitTransaction",
"database_name": "admin"
}
}
]
}
]
}
60 changes: 0 additions & 60 deletions test/functional/spec/transactions/bulk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,63 +257,3 @@ tests:
- {_id: 1, y: 1}
- {_id: 2, y: 2, z: 1}
- {_id: 5, z: 1}

- description: operation writeConcern ignored for bulk

operations:
- name: startTransaction
arguments:
session: session0
options:
writeConcern:
w: majority
- name: bulkWrite
arguments:
requests:
- name: insertOne
arguments:
document: {_id: 1}
writeConcern:
w: majority
session: session0
result:
deletedCount: 0
insertedIds: {0: 1}
matchedCount: 0
modifiedCount: 0
upsertedCount: 0
upsertedIds: {}
- name: commitTransaction
arguments:
session: session0

expectations:
- command_started_event:
command:
insert: test
documents:
- _id: 1
ordered: true
readConcern:
lsid: session0
txnNumber:
$numberLong: "1"
stmtId: 0
startTransaction: true
autocommit: false
writeConcern:
command_name: insert
database_name: transaction-tests
- command_started_event:
command:
commitTransaction: 1
lsid: session0
txnNumber:
$numberLong: "1"
stmtId: 1
startTransaction:
autocommit: false
writeConcern:
w: majority
command_name: commitTransaction
database_name: admin

0 comments on commit d3411f3

Please sign in to comment.