@@ -288,10 +288,8 @@ func TestSSL_Create(t *testing.T) {
288
288
"env" : "production" ,
289
289
"version" : "v2" ,
290
290
},
291
- Snis : []string {"test2.com" , "*.test2.com" },
292
- ValidityStart : 1586038672 ,
293
- ValidityEnd : 4739638672 ,
294
- Status : 1 ,
291
+ Snis : []string {"test2.com" , "*.test2.com" },
292
+ Status : 1 ,
295
293
},
296
294
wantInput : & entity.SSL {
297
295
BaseInfo : entity.BaseInfo {
@@ -304,10 +302,8 @@ func TestSSL_Create(t *testing.T) {
304
302
"env" : "production" ,
305
303
"version" : "v2" ,
306
304
},
307
- Snis : []string {"test2.com" , "*.test2.com" },
308
- ValidityStart : 1586038672 ,
309
- ValidityEnd : 4739638672 ,
310
- Status : 1 ,
305
+ Snis : []string {"test2.com" , "*.test2.com" },
306
+ Status : 1 ,
311
307
},
312
308
wantRet : & entity.SSL {
313
309
BaseInfo : entity.BaseInfo {
@@ -320,10 +316,8 @@ func TestSSL_Create(t *testing.T) {
320
316
"env" : "production" ,
321
317
"version" : "v2" ,
322
318
},
323
- Snis : []string {"test2.com" , "*.test2.com" },
324
- ValidityStart : 1586038672 ,
325
- ValidityEnd : 4739638672 ,
326
- Status : 1 ,
319
+ Snis : []string {"test2.com" , "*.test2.com" },
320
+ Status : 1 ,
327
321
},
328
322
wantErr : nil ,
329
323
},
@@ -348,10 +342,8 @@ func TestSSL_Create(t *testing.T) {
348
342
"env" : "production" ,
349
343
"version" : "v2" ,
350
344
},
351
- Snis : []string {"test2.com" , "*.test2.com" },
352
- ValidityStart : 1586038672 ,
353
- ValidityEnd : 4739638672 ,
354
- Status : 1 ,
345
+ Snis : []string {"test2.com" , "*.test2.com" },
346
+ Status : 1 ,
355
347
},
356
348
wantErr : fmt .Errorf ("create failed" ),
357
349
wantRet : handler .SpecCodeResponse (fmt .Errorf ("create failed" )),
@@ -419,10 +411,8 @@ func TestSSL_Update(t *testing.T) {
419
411
"env" : "production" ,
420
412
"version" : "v2" ,
421
413
},
422
- Snis : []string {"test2.com" , "*.test2.com" },
423
- ValidityStart : 1586038672 ,
424
- ValidityEnd : 4739638672 ,
425
- Status : 1 ,
414
+ Snis : []string {"test2.com" , "*.test2.com" },
415
+ Status : 1 ,
426
416
},
427
417
wantInput : & entity.SSL {
428
418
BaseInfo : entity.BaseInfo {
@@ -435,10 +425,8 @@ func TestSSL_Update(t *testing.T) {
435
425
"env" : "production" ,
436
426
"version" : "v2" ,
437
427
},
438
- Snis : []string {"test2.com" , "*.test2.com" },
439
- ValidityStart : 1586038672 ,
440
- ValidityEnd : 4739638672 ,
441
- Status : 1 ,
428
+ Snis : []string {"test2.com" , "*.test2.com" },
429
+ Status : 1 ,
442
430
},
443
431
wantRet : & entity.SSL {
444
432
BaseInfo : entity.BaseInfo {
@@ -451,10 +439,8 @@ func TestSSL_Update(t *testing.T) {
451
439
"env" : "production" ,
452
440
"version" : "v2" ,
453
441
},
454
- Snis : []string {"test2.com" , "*.test2.com" },
455
- ValidityStart : 1586038672 ,
456
- ValidityEnd : 4739638672 ,
457
- Status : 1 ,
442
+ Snis : []string {"test2.com" , "*.test2.com" },
443
+ Status : 1 ,
458
444
},
459
445
},
460
446
{
@@ -561,10 +547,8 @@ func TestSSL_Patch(t *testing.T) {
561
547
"env" : "production" ,
562
548
"version" : "v2" ,
563
549
},
564
- Snis : []string {"test2.com" , "*.test2.com" },
565
- ValidityStart : 1586038672 ,
566
- ValidityEnd : 4739638672 ,
567
- Status : 1 ,
550
+ Snis : []string {"test2.com" , "*.test2.com" },
551
+ Status : 1 ,
568
552
},
569
553
giveInput : & PatchInput {
570
554
ID : "ssl1" ,
@@ -597,10 +581,8 @@ func TestSSL_Patch(t *testing.T) {
597
581
"env" : "production" ,
598
582
"version" : "v2" ,
599
583
},
600
- Snis : []string {"test2.com" , "*.test2.com" },
601
- ValidityStart : 1586038672 ,
602
- ValidityEnd : 4739638672 ,
603
- Status : 1 ,
584
+ Snis : []string {"test2.com" , "*.test2.com" },
585
+ Status : 1 ,
604
586
},
605
587
getCalled : true ,
606
588
},
@@ -622,10 +604,8 @@ func TestSSL_Patch(t *testing.T) {
622
604
"env" : "production" ,
623
605
"version" : "v2" ,
624
606
},
625
- Snis : []string {"test2.com" , "*.test2.com" },
626
- ValidityStart : 1586038672 ,
627
- ValidityEnd : 4739638672 ,
628
- Status : 1 ,
607
+ Snis : []string {"test2.com" , "*.test2.com" },
608
+ Status : 1 ,
629
609
},
630
610
wantInput : & entity.SSL {
631
611
BaseInfo : entity.BaseInfo {
@@ -653,10 +633,8 @@ func TestSSL_Patch(t *testing.T) {
653
633
"env" : "production" ,
654
634
"version" : "v2" ,
655
635
},
656
- Snis : []string {"test2.com" , "*.test2.com" },
657
- ValidityStart : 1586038672 ,
658
- ValidityEnd : 4739638672 ,
659
- Status : 1 ,
636
+ Snis : []string {"test2.com" , "*.test2.com" },
637
+ Status : 1 ,
660
638
},
661
639
getCalled : true ,
662
640
},
0 commit comments