@@ -29,8 +29,9 @@ func TestRefreshRemoteIPs(t *testing.T) {
29
29
gcp := GCPIPRanges {}
30
30
google := GoogleIPRanges {}
31
31
azure := AzureIPRanges {}
32
+ custom := CustomIPRanges {}
32
33
33
- remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure )
34
+ remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure , custom )
34
35
assert .NoError (t , err )
35
36
assert .NotNil (t , remoteIPRanges )
36
37
assert .NotNil (t , trie )
@@ -62,8 +63,9 @@ func TestRefreshRemoteIPs(t *testing.T) {
62
63
gcp := GCPIPRanges {}
63
64
google := GoogleIPRanges {}
64
65
azure := AzureIPRanges {}
66
+ custom := CustomIPRanges {}
65
67
66
- remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure )
68
+ remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure , custom )
67
69
assert .Error (t , err )
68
70
assert .Nil (t , remoteIPRanges )
69
71
assert .Nil (t , trie )
@@ -78,8 +80,9 @@ func TestRefreshRemoteIPs(t *testing.T) {
78
80
}
79
81
google := GoogleIPRanges {}
80
82
azure := AzureIPRanges {}
83
+ custom := CustomIPRanges {}
81
84
82
- remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure )
85
+ remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure , custom )
83
86
assert .NoError (t , err )
84
87
assert .NotNil (t , remoteIPRanges )
85
88
assert .NotNil (t , trie )
@@ -103,8 +106,9 @@ func TestRefreshRemoteIPs(t *testing.T) {
103
106
}
104
107
google := GoogleIPRanges {}
105
108
azure := AzureIPRanges {}
109
+ custom := CustomIPRanges {}
106
110
107
- remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure )
111
+ remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure , custom )
108
112
assert .Error (t , err )
109
113
assert .Nil (t , remoteIPRanges )
110
114
assert .Nil (t , trie )
@@ -119,8 +123,9 @@ func TestRefreshRemoteIPs(t *testing.T) {
119
123
},
120
124
}
121
125
azure := AzureIPRanges {}
126
+ custom := CustomIPRanges {}
122
127
123
- remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure )
128
+ remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure , custom )
124
129
assert .NoError (t , err )
125
130
assert .NotNil (t , remoteIPRanges )
126
131
assert .NotNil (t , trie )
@@ -144,8 +149,9 @@ func TestRefreshRemoteIPs(t *testing.T) {
144
149
},
145
150
}
146
151
azure := AzureIPRanges {}
152
+ custom := CustomIPRanges {}
147
153
148
- remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure )
154
+ remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure , custom )
149
155
assert .Error (t , err )
150
156
assert .Nil (t , remoteIPRanges )
151
157
assert .Nil (t , trie )
@@ -195,8 +201,9 @@ func TestRefreshRemoteIPs(t *testing.T) {
195
201
},
196
202
},
197
203
}
204
+ custom := CustomIPRanges {}
198
205
199
- remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure )
206
+ remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure , custom )
200
207
assert .NoError (t , err )
201
208
assert .NotNil (t , remoteIPRanges )
202
209
assert .NotNil (t , trie )
@@ -234,8 +241,9 @@ func TestRefreshRemoteIPs(t *testing.T) {
234
241
},
235
242
},
236
243
}
244
+ custom := CustomIPRanges {}
237
245
238
- remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure )
246
+ remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure , custom )
239
247
assert .Error (t , err )
240
248
assert .Nil (t , remoteIPRanges )
241
249
assert .Nil (t , trie )
@@ -256,8 +264,9 @@ func TestRefreshRemoteIPs(t *testing.T) {
256
264
gcp := GCPIPRanges {}
257
265
google := GoogleIPRanges {}
258
266
azure := AzureIPRanges {}
267
+ custom := CustomIPRanges {}
259
268
260
- remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure )
269
+ remoteIPRanges , trie , err := refreshRemoteIPs (aws , gcp , google , azure , custom )
261
270
assert .NoError (t , err )
262
271
assert .NotNil (t , remoteIPRanges )
263
272
assert .NotNil (t , trie )
0 commit comments