@@ -56,8 +56,7 @@ var _ = Describe("monitor_conf", func() {
56
56
It ("generates conf with an no processes" , func () {
57
57
Expect (cluster ).NotTo (BeNil ())
58
58
cluster .Status .ConnectionString = ""
59
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
60
- Expect (err ).NotTo (HaveOccurred ())
59
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
61
60
Expect (config .RunServers ).NotTo (BeNil ())
62
61
Expect (* config .RunServers ).To (BeFalse ())
63
62
Expect (config .Version ).To (Equal (fdbv1beta2 .Versions .Default .String ()))
@@ -66,8 +65,7 @@ var _ = Describe("monitor_conf", func() {
66
65
67
66
When ("running a storage instance" , func () {
68
67
It ("generates the conf" , func () {
69
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
70
- Expect (err ).NotTo (HaveOccurred ())
68
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
71
69
Expect (config .Version ).To (Equal (fdbv1beta2 .Versions .Default .String ()))
72
70
Expect (config .BinaryPath ).To (BeEmpty ())
73
71
Expect (config .RunServers ).To (BeNil ())
@@ -102,8 +100,7 @@ var _ = Describe("monitor_conf", func() {
102
100
103
101
When ("running a log instance" , func () {
104
102
It ("generates the conf" , func () {
105
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassLog , 1 , FDBImageTypeUnified , nil )
106
- Expect (err ).NotTo (HaveOccurred ())
103
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassLog , 1 , FDBImageTypeUnified , nil )
107
104
Expect (config .Version ).To (Equal (fdbv1beta2 .Versions .Default .String ()))
108
105
Expect (config .BinaryPath ).To (BeEmpty ())
109
106
Expect (config .RunServers ).To (BeNil ())
@@ -115,8 +112,7 @@ var _ = Describe("monitor_conf", func() {
115
112
116
113
When ("using the split image type" , func () {
117
114
It ("generates the conf" , func () {
118
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeSplit , nil )
119
- Expect (err ).NotTo (HaveOccurred ())
115
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeSplit , nil )
120
116
Expect (config .Version ).To (Equal (fdbv1beta2 .Versions .Default .String ()))
121
117
Expect (config .BinaryPath ).To (BeEmpty ())
122
118
Expect (config .RunServers ).To (BeNil ())
@@ -151,8 +147,7 @@ var _ = Describe("monitor_conf", func() {
151
147
152
148
When ("running multiple processes" , func () {
153
149
It ("adds a process ID argument" , func () {
154
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 2 , FDBImageTypeUnified , nil )
155
- Expect (err ).NotTo (HaveOccurred ())
150
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 2 , FDBImageTypeUnified , nil )
156
151
Expect (config .Arguments ).To (HaveLen (baseArgumentLength + 1 ))
157
152
Expect (config .Arguments [7 ]).To (Equal (monitorapi.Argument {ArgumentType : monitorapi .ConcatenateArgumentType , Values : []monitorapi.Argument {
158
153
{Value : "--locality_process_id=" },
@@ -167,8 +162,7 @@ var _ = Describe("monitor_conf", func() {
167
162
})
168
163
169
164
It ("includes the process number in the data directory" , func () {
170
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 2 , FDBImageTypeUnified , nil )
171
- Expect (err ).NotTo (HaveOccurred ())
165
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 2 , FDBImageTypeUnified , nil )
172
166
Expect (config .Arguments [6 ]).To (Equal (monitorapi.Argument {
173
167
ArgumentType : monitorapi .ConcatenateArgumentType ,
174
168
Values : []monitorapi.Argument {
@@ -186,8 +180,7 @@ var _ = Describe("monitor_conf", func() {
186
180
})
187
181
188
182
It ("does not have a listen address" , func () {
189
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
190
- Expect (err ).NotTo (HaveOccurred ())
183
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
191
184
Expect (config .Arguments ).To (HaveLen (baseArgumentLength ))
192
185
Expect (config .Arguments [2 ]).To (Equal (monitorapi.Argument {ArgumentType : monitorapi .ConcatenateArgumentType , Values : []monitorapi.Argument {
193
186
{Value : "--public_address=[" },
@@ -206,8 +199,7 @@ var _ = Describe("monitor_conf", func() {
206
199
})
207
200
208
201
It ("adds a separate listen address" , func () {
209
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
210
- Expect (err ).NotTo (HaveOccurred ())
202
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
211
203
Expect (config .Arguments ).To (HaveLen (baseArgumentLength + 1 ))
212
204
Expect (config .Arguments [2 ]).To (Equal (monitorapi.Argument {ArgumentType : monitorapi .ConcatenateArgumentType , Values : []monitorapi.Argument {
213
205
{Value : "--public_address=[" },
@@ -229,8 +221,7 @@ var _ = Describe("monitor_conf", func() {
229
221
})
230
222
231
223
It ("does not have a listen address" , func () {
232
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
233
- Expect (err ).NotTo (HaveOccurred ())
224
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
234
225
Expect (config .Arguments ).To (HaveLen (baseArgumentLength ))
235
226
Expect (config .Arguments [2 ]).To (Equal (monitorapi.Argument {ArgumentType : monitorapi .ConcatenateArgumentType , Values : []monitorapi.Argument {
236
227
{Value : "--public_address=[" },
@@ -250,8 +241,7 @@ var _ = Describe("monitor_conf", func() {
250
241
})
251
242
252
243
It ("includes the TLS flag in the address" , func () {
253
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
254
- Expect (err ).NotTo (HaveOccurred ())
244
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
255
245
Expect (config .Arguments ).To (HaveLen (baseArgumentLength ))
256
246
Expect (config .Arguments [2 ]).To (Equal (monitorapi.Argument {ArgumentType : monitorapi .ConcatenateArgumentType , Values : []monitorapi.Argument {
257
247
{Value : "--public_address=[" },
@@ -271,8 +261,7 @@ var _ = Describe("monitor_conf", func() {
271
261
})
272
262
273
263
It ("includes both addresses" , func () {
274
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
275
- Expect (err ).NotTo (HaveOccurred ())
264
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
276
265
Expect (config .Arguments ).To (HaveLen (baseArgumentLength ))
277
266
Expect (config .Arguments [2 ]).To (Equal (monitorapi.Argument {ArgumentType : monitorapi .ConcatenateArgumentType , Values : []monitorapi.Argument {
278
267
{Value : "--public_address=[" },
@@ -296,8 +285,7 @@ var _ = Describe("monitor_conf", func() {
296
285
})
297
286
298
287
It ("includes both addresses" , func () {
299
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
300
- Expect (err ).NotTo (HaveOccurred ())
288
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
301
289
Expect (config .Arguments ).To (HaveLen (baseArgumentLength ))
302
290
Expect (config .Arguments [2 ]).To (Equal (monitorapi.Argument {ArgumentType : monitorapi .ConcatenateArgumentType , Values : []monitorapi.Argument {
303
291
{Value : "--public_address=[" },
@@ -322,8 +310,7 @@ var _ = Describe("monitor_conf", func() {
322
310
})
323
311
324
312
It ("includes the custom parameters" , func () {
325
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
326
- Expect (err ).NotTo (HaveOccurred ())
313
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
327
314
Expect (config .Arguments ).To (HaveLen (baseArgumentLength + 1 ))
328
315
Expect (config .Arguments [10 ]).To (Equal (monitorapi.Argument {Value : "--knob_disable_posix_kernel_aio=1" }))
329
316
})
@@ -345,8 +332,7 @@ var _ = Describe("monitor_conf", func() {
345
332
})
346
333
347
334
It ("includes the custom parameters for that class" , func () {
348
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
349
- Expect (err ).NotTo (HaveOccurred ())
335
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
350
336
Expect (config .Arguments ).To (HaveLen (baseArgumentLength + 1 ))
351
337
Expect (config .Arguments [10 ]).To (Equal (monitorapi.Argument {Value : "--knob_test=test1" }))
352
338
})
@@ -362,8 +348,7 @@ var _ = Describe("monitor_conf", func() {
362
348
})
363
349
364
350
It ("uses the variable as the zone ID" , func () {
365
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
366
- Expect (err ).NotTo (HaveOccurred ())
351
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
367
352
Expect (config .Arguments ).To (HaveLen (baseArgumentLength ))
368
353
369
354
Expect (config .Arguments [9 ]).To (Equal (monitorapi.Argument {ArgumentType : monitorapi .ConcatenateArgumentType , Values : []monitorapi.Argument {
@@ -379,8 +364,7 @@ var _ = Describe("monitor_conf", func() {
379
364
})
380
365
381
366
It ("includes the verification rules" , func () {
382
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
383
- Expect (err ).NotTo (HaveOccurred ())
367
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
384
368
Expect (config .Arguments ).To (HaveLen (baseArgumentLength + 1 ))
385
369
Expect (config .Arguments [10 ]).To (Equal (monitorapi.Argument {Value : "--tls_verify_peers=S.CN=foundationdb.org" }))
386
370
})
@@ -392,8 +376,7 @@ var _ = Describe("monitor_conf", func() {
392
376
})
393
377
394
378
It ("includes the log group" , func () {
395
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
396
- Expect (err ).NotTo (HaveOccurred ())
379
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
397
380
Expect (config .Arguments ).To (HaveLen (baseArgumentLength ))
398
381
Expect (config .Arguments [5 ]).To (Equal (monitorapi.Argument {Value : "--loggroup=test-fdb-cluster" }))
399
382
})
@@ -405,8 +388,7 @@ var _ = Describe("monitor_conf", func() {
405
388
})
406
389
407
390
It ("adds an argument for the data center" , func () {
408
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
409
- Expect (err ).NotTo (HaveOccurred ())
391
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
410
392
Expect (config .Arguments ).To (HaveLen (baseArgumentLength + 1 ))
411
393
Expect (config .Arguments [10 ]).To (Equal (monitorapi.Argument {Value : "--locality_dcid=dc01" }))
412
394
})
@@ -418,8 +400,7 @@ var _ = Describe("monitor_conf", func() {
418
400
})
419
401
420
402
It ("adds an argument for the data hall" , func () {
421
- config , err := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
422
- Expect (err ).NotTo (HaveOccurred ())
403
+ config := GetMonitorProcessConfiguration (cluster , fdbv1beta2 .ProcessClassStorage , 1 , FDBImageTypeUnified , nil )
423
404
Expect (config .Arguments ).To (HaveLen (baseArgumentLength + 1 ))
424
405
Expect (config .Arguments [10 ]).To (Equal (monitorapi.Argument {Value : "--locality_data_hall=dh01" }))
425
406
})
0 commit comments