@@ -312,51 +312,51 @@ func TestAllocateRemoteUnit(t *testing.T) {
312
312
expectedCalls func ()
313
313
}{
314
314
{
315
- name : "get client tls config error" ,
315
+ name : "get client tls config error" ,
316
316
workUnitID : "" ,
317
- tlsClient : "something" ,
318
- errorMsg : "terminated" ,
317
+ tlsClient : "something" ,
318
+ errorMsg : "terminated" ,
319
319
expectedCalls : func () {
320
320
mockNetceptor .EXPECT ().GetClientTLSConfig (gomock .Any (), gomock .Any (), gomock .Any ()).Return (& tls.Config {}, errors .New ("terminated" ))
321
321
},
322
322
},
323
323
{
324
- name : "sending secrets over non tls connection error" ,
324
+ name : "sending secrets over non tls connection error" ,
325
325
workUnitID : "" ,
326
- tlsClient : "" ,
327
- params : map [string ]string {"secret_" : "secret" },
328
- errorMsg : "cannot send secrets over a non-TLS connection" ,
326
+ tlsClient : "" ,
327
+ params : map [string ]string {"secret_" : "secret" },
328
+ errorMsg : "cannot send secrets over a non-TLS connection" ,
329
329
expectedCalls : func () {
330
330
// For testing purposes
331
331
},
332
332
},
333
333
{
334
- name : "invalid duration error" ,
334
+ name : "invalid duration error" ,
335
335
workUnitID : "" ,
336
- tlsClient : "" ,
337
- ttl : "ttl" ,
338
- errorMsg : "time: invalid duration \" ttl\" " ,
336
+ tlsClient : "" ,
337
+ ttl : "ttl" ,
338
+ errorMsg : "time: invalid duration \" ttl\" " ,
339
339
expectedCalls : func () {
340
340
// For testing purposes
341
341
},
342
342
},
343
343
{
344
- name : "normal case" ,
344
+ name : "normal case" ,
345
345
workUnitID : "" ,
346
- tlsClient : "" ,
347
- ttl : "1.5h" ,
348
- errorMsg : "" ,
349
- signWork : true ,
346
+ tlsClient : "" ,
347
+ ttl : "1.5h" ,
348
+ errorMsg : "" ,
349
+ signWork : true ,
350
350
expectedCalls : func () {
351
351
// For testing purposes
352
352
},
353
353
},
354
354
{
355
- name : "pass workUnitID" ,
355
+ name : "pass workUnitID" ,
356
356
workUnitID : "testID12345678" ,
357
- tlsClient : "" ,
358
- ttl : "1.5h" ,
359
- errorMsg : "" ,
357
+ tlsClient : "" ,
358
+ ttl : "1.5h" ,
359
+ errorMsg : "" ,
360
360
signWork : true ,
361
361
expectedCalls : func () {
362
362
// For testing purposes
0 commit comments