Sha256: ab1ff38b44218a1b0ad558d1de3524faa9652b4f95544ac269c6edaee1245f6f

Contents?: true

Size: 1.03 KB

Versions: 8

Compression:

Stored size: 1.03 KB

Contents

description: "Primary changes setName"

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

phases: [

    # Primary is discovered normally.
    {
        responses: [

                ["a:27017", {

                    ok: 1,
                    ismaster: true,
                    hosts: ["a"],
                    setName: "rs"
                }]
        ],

        outcome: {

            servers: {

                "a:27017": {

                    type: "RSPrimary",
                    setName: "rs"
                }
            },

            topologyType: "ReplicaSetWithPrimary",
            setName: "rs"
        }
    },

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

                ["a:27017", {

                    ok: 1,
                    ismaster: true,
                    hosts: ["a"],
                    setName: "wrong"
                }]
        ],

        outcome: {

            servers: {},

            topologyType: "ReplicaSetNoPrimary",
            setName: "rs"
        }
    }
]

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mongo-2.0.5 spec/support/sdam/rs/primary_changes_set_name.yml
mongo-2.0.4 spec/support/sdam/rs/primary_changes_set_name.yml
mongo-2.0.3 spec/support/sdam/rs/primary_changes_set_name.yml
mongo-2.0.2 spec/support/sdam/rs/primary_changes_set_name.yml
mongo-2.0.1 spec/support/sdam/rs/primary_changes_set_name.yml
mongo-2.0.0 spec/support/sdam/rs/primary_changes_set_name.yml
mongo-2.0.0.rc spec/support/sdam/rs/primary_changes_set_name.yml
mongo-2.0.0.beta spec/support/sdam/rs/primary_changes_set_name.yml