Debian Codegraph @

testdata/server-discovery-and-monitoring/rs/primary_changes_set_name.yml

raw symbols SCIP
1 description: "Primary changes setName"
2
3 uri: "mongodb://a/?replicaSet=rs"
4
5 phases: [
6
7 # Primary is discovered normally.
8 {
9 responses: [
10
11 ["a:27017", {
12
13 ok: 1,
14 helloOk: true,
15 isWritablePrimary: true,
16 hosts: ["a:27017"],
17 setName: "rs",
18 minWireVersion: 0,
19 maxWireVersion: 6
20 }]
21 ],
22
23 outcome: {
24
25 servers: {
26
27 "a:27017": {
28
29 type: "RSPrimary",
30 setName: "rs"
31 }
32 },
33 topologyType: "ReplicaSetWithPrimary",
34 logicalSessionTimeoutMinutes: null,
35 setName: "rs"
36 }
37 },
38
39 # Primary changes its setName. Remove it and change the topologyType.
40 {
41 responses: [
42
43 ["a:27017", {
44
45 ok: 1,
46 helloOk: true,
47 isWritablePrimary: true,
48 hosts: ["a:27017"],
49 setName: "wrong",
50 minWireVersion: 0,
51 maxWireVersion: 6
52 }]
53 ],
54
55 outcome: {
56
57 servers: {},
58 topologyType: "ReplicaSetNoPrimary",
59 logicalSessionTimeoutMinutes: null,
60 setName: "rs"
61 }
62 }
63 ]