Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
isindir committed Jun 9, 2024
1 parent 96598e0 commit bdd555b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pkg/kor/namespacesMoreTests_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ func createHappyDeployFakeClientInterfaces(ctx context.Context, t *testing.T, ns
}

listKinds := map[schema.GroupVersionResource]string{
schema.GroupVersionResource{Group: "apps", Version: "v1", Resource: "deployments"}: "DeploymentList",
schema.GroupVersionResource{Group: "", Version: "v1", Resource: "namespaces"}: "NamespaceList",
{Group: "apps", Version: "v1", Resource: "deployments"}: "DeploymentList",
{Group: "", Version: "v1", Resource: "namespaces"}: "NamespaceList",
}
dynamicClient := dynamicfake.NewSimpleDynamicClientWithCustomListKinds(scheme, listKinds, deployment, namespace)

Expand All @@ -174,8 +174,8 @@ func createHappyEmptyFakeClientInterfaces(ctx context.Context, t *testing.T, ns,
}

listKinds := map[schema.GroupVersionResource]string{
schema.GroupVersionResource{Group: "apps", Version: "v1", Resource: "deployments"}: "DeploymentList",
schema.GroupVersionResource{Group: "", Version: "v1", Resource: "namespaces"}: "NamespaceList",
{Group: "apps", Version: "v1", Resource: "deployments"}: "DeploymentList",
{Group: "", Version: "v1", Resource: "namespaces"}: "NamespaceList",
}
dynamicClient := dynamicfake.NewSimpleDynamicClientWithCustomListKinds(scheme, listKinds, namespace)

Expand All @@ -195,8 +195,8 @@ func createUnhappyDiscoveryFakeClientInterfaces(ctx context.Context, t *testing.
}

listKinds := map[schema.GroupVersionResource]string{
schema.GroupVersionResource{Group: "apps", Version: "v1", Resource: "deployments"}: "DeploymentList",
schema.GroupVersionResource{Group: "", Version: "v1", Resource: "namespaces"}: "NamespaceList",
{Group: "apps", Version: "v1", Resource: "deployments"}: "DeploymentList",
{Group: "", Version: "v1", Resource: "namespaces"}: "NamespaceList",
}
dynamicClient := dynamicfake.NewSimpleDynamicClientWithCustomListKinds(scheme, listKinds, namespace)

Expand All @@ -216,8 +216,8 @@ func createBrokenAPIResourceListDiscoveryFakeClientInterfaces(ctx context.Contex
}

listKinds := map[schema.GroupVersionResource]string{
schema.GroupVersionResource{Group: "apps", Version: "v1", Resource: "deployments"}: "DeploymentList",
schema.GroupVersionResource{Group: "", Version: "v1", Resource: "namespaces"}: "NamespaceList",
{Group: "apps", Version: "v1", Resource: "deployments"}: "DeploymentList",
{Group: "", Version: "v1", Resource: "namespaces"}: "NamespaceList",
}
dynamicClient := dynamicfake.NewSimpleDynamicClientWithCustomListKinds(scheme, listKinds, namespace)

Expand All @@ -243,8 +243,8 @@ func createDynamicDeployListForcedErrorFakeClientInterfaces(ctx context.Context,
}

listKinds := map[schema.GroupVersionResource]string{
schema.GroupVersionResource{Group: "apps", Version: "v1", Resource: "deployments"}: "DeploymentList",
schema.GroupVersionResource{Group: "", Version: "v1", Resource: "namespaces"}: "NamespaceList",
{Group: "apps", Version: "v1", Resource: "deployments"}: "DeploymentList",
{Group: "", Version: "v1", Resource: "namespaces"}: "NamespaceList",
}
dynamicClient := dynamicfake.NewSimpleDynamicClientWithCustomListKinds(scheme, listKinds)
dynamicClient.PrependReactor("list", "deployments", func(action ktesting.Action) (handled bool, ret runtime.Object, err error) {
Expand Down

0 comments on commit bdd555b

Please sign in to comment.