Skip to content

Commit fb7fef1

Browse files
committed
Sync tests
1 parent 7a7acca commit fb7fef1

File tree

2 files changed

+184
-0
lines changed

2 files changed

+184
-0
lines changed
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"topology_description": {
3+
"type": "ReplicaSetWithPrimary",
4+
"servers": [
5+
{
6+
"address": "b:27017",
7+
"avg_rtt_ms": 5,
8+
"type": "RSSecondary",
9+
"tags": {
10+
"data_center": "nyc"
11+
}
12+
},
13+
{
14+
"address": "c:27017",
15+
"avg_rtt_ms": 5,
16+
"type": "RSSecondary",
17+
"tags": {
18+
"data_center": "nyc"
19+
}
20+
},
21+
{
22+
"address": "a:27017",
23+
"avg_rtt_ms": 5,
24+
"type": "RSPrimary",
25+
"tags": {
26+
"data_center": "nyc"
27+
}
28+
}
29+
]
30+
},
31+
"operation": "read",
32+
"read_preference": {
33+
"mode": "PrimaryPreferred",
34+
"tag_sets": [
35+
{}
36+
]
37+
},
38+
"deprioritized_servers": [
39+
{
40+
"address": "b:27017",
41+
"avg_rtt_ms": 5,
42+
"type": "RSSecondary",
43+
"tags": {
44+
"data_center": "nyc"
45+
}
46+
},
47+
{
48+
"address": "c:27017",
49+
"avg_rtt_ms": 5,
50+
"type": "RSSecondary",
51+
"tags": {
52+
"data_center": "nyc"
53+
}
54+
},
55+
{
56+
"address": "a:27017",
57+
"avg_rtt_ms": 5,
58+
"type": "RSPrimary",
59+
"tags": {
60+
"data_center": "nyc"
61+
}
62+
}
63+
],
64+
"suitable_servers": [
65+
{
66+
"address": "a:27017",
67+
"avg_rtt_ms": 5,
68+
"type": "RSPrimary",
69+
"tags": {
70+
"data_center": "nyc"
71+
}
72+
}
73+
],
74+
"in_latency_window": [
75+
{
76+
"address": "a:27017",
77+
"avg_rtt_ms": 5,
78+
"type": "RSPrimary",
79+
"tags": {
80+
"data_center": "nyc"
81+
}
82+
}
83+
]
84+
}
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"topology_description": {
3+
"type": "ReplicaSetWithPrimary",
4+
"servers": [
5+
{
6+
"address": "b:27017",
7+
"avg_rtt_ms": 5,
8+
"type": "RSSecondary",
9+
"tags": {
10+
"data_center": "nyc"
11+
}
12+
},
13+
{
14+
"address": "c:27017",
15+
"avg_rtt_ms": 5,
16+
"type": "RSSecondary",
17+
"tags": {
18+
"data_center": "nyc"
19+
}
20+
},
21+
{
22+
"address": "a:27017",
23+
"avg_rtt_ms": 5,
24+
"type": "RSPrimary",
25+
"tags": {
26+
"data_center": "nyc"
27+
}
28+
}
29+
]
30+
},
31+
"operation": "read",
32+
"read_preference": {
33+
"mode": "SecondaryPreferred",
34+
"tag_sets": [
35+
{}
36+
]
37+
},
38+
"deprioritized_servers": [
39+
{
40+
"address": "b:27017",
41+
"avg_rtt_ms": 5,
42+
"type": "RSSecondary",
43+
"tags": {
44+
"data_center": "nyc"
45+
}
46+
},
47+
{
48+
"address": "c:27017",
49+
"avg_rtt_ms": 5,
50+
"type": "RSSecondary",
51+
"tags": {
52+
"data_center": "nyc"
53+
}
54+
},
55+
{
56+
"address": "a:27017",
57+
"avg_rtt_ms": 5,
58+
"type": "RSPrimary",
59+
"tags": {
60+
"data_center": "nyc"
61+
}
62+
}
63+
],
64+
"suitable_servers": [
65+
{
66+
"address": "b:27017",
67+
"avg_rtt_ms": 5,
68+
"type": "RSSecondary",
69+
"tags": {
70+
"data_center": "nyc"
71+
}
72+
},
73+
{
74+
"address": "c:27017",
75+
"avg_rtt_ms": 5,
76+
"type": "RSSecondary",
77+
"tags": {
78+
"data_center": "nyc"
79+
}
80+
}
81+
],
82+
"in_latency_window": [
83+
{
84+
"address": "b:27017",
85+
"avg_rtt_ms": 5,
86+
"type": "RSSecondary",
87+
"tags": {
88+
"data_center": "nyc"
89+
}
90+
},
91+
{
92+
"address": "c:27017",
93+
"avg_rtt_ms": 5,
94+
"type": "RSSecondary",
95+
"tags": {
96+
"data_center": "nyc"
97+
}
98+
}
99+
]
100+
}

0 commit comments

Comments
 (0)