Sha256: 148b96148128b3a9eac7f4b67eb798bd689aa6cdf0c1bbc0008e6850c23f0930

Contents?: true

Size: 1.25 KB

Versions: 44

Compression:

Stored size: 1.25 KB

Contents

data:
  - { _id: 1, x: 11 }
  - { _id: 2, x: 22 }
  - { _id: 3, x: 33 }

collection_name: &collection_name "test"
database_name: &database_name "ruby-driver"

tests:
  -
    description: "A successful mixed bulk write"
    operation:
      name: "bulkWrite"
      arguments:
        requests:
          - name: "insertOne"
            arguments:
              document: { _id: 4, x: 44 }
          - name: "updateOne"
            arguments:
              filter: { _id: 3 }
              update: { $set: { x: 333 } }
    expectations:
      -
        command_started_event:
          command:
            insert: *collection_name
            documents:
              - { _id: 4, x: 44 }
            ordered: true
          command_name: "insert"
          database_name: *database_name
      -
        command_succeeded_event:
          reply: { ok: 1.0, n: 1 }
          command_name: "insert"
      -
        command_started_event:
          command:
            update: *collection_name
            updates:
              - { q: {_id: 3 }, u: { $set: { x: 333 } } }
            ordered: true
          command_name: "update"
          database_name: *database_name
      -
        command_succeeded_event:
          reply: { ok: 1.0, n: 1 }
          command_name: "update"

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
mongo-2.16.4 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.17.4 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.17.3 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.17.2 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.16.3 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.18.0.beta1 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.16.2 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.17.1 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.16.1 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.17.0 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.16.0 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.13.3 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.14.1 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.15.1 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.16.0.alpha1 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.15.0 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.15.0.alpha spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.13.2 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.14.0 spec/spec_tests/data/command_monitoring/bulkWrite.yml
mongo-2.14.0.rc1 spec/spec_tests/data/command_monitoring/bulkWrite.yml