Skip to content

Commit c93c53c

Browse files
authored
Merge pull request kubernetes#123254 from liggitt/revert-copy-test
Revert "kubeadm: increase ut coverage for app/util"
2 parents 3bf9477 + 4ae2b3f commit c93c53c

File tree

2 files changed

+0
-121
lines changed

2 files changed

+0
-121
lines changed

cmd/kubeadm/app/util/copy_test.go

Lines changed: 0 additions & 89 deletions
This file was deleted.

cmd/kubeadm/app/util/marshal_test.go

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -431,35 +431,3 @@ func TestGroupVersionKindsHasResetConfiguration(t *testing.T) {
431431
})
432432
}
433433
}
434-
435-
func TestGroupVersionKindsHasClusterConfiguration(t *testing.T) {
436-
tests := []struct {
437-
name string
438-
gvks []schema.GroupVersionKind
439-
expected bool
440-
}{
441-
{
442-
name: "does not have ClusterConfiguraiton",
443-
gvks: []schema.GroupVersionKind{
444-
{Group: "foo.k8s.io", Version: "v1", Kind: "Foo"},
445-
},
446-
expected: false,
447-
},
448-
{
449-
name: "has ClusterConfiguraiton",
450-
gvks: []schema.GroupVersionKind{
451-
{Group: "foo.k8s.io", Version: "v1", Kind: "Foo"},
452-
{Group: "foo.k8s.io", Version: "v1", Kind: "ClusterConfiguration"},
453-
},
454-
expected: true,
455-
},
456-
}
457-
for _, rt := range tests {
458-
t.Run(rt.name, func(t *testing.T) {
459-
actual := GroupVersionKindsHasClusterConfiguration(rt.gvks...)
460-
if rt.expected != actual {
461-
t.Errorf("expected gvks to have a ClusterConfiguration: %t\n\tactual: %t\n", rt.expected, actual)
462-
}
463-
})
464-
}
465-
}

0 commit comments

Comments
 (0)