Signed-off-by: Roland.Ma <rolandma@yunify.com>
This commit is contained in:
Roland.Ma
2020-11-11 05:19:09 +00:00
parent 5500e93b5f
commit 0a5e04d186
5 changed files with 466 additions and 1 deletions

View File

@@ -238,7 +238,7 @@ func getKey(group *v1alpha2.Group, t *testing.T) string {
return key
}
func TestDoNothing(t *testing.T) {
func TestDeletesGroup(t *testing.T) {
f := newFixture(t)
group := newGroup("test")
@@ -260,3 +260,14 @@ func TestDoNothing(t *testing.T) {
f.expectUpdateGroupsDeleteAction(deletedGroup)
f.run(getKey(deletedGroup, t))
}
func TestDoNothing(t *testing.T) {
f := newFixture(t)
group := newGroup("test")
f.groupLister = append(f.groupLister, group)
f.objects = append(f.objects, group)
f.expectUpdateGroupsFinalizerAction(group)
f.run(getKey(group, t))
}