@@ -387,6 +387,12 @@ func TestCreateInstance(t *testing.T) {
387
387
}, nil )
388
388
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
389
389
Return (nil )
390
+ m .
391
+ DescribeNetworkInterfaces (gomock .Any ()).
392
+ Return (& ec2.DescribeNetworkInterfacesOutput {
393
+ NetworkInterfaces : []* ec2.NetworkInterface {},
394
+ NextToken : nil ,
395
+ }, nil )
390
396
},
391
397
check : func (instance * infrav1.Instance , err error ) {
392
398
if err != nil {
@@ -494,6 +500,12 @@ func TestCreateInstance(t *testing.T) {
494
500
495
501
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
496
502
Return (nil )
503
+ m .
504
+ DescribeNetworkInterfaces (gomock .Any ()).
505
+ Return (& ec2.DescribeNetworkInterfacesOutput {
506
+ NetworkInterfaces : []* ec2.NetworkInterface {},
507
+ NextToken : nil ,
508
+ }, nil )
497
509
},
498
510
check : func (instance * infrav1.Instance , err error ) {
499
511
if err != nil {
@@ -628,6 +640,12 @@ func TestCreateInstance(t *testing.T) {
628
640
629
641
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
630
642
Return (nil )
643
+ m .
644
+ DescribeNetworkInterfaces (gomock .Any ()).
645
+ Return (& ec2.DescribeNetworkInterfacesOutput {
646
+ NetworkInterfaces : []* ec2.NetworkInterface {},
647
+ NextToken : nil ,
648
+ }, nil )
631
649
},
632
650
check : func (instance * infrav1.Instance , err error ) {
633
651
if err != nil {
@@ -758,6 +776,12 @@ func TestCreateInstance(t *testing.T) {
758
776
759
777
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
760
778
Return (nil )
779
+ m .
780
+ DescribeNetworkInterfaces (gomock .Any ()).
781
+ Return (& ec2.DescribeNetworkInterfacesOutput {
782
+ NetworkInterfaces : []* ec2.NetworkInterface {},
783
+ NextToken : nil ,
784
+ }, nil )
761
785
},
762
786
check : func (instance * infrav1.Instance , err error ) {
763
787
if err != nil {
@@ -889,6 +913,12 @@ func TestCreateInstance(t *testing.T) {
889
913
890
914
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
891
915
Return (nil )
916
+ m .
917
+ DescribeNetworkInterfaces (gomock .Any ()).
918
+ Return (& ec2.DescribeNetworkInterfacesOutput {
919
+ NetworkInterfaces : []* ec2.NetworkInterface {},
920
+ NextToken : nil ,
921
+ }, nil )
892
922
},
893
923
check : func (instance * infrav1.Instance , err error ) {
894
924
if err != nil {
@@ -996,6 +1026,12 @@ func TestCreateInstance(t *testing.T) {
996
1026
}, nil )
997
1027
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
998
1028
Return (nil )
1029
+ m .
1030
+ DescribeNetworkInterfaces (gomock .Any ()).
1031
+ Return (& ec2.DescribeNetworkInterfacesOutput {
1032
+ NetworkInterfaces : []* ec2.NetworkInterface {},
1033
+ NextToken : nil ,
1034
+ }, nil )
999
1035
},
1000
1036
check : func (instance * infrav1.Instance , err error ) {
1001
1037
if err != nil {
@@ -1102,6 +1138,12 @@ func TestCreateInstance(t *testing.T) {
1102
1138
}, nil )
1103
1139
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
1104
1140
Return (nil )
1141
+ m .
1142
+ DescribeNetworkInterfaces (gomock .Any ()).
1143
+ Return (& ec2.DescribeNetworkInterfacesOutput {
1144
+ NetworkInterfaces : []* ec2.NetworkInterface {},
1145
+ NextToken : nil ,
1146
+ }, nil )
1105
1147
},
1106
1148
check : func (instance * infrav1.Instance , err error ) {
1107
1149
if err != nil {
@@ -1283,6 +1325,12 @@ func TestCreateInstance(t *testing.T) {
1283
1325
}, nil )
1284
1326
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
1285
1327
Return (nil )
1328
+ m .
1329
+ DescribeNetworkInterfaces (gomock .Any ()).
1330
+ Return (& ec2.DescribeNetworkInterfacesOutput {
1331
+ NetworkInterfaces : []* ec2.NetworkInterface {},
1332
+ NextToken : nil ,
1333
+ }, nil )
1286
1334
},
1287
1335
check : func (instance * infrav1.Instance , err error ) {
1288
1336
if err != nil {
@@ -1539,6 +1587,12 @@ func TestCreateInstance(t *testing.T) {
1539
1587
}, nil )
1540
1588
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
1541
1589
Return (nil )
1590
+ m .
1591
+ DescribeNetworkInterfaces (gomock .Any ()).
1592
+ Return (& ec2.DescribeNetworkInterfacesOutput {
1593
+ NetworkInterfaces : []* ec2.NetworkInterface {},
1594
+ NextToken : nil ,
1595
+ }, nil )
1542
1596
},
1543
1597
check : func (instance * infrav1.Instance , err error ) {
1544
1598
if err != nil {
@@ -1738,6 +1792,12 @@ func TestCreateInstance(t *testing.T) {
1738
1792
}, nil )
1739
1793
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
1740
1794
Return (nil )
1795
+ m .
1796
+ DescribeNetworkInterfaces (gomock .Any ()).
1797
+ Return (& ec2.DescribeNetworkInterfacesOutput {
1798
+ NetworkInterfaces : []* ec2.NetworkInterface {},
1799
+ NextToken : nil ,
1800
+ }, nil )
1741
1801
},
1742
1802
check : func (instance * infrav1.Instance , err error ) {
1743
1803
if err != nil {
@@ -1835,6 +1895,12 @@ func TestCreateInstance(t *testing.T) {
1835
1895
}, nil )
1836
1896
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
1837
1897
Return (nil )
1898
+ m .
1899
+ DescribeNetworkInterfaces (gomock .Any ()).
1900
+ Return (& ec2.DescribeNetworkInterfacesOutput {
1901
+ NetworkInterfaces : []* ec2.NetworkInterface {},
1902
+ NextToken : nil ,
1903
+ }, nil )
1838
1904
},
1839
1905
check : func (instance * infrav1.Instance , err error ) {
1840
1906
if err != nil {
@@ -2003,6 +2069,12 @@ func TestCreateInstance(t *testing.T) {
2003
2069
}, nil )
2004
2070
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
2005
2071
Return (nil )
2072
+ m .
2073
+ DescribeNetworkInterfaces (gomock .Any ()).
2074
+ Return (& ec2.DescribeNetworkInterfacesOutput {
2075
+ NetworkInterfaces : []* ec2.NetworkInterface {},
2076
+ NextToken : nil ,
2077
+ }, nil )
2006
2078
},
2007
2079
check : func (instance * infrav1.Instance , err error ) {
2008
2080
if err != nil {
@@ -2138,6 +2210,12 @@ func TestCreateInstance(t *testing.T) {
2138
2210
}, nil )
2139
2211
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
2140
2212
Return (nil )
2213
+ m .
2214
+ DescribeNetworkInterfaces (gomock .Any ()).
2215
+ Return (& ec2.DescribeNetworkInterfacesOutput {
2216
+ NetworkInterfaces : []* ec2.NetworkInterface {},
2217
+ NextToken : nil ,
2218
+ }, nil )
2141
2219
},
2142
2220
check : func (instance * infrav1.Instance , err error ) {
2143
2221
if err != nil {
@@ -2275,6 +2353,12 @@ func TestCreateInstance(t *testing.T) {
2275
2353
}, nil )
2276
2354
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
2277
2355
Return (nil )
2356
+ m .
2357
+ DescribeNetworkInterfaces (gomock .Any ()).
2358
+ Return (& ec2.DescribeNetworkInterfacesOutput {
2359
+ NetworkInterfaces : []* ec2.NetworkInterface {},
2360
+ NextToken : nil ,
2361
+ }, nil )
2278
2362
},
2279
2363
check : func (instance * infrav1.Instance , err error ) {
2280
2364
if err != nil {
@@ -2383,6 +2467,12 @@ func TestCreateInstance(t *testing.T) {
2383
2467
})
2384
2468
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
2385
2469
Return (nil )
2470
+ m .
2471
+ DescribeNetworkInterfaces (gomock .Any ()).
2472
+ Return (& ec2.DescribeNetworkInterfacesOutput {
2473
+ NetworkInterfaces : []* ec2.NetworkInterface {},
2474
+ NextToken : nil ,
2475
+ }, nil )
2386
2476
},
2387
2477
check : func (instance * infrav1.Instance , err error ) {
2388
2478
if err != nil {
@@ -2492,6 +2582,12 @@ func TestCreateInstance(t *testing.T) {
2492
2582
})
2493
2583
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
2494
2584
Return (nil )
2585
+ m .
2586
+ DescribeNetworkInterfaces (gomock .Any ()).
2587
+ Return (& ec2.DescribeNetworkInterfacesOutput {
2588
+ NetworkInterfaces : []* ec2.NetworkInterface {},
2589
+ NextToken : nil ,
2590
+ }, nil )
2495
2591
},
2496
2592
check : func (instance * infrav1.Instance , err error ) {
2497
2593
if err != nil {
@@ -2602,6 +2698,12 @@ func TestCreateInstance(t *testing.T) {
2602
2698
})
2603
2699
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
2604
2700
Return (nil )
2701
+ m .
2702
+ DescribeNetworkInterfaces (gomock .Any ()).
2703
+ Return (& ec2.DescribeNetworkInterfacesOutput {
2704
+ NetworkInterfaces : []* ec2.NetworkInterface {},
2705
+ NextToken : nil ,
2706
+ }, nil )
2605
2707
},
2606
2708
check : func (instance * infrav1.Instance , err error ) {
2607
2709
if err != nil {
@@ -2709,6 +2811,12 @@ func TestCreateInstance(t *testing.T) {
2709
2811
})
2710
2812
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
2711
2813
Return (nil )
2814
+ m .
2815
+ DescribeNetworkInterfaces (gomock .Any ()).
2816
+ Return (& ec2.DescribeNetworkInterfacesOutput {
2817
+ NetworkInterfaces : []* ec2.NetworkInterface {},
2818
+ NextToken : nil ,
2819
+ }, nil )
2712
2820
},
2713
2821
check : func (instance * infrav1.Instance , err error ) {
2714
2822
if err != nil {
@@ -2816,6 +2924,12 @@ func TestCreateInstance(t *testing.T) {
2816
2924
})
2817
2925
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
2818
2926
Return (nil )
2927
+ m .
2928
+ DescribeNetworkInterfaces (gomock .Any ()).
2929
+ Return (& ec2.DescribeNetworkInterfacesOutput {
2930
+ NetworkInterfaces : []* ec2.NetworkInterface {},
2931
+ NextToken : nil ,
2932
+ }, nil )
2819
2933
},
2820
2934
check : func (instance * infrav1.Instance , err error ) {
2821
2935
if err != nil {
@@ -2923,6 +3037,12 @@ func TestCreateInstance(t *testing.T) {
2923
3037
})
2924
3038
m .WaitUntilInstanceRunningWithContext (gomock .Any (), gomock .Any (), gomock .Any ()).
2925
3039
Return (nil )
3040
+ m .
3041
+ DescribeNetworkInterfaces (gomock .Any ()).
3042
+ Return (& ec2.DescribeNetworkInterfacesOutput {
3043
+ NetworkInterfaces : []* ec2.NetworkInterface {},
3044
+ NextToken : nil ,
3045
+ }, nil )
2926
3046
},
2927
3047
check : func (instance * infrav1.Instance , err error ) {
2928
3048
if err != nil {
0 commit comments