2025-03-17 20:58:26 +01:00

103 lines
2.1 KiB
YAML

description: "Replica set mixed case normalization"
uri: "mongodb://A/?replicaSet=rs"
phases: [
{
responses: [
["a:27017", {
ok: 1,
helloOk: true,
isWritablePrimary: true,
setName: "rs",
me: "A:27017",
hosts: ["A:27017"],
passives: ["B:27017"],
arbiters: ["C:27017"],
minWireVersion: 0,
maxWireVersion: 6
}]
],
outcome: {
servers: {
"a:27017": {
type: "RSPrimary",
setName: "rs"
},
"b:27017": {
type: "Unknown",
setName:
},
"c:27017": {
type: "Unknown",
setName:
}
},
topologyType: "ReplicaSetWithPrimary",
logicalSessionTimeoutMinutes: null,
setName: "rs"
}
},
{
responses: [
["b:27017", {
ok: 1,
helloOk: true,
isWritablePrimary: false,
secondary: true,
setName: "rs",
me: "B:27017",
hosts: ["A:27017"],
passives: ["B:27017"],
arbiters: ["C:27017"],
minWireVersion: 0,
maxWireVersion: 6
}]
],
outcome: {
servers: {
"a:27017": {
type: "RSPrimary",
setName: "rs"
},
"b:27017": {
type: "RSSecondary",
setName: "rs"
},
"c:27017": {
type: "Unknown",
setName:
}
},
topologyType: "ReplicaSetWithPrimary",
logicalSessionTimeoutMinutes: null,
setName: "rs"
}
}
]