Sha256: 151238288a8926b9c2b682a6a83995df65c0ce7b7554525bc0f097adef486232

Contents?: true

Size: 1.38 KB

Versions: 27

Compression:

Stored size: 1.38 KB

Contents

description: "Primary changes setName"

uri: "mongodb://a/?replicaSet=rs"

phases: [

    # Primary is discovered normally.
    {
        responses: [

                ["a:27017", {

                    ok: 1,
                    helloOk: true,
                    isWritablePrimary: true,
                    hosts: ["a:27017"],
                    setName: "rs",
                    minWireVersion: 0,
                    maxWireVersion: 6
                }]
        ],

        outcome: {

            servers: {

                "a:27017": {

                    type: "RSPrimary",
                    setName: "rs"
                }
            },
            topologyType: "ReplicaSetWithPrimary",
            logicalSessionTimeoutMinutes: null,
            setName: "rs"
        }
    },

    # Primary changes its setName. Remove it and change the topologyType.
    {
        responses: [

                ["a:27017", {

                    ok: 1,
                    helloOk: true,
                    isWritablePrimary: true,
                    hosts: ["a:27017"],
                    setName: "wrong",
                    minWireVersion: 0,
                    maxWireVersion: 6
                }]
        ],

        outcome: {

            servers: {},
            topologyType: "ReplicaSetNoPrimary",
            logicalSessionTimeoutMinutes: null,
            setName: "rs"
        }
    }
]

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
mongo-2.21.0 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.20.1 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mogno-2.20.0 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mogno-1.0.0 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.20.0 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.19.3 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.16.4 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.17.4 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.18.3 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.19.2 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.19.1 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.19.0 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.18.2 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.17.3 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.18.1 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.18.0 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.17.2 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.16.3 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.18.0.beta1 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.16.2 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml