@@ -18,12 +18,17 @@ const mockConnections = [
18
18
orgId : 'orgId' ,
19
19
projectId : 'projectId' ,
20
20
clusterName : 'clusterName' ,
21
- regionalBaseUrl : 'https://example.com' ,
21
+ regionalBaseUrl : null ,
22
22
metricsId : 'metricsId' ,
23
- metricsType : 'host ' ,
23
+ metricsType : 'replicaSet ' ,
24
24
instanceSize : 'M10' ,
25
25
clusterType : 'REPLICASET' ,
26
26
clusterUniqueId : 'clusterUniqueId' ,
27
+ clusterState : 'IDLE' ,
28
+ supports : {
29
+ globalWrites : false ,
30
+ rollingIndexes : false ,
31
+ } ,
27
32
} ,
28
33
} ,
29
34
{
@@ -35,12 +40,17 @@ const mockConnections = [
35
40
orgId : 'orgId' ,
36
41
projectId : 'projectId' ,
37
42
clusterName : 'clusterName' ,
38
- regionalBaseUrl : 'https://example.com' ,
43
+ regionalBaseUrl : null ,
39
44
metricsId : 'metricsId' ,
40
45
metricsType : 'replicaSet' ,
41
46
instanceSize : 'M0' ,
42
47
clusterType : 'REPLICASET' ,
43
48
clusterUniqueId : 'clusterUniqueId' ,
49
+ clusterState : 'IDLE' ,
50
+ supports : {
51
+ globalWrites : false ,
52
+ rollingIndexes : false ,
53
+ } ,
44
54
} ,
45
55
} ,
46
56
{
@@ -52,12 +62,17 @@ const mockConnections = [
52
62
orgId : 'orgId' ,
53
63
projectId : 'projectId' ,
54
64
clusterName : 'clusterName' ,
55
- regionalBaseUrl : 'https://example.com' ,
65
+ regionalBaseUrl : null ,
56
66
metricsId : 'metricsId' ,
57
67
metricsType : 'serverless' ,
58
68
instanceSize : 'SERVERLESS_V2' ,
59
69
clusterType : 'REPLICASET' ,
60
70
clusterUniqueId : 'clusterUniqueId' ,
71
+ clusterState : 'IDLE' ,
72
+ supports : {
73
+ globalWrites : false ,
74
+ rollingIndexes : false ,
75
+ } ,
61
76
} ,
62
77
} ,
63
78
{
@@ -69,12 +84,17 @@ const mockConnections = [
69
84
orgId : 'orgId' ,
70
85
projectId : 'projectId' ,
71
86
clusterName : 'clusterName' ,
72
- regionalBaseUrl : 'https://example.com' ,
87
+ regionalBaseUrl : null ,
73
88
metricsId : 'metricsId' ,
74
89
metricsType : 'replicaSet' ,
75
90
instanceSize : 'M10' ,
76
91
clusterType : 'REPLICASET' ,
77
92
clusterUniqueId : 'clusterUniqueId' ,
93
+ clusterState : 'IDLE' ,
94
+ supports : {
95
+ globalWrites : false ,
96
+ rollingIndexes : true ,
97
+ } ,
78
98
} ,
79
99
} ,
80
100
{
@@ -86,14 +106,16 @@ const mockConnections = [
86
106
orgId : 'orgId' ,
87
107
projectId : 'projectId' ,
88
108
clusterName : 'clusterName' ,
89
- regionalBaseUrl : 'https://example.com' ,
109
+ regionalBaseUrl : null ,
90
110
metricsId : 'metricsId' ,
91
111
metricsType : 'cluster' ,
92
112
instanceSize : 'M10' ,
93
113
clusterType : 'SHARDED' ,
94
114
clusterUniqueId : 'clusterUniqueId' ,
95
- geoSharding : {
96
- selfManagedSharding : false ,
115
+ clusterState : 'IDLE' ,
116
+ supports : {
117
+ globalWrites : false ,
118
+ rollingIndexes : true ,
97
119
} ,
98
120
} ,
99
121
} ,
@@ -106,12 +128,17 @@ const mockConnections = [
106
128
orgId : 'orgId' ,
107
129
projectId : 'projectId' ,
108
130
clusterName : 'clusterName' ,
109
- regionalBaseUrl : 'https://example.com' ,
131
+ regionalBaseUrl : null ,
110
132
metricsId : 'metricsId' ,
111
133
metricsType : 'cluster' ,
112
134
instanceSize : 'M30' ,
113
135
clusterType : 'GEOSHARDED' ,
114
136
clusterUniqueId : 'clusterUniqueId' ,
137
+ clusterState : 'IDLE' ,
138
+ supports : {
139
+ globalWrites : true ,
140
+ rollingIndexes : true ,
141
+ } ,
115
142
} ,
116
143
} ,
117
144
{
@@ -123,14 +150,16 @@ const mockConnections = [
123
150
orgId : 'orgId' ,
124
151
projectId : 'projectId' ,
125
152
clusterName : 'clusterName' ,
126
- regionalBaseUrl : 'https://example.com' ,
153
+ regionalBaseUrl : null ,
127
154
metricsId : 'metricsId' ,
128
155
metricsType : 'cluster' ,
129
156
instanceSize : 'M30' ,
130
157
clusterType : 'GEOSHARDED' ,
131
158
clusterUniqueId : 'clusterUniqueId' ,
132
- geoSharding : {
133
- selfManagedSharding : true ,
159
+ clusterState : 'IDLE' ,
160
+ supports : {
161
+ globalWrites : false ,
162
+ rollingIndexes : true ,
134
163
} ,
135
164
} ,
136
165
} ,
@@ -143,12 +172,17 @@ const mockConnections = [
143
172
orgId : 'orgId' ,
144
173
projectId : 'projectId' ,
145
174
clusterName : 'clusterName' ,
146
- regionalBaseUrl : 'https://example.com' ,
175
+ regionalBaseUrl : null ,
147
176
metricsId : 'metricsId' ,
148
177
metricsType : 'flex' ,
149
178
instanceSize : 'FLEX' ,
150
179
clusterType : 'REPLICASET' ,
151
180
clusterUniqueId : 'clusterUniqueId' ,
181
+ clusterState : 'IDLE' ,
182
+ supports : {
183
+ globalWrites : false ,
184
+ rollingIndexes : false ,
185
+ } ,
152
186
} ,
153
187
} ,
154
188
] as const ;
0 commit comments