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.17.1 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.16.1 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.17.0 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.16.0 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.15.1 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.16.0.alpha1 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml
mongo-2.15.0 spec/spec_tests/data/sdam/rs/primary_changes_set_name.yml