File tree 1 file changed +0
-53
lines changed
1 file changed +0
-53
lines changed Original file line number Diff line number Diff line change @@ -179,59 +179,6 @@ func TestProviderSpecFromRawExtension(t *testing.T) {
179
179
}
180
180
}
181
181
182
- func TestNewClientBuilder (t * testing.T ) {
183
- g := gomega .NewGomegaWithT (t )
184
-
185
- tests := []struct {
186
- name string
187
- kubeconfig string
188
- wantErr bool
189
- }{
190
- {
191
- name : "empty kubeconfig" ,
192
- kubeconfig : "" ,
193
- wantErr : true ,
194
- },
195
- }
196
-
197
- for _ , tt := range tests {
198
- t .Run (tt .name , func (t * testing.T ) {
199
- result , err := NewClientBuilder (tt .kubeconfig )
200
- g .Expect (err ).To (gomega .HaveOccurred ())
201
- g .Expect (result ).To (gomega .BeNil ())
202
- })
203
- }
204
- }
205
-
206
- func TestGetRestConfig (t * testing.T ) {
207
- g := gomega .NewGomegaWithT (t )
208
-
209
- tests := []struct {
210
- name string
211
- kubeconfig string
212
- wantErr bool
213
- }{
214
- {
215
- name : "invalid kubeconfig" ,
216
- kubeconfig : "/path-to-invalid-kube/config" ,
217
- wantErr : true ,
218
- },
219
- {
220
- name : "empty kubeconfig" ,
221
- kubeconfig : "" ,
222
- wantErr : true ,
223
- },
224
- }
225
-
226
- for _ , tt := range tests {
227
- t .Run (tt .name , func (t * testing.T ) {
228
- result , err := getRestConfig (tt .kubeconfig )
229
- g .Expect (err ).To (gomega .HaveOccurred ())
230
- g .Expect (result ).To (gomega .BeNil ())
231
- })
232
- }
233
- }
234
-
235
182
func TestContains (t * testing.T ) {
236
183
g := gomega .NewGomegaWithT (t )
237
184
You can’t perform that action at this time.
0 commit comments