...
1description: "Discover passives with directConnection URI option"
2
3uri: "mongodb://a/?directConnection=false"
4
5phases: [
6
7 {
8 responses: [
9
10 ["a:27017", {
11
12 ok: 1,
13 helloOk: true,
14 isWritablePrimary: true,
15 hosts: ["a:27017"],
16 passives: ["b: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 "b:27017": {
34
35 type: "Unknown",
36 setName:
37 }
38 },
39 topologyType: "ReplicaSetWithPrimary",
40 logicalSessionTimeoutMinutes: null,
41 setName: "rs"
42 }
43 },
44 {
45 responses: [
46
47 ["b:27017", {
48
49 ok: 1,
50 helloOk: true,
51 isWritablePrimary: false,
52 secondary: true,
53 passive: true,
54 hosts: ["a:27017"],
55 passives: ["b:27017"],
56 setName: "rs",
57 minWireVersion: 0,
58 maxWireVersion: 6
59 }]
60 ],
61
62 outcome: {
63
64 servers: {
65
66 "a:27017": {
67
68 type: "RSPrimary",
69 setName: "rs"
70 },
71
72 "b:27017": {
73
74 type: "RSSecondary",
75 setName: "rs"
76 }
77 },
78 topologyType: "ReplicaSetWithPrimary",
79 logicalSessionTimeoutMinutes: null,
80 setName: "rs"
81 }
82 }
83]
View as plain text