Skip to content

Commit

Permalink
cnf core: use GetGVR() instead of GetServiceGVR()
Browse files Browse the repository at this point in the history
  • Loading branch information
sebrandon1 committed Oct 3, 2024
1 parent 65ad677 commit 1e1e447
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
github.com/nmstate/kubernetes-nmstate/api v0.0.0-20240605150941-df565dd7bf35
github.com/onsi/ginkgo/v2 v2.19.0
github.com/onsi/gomega v1.33.1
github.com/openshift-kni/eco-goinfra v0.0.0-20241001140145-4b805e11b245 // latest
github.com/openshift-kni/eco-goinfra v0.0.0-20241003151956-8f011e8f2d76 // latest
github.com/openshift-kni/k8sreporter v1.0.5
github.com/openshift/api v3.9.1-0.20191111211345-a27ff30ebf09+incompatible
github.com/openshift/cluster-nfd-operator v0.0.0-20240604082319-19bf50784aa7
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1266,6 +1266,8 @@ github.com/openshift-kni/cluster-group-upgrades-operator v0.0.0-20240423171335-f
github.com/openshift-kni/cluster-group-upgrades-operator v0.0.0-20240423171335-f07cdbf8af2c/go.mod h1:hkzqKpmQvh7vgPx8Hw6IExJorKPM0dEeJdOXjIW3gNw=
github.com/openshift-kni/eco-goinfra v0.0.0-20241001140145-4b805e11b245 h1:NX/QFJSdK6gqsPS/Cm/OnrbVNvHovpwLEX98U0PX+5U=
github.com/openshift-kni/eco-goinfra v0.0.0-20241001140145-4b805e11b245/go.mod h1:yWno/75XOopIj/GlMgvm+dye+cwbaMQBVek1XNGl+SI=
github.com/openshift-kni/eco-goinfra v0.0.0-20241003151956-8f011e8f2d76 h1:SjNTz1xYXjBLgoauDqVooIojx8IHBzqa3iGr0LtriU0=
github.com/openshift-kni/eco-goinfra v0.0.0-20241003151956-8f011e8f2d76/go.mod h1:yWno/75XOopIj/GlMgvm+dye+cwbaMQBVek1XNGl+SI=
github.com/openshift-kni/k8sreporter v1.0.5 h1:1GYBc/BTZyVoXilHef43v9A8BSzw700zAPZ6zsZvo6Y=
github.com/openshift-kni/k8sreporter v1.0.5/go.mod h1:fg8HI9yxiKAi6UzR6NTtrmQmA2WKzUqmkRUHwQ1+Bj8=
github.com/openshift-kni/lifecycle-agent v0.0.0-20240606123201-0c45cd13c2f1 h1:y+0Ecc+MSZA/GNS3VOpKq+XK9x8qoNA7TlyHvqbVbpw=
Expand Down
2 changes: 1 addition & 1 deletion tests/cnf/core/network/metallb/tests/bfd-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ var _ = Describe("BFD", Ordered, Label(tsparams.LabelBFDTestCases), ContinueOnFa
err = namespace.NewBuilder(APIClient, tsparams.TestNamespaceName).CleanObjects(
tsparams.DefaultTimeout,
pod.GetGVR(),
service.GetServiceGVR(),
service.GetGVR(),
configmap.GetGVR(),
nad.GetGVR())
Expect(err).ToNot(HaveOccurred(), "Failed to clean test namespace")
Expand Down
4 changes: 2 additions & 2 deletions tests/cnf/core/network/metallb/tests/bgp-tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ var _ = Describe("BGP", Ordered, Label(tsparams.LabelBGPTestCases), ContinueOnFa
err = namespace.NewBuilder(APIClient, tsparams.TestNamespaceName).CleanObjects(
tsparams.DefaultTimeout,
pod.GetGVR(),
service.GetServiceGVR(),
service.GetGVR(),
configmap.GetGVR(),
nad.GetGVR())
Expect(err).ToNot(HaveOccurred(), "Failed to clean test namespace")
Expand Down Expand Up @@ -217,7 +217,7 @@ var _ = Describe("BGP", Ordered, Label(tsparams.LabelBGPTestCases), ContinueOnFa
err = namespace.NewBuilder(APIClient, tsparams.TestNamespaceName).CleanObjects(
tsparams.DefaultTimeout,
pod.GetGVR(),
service.GetServiceGVR(),
service.GetGVR(),
configmap.GetGVR(),
nad.GetGVR())
Expect(err).ToNot(HaveOccurred(), "Failed to clean test namespace")
Expand Down
2 changes: 1 addition & 1 deletion tests/cnf/core/network/metallb/tests/layer2-test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ var _ = Describe("Layer2", Ordered, Label(tsparams.LabelLayer2TestCases), Contin
err = namespace.NewBuilder(APIClient, tsparams.TestNamespaceName).CleanObjects(
tsparams.DefaultTimeout,
pod.GetGVR(),
service.GetServiceGVR(),
service.GetGVR(),
nad.GetGVR())
Expect(err).ToNot(HaveOccurred(), "Failed to clean test namespace")
})
Expand Down

0 comments on commit 1e1e447

Please sign in to comment.