...

Text file src/go.mongodb.org/mongo-driver/testdata/read-write-concern/connection-string/read-concern.yml

Documentation: go.mongodb.org/mongo-driver/testdata/read-write-concern/connection-string

     1tests:
     2    -
     3        description: "Default"
     4        uri: "mongodb://localhost/"
     5        valid: true
     6        warning: false
     7        readConcern: { }
     8    -
     9        description: "local specified"
    10        uri: "mongodb://localhost/?readConcernLevel=local"
    11        valid: true
    12        warning: false
    13        readConcern: { level: "local" }
    14    -
    15        description: "majority specified"
    16        uri: "mongodb://localhost/?readConcernLevel=majority"
    17        valid: true
    18        warning: false
    19        readConcern: { level: "majority" }
    20    -
    21        description: "available specified"
    22        uri: "mongodb://localhost?readConcernLevel=available"
    23        valid: true
    24        warning: false
    25        readConcern: { level: "available" }
    26    -
    27        description: "snapshot specified"
    28        uri: "mongodb://localhost?readConcernLevel=snapshot"
    29        valid: true
    30        warning: false
    31        readConcern: { level: "snapshot" }
    32    -
    33        description: "linearizable specified"
    34        uri: "mongodb://localhost?readConcernLevel=linearizable"
    35        valid: true
    36        warning: false
    37        readConcern: { level: "linearizable" }

View as plain text