Skip to content

Commit 87da9cd

Browse files
committed
Updated code
1 parent d96697b commit 87da9cd

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

support/ocm_test.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
package support
2-
32
/*
3+
44
import (
55
"testing"
6-
76
"github.com/onsi/gomega"
8-
97
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
108
"k8s.io/client-go/kubernetes/fake"
11-
129
ocmsdk "github.com/openshift-online/ocm-sdk-go"
1310
cmv1 "github.com/openshift-online/ocm-sdk-go/clustersmgmt/v1"
1411
)
1512
1613
func TestGetMachinePools(t *testing.T) {
1714
// Create a fake OpenShift client for testing
18-
fakeClient := fake.NewSimpleClientset(&machinePool{
15+
fakeClient := fake.NewSimpleClientset(machinePool{
1916
MachinePool: &cmv1.MachinePool{
2017
ObjectMeta: metav1.ObjectMeta{
2118
Name: "test-machinepool",
@@ -31,8 +28,7 @@ func TestGetMachinePools(t *testing.T) {
3128
3229
// Call the GetMachinePools function with the fake client and connection
3330
machinePools := GetMachinePools(test, &ocmsdk.Connection{})
34-
3531
test.Expect(machinePools).Should(gomega.HaveLen(1), "Expected 1 machine pool, but got %d", len(machinePools))
3632
}
37-
*/
3833
34+
*/

0 commit comments

Comments
 (0)