PHP Classes

File: vendor/mongodb/mongodb/tests/SpecTests/transactions/errors.json

Recommend this page to a friend!
  Classes of LAGGOUNE Walid   MongoDB Queue PHP Query Execute   vendor/mongodb/mongodb/tests/SpecTests/transactions/errors.json   Download  
File: vendor/mongodb/mongodb/tests/SpecTests/transactions/errors.json
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: MongoDB Queue PHP Query Execute
Query and execute multiple queries using MongoDB
Author: By
Last change:
Date: 4 years ago
Size: 4,951 bytes
 

Contents

Class file image Download
{ "runOn": [ { "minServerVersion": "4.0", "topology": [ "replicaset" ] }, { "minServerVersion": "4.1.8", "topology": [ "sharded" ] } ], "database_name": "transaction-tests", "collection_name": "test", "data": [], "tests": [ { "description": "start insert start", "operations": [ { "name": "startTransaction", "object": "session0" }, { "name": "insertOne", "object": "collection", "arguments": { "session": "session0", "document": { "_id": 1 } }, "result": { "insertedId": 1 } }, { "name": "startTransaction", "object": "session0", "result": { "errorContains": "transaction already in progress" } }, { "name": "commitTransaction", "object": "session0" } ] }, { "description": "start twice", "operations": [ { "name": "startTransaction", "object": "session0" }, { "name": "startTransaction", "object": "session0", "result": { "errorContains": "transaction already in progress" } } ] }, { "description": "commit and start twice", "operations": [ { "name": "startTransaction", "object": "session0" }, { "name": "insertOne", "object": "collection", "arguments": { "session": "session0", "document": { "_id": 1 } }, "result": { "insertedId": 1 } }, { "name": "commitTransaction", "object": "session0" }, { "name": "startTransaction", "object": "session0" }, { "name": "startTransaction", "object": "session0", "result": { "errorContains": "transaction already in progress" } } ] }, { "description": "write conflict commit", "operations": [ { "name": "startTransaction", "object": "session0" }, { "name": "insertOne", "object": "collection", "arguments": { "session": "session0", "document": { "_id": 1 } }, "result": { "insertedId": 1 } }, { "name": "startTransaction", "object": "session1" }, { "name": "insertOne", "object": "collection", "arguments": { "session": "session1", "document": { "_id": 1 } }, "result": { "errorCodeName": "WriteConflict", "errorLabelsContain": [ "TransientTransactionError" ], "errorLabelsOmit": [ "UnknownTransactionCommitResult" ] } }, { "name": "commitTransaction", "object": "session0" }, { "name": "commitTransaction", "object": "session1", "result": { "errorCodeName": "NoSuchTransaction", "errorLabelsContain": [ "TransientTransactionError" ], "errorLabelsOmit": [ "UnknownTransactionCommitResult" ] } } ] }, { "description": "write conflict abort", "operations": [ { "name": "startTransaction", "object": "session0" }, { "name": "insertOne", "object": "collection", "arguments": { "session": "session0", "document": { "_id": 1 } }, "result": { "insertedId": 1 } }, { "name": "startTransaction", "object": "session1" }, { "name": "insertOne", "object": "collection", "arguments": { "session": "session1", "document": { "_id": 1 } }, "result": { "errorCodeName": "WriteConflict", "errorLabelsContain": [ "TransientTransactionError" ], "errorLabelsOmit": [ "UnknownTransactionCommitResult" ] } }, { "name": "commitTransaction", "object": "session0" }, { "name": "abortTransaction", "object": "session1" } ] } ] }