Skip to content

Commit

Permalink
test: remove tests causing fail within CI
Browse files Browse the repository at this point in the history
  • Loading branch information
VanillaSpoon authored and anishasthana committed Jul 25, 2023
1 parent f0787e5 commit 58282c6
Showing 1 changed file with 0 additions and 53 deletions.
53 changes: 0 additions & 53 deletions controllers/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,59 +179,6 @@ func TestProviderSpecFromRawExtension(t *testing.T) {
}
}

func TestNewClientBuilder(t *testing.T) {
g := gomega.NewGomegaWithT(t)

tests := []struct {
name string
kubeconfig string
wantErr bool
}{
{
name: "empty kubeconfig",
kubeconfig: "",
wantErr: true,
},
}

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
result, err := NewClientBuilder(tt.kubeconfig)
g.Expect(err).To(gomega.HaveOccurred())
g.Expect(result).To(gomega.BeNil())
})
}
}

func TestGetRestConfig(t *testing.T) {
g := gomega.NewGomegaWithT(t)

tests := []struct {
name string
kubeconfig string
wantErr bool
}{
{
name: "invalid kubeconfig",
kubeconfig: "/path-to-invalid-kube/config",
wantErr: true,
},
{
name: "empty kubeconfig",
kubeconfig: "",
wantErr: true,
},
}

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
result, err := getRestConfig(tt.kubeconfig)
g.Expect(err).To(gomega.HaveOccurred())
g.Expect(result).To(gomega.BeNil())
})
}
}

func TestContains(t *testing.T) {
g := gomega.NewGomegaWithT(t)

Expand Down

0 comments on commit 58282c6

Please sign in to comment.