diff --git a/test/e2e/webhook_test.go b/test/e2e/webhook_test.go index f0cd6dd9a..6a914e4bf 100644 --- a/test/e2e/webhook_test.go +++ b/test/e2e/webhook_test.go @@ -631,7 +631,7 @@ var _ = Describe("webhook tests for ClusterResourceOverride CREATE operations re Consistently(func(g Gomega) error { cro1 := &placementv1alpha1.ClusterResourceOverride{ ObjectMeta: metav1.ObjectMeta{ - Name: fmt.Sprintf("test-cro-%d", GinkgoParallelProcess()), + Name: fmt.Sprintf("test-create-cro-%d", GinkgoParallelProcess()), }, Spec: placementv1alpha1.ClusterResourceOverrideSpec{ ClusterResourceSelectors: []placementv1beta1.ClusterResourceSelector{ @@ -695,9 +695,9 @@ var _ = Describe("webhook tests for ClusterResourceOverride CREATE operations re }) }) -var _ = Describe("webhook tests for CRO UPDATE operations", Ordered, func() { +var _ = Describe("webhook tests for ClusterResourceOverride UPDATE operations", Ordered, func() { croName := fmt.Sprintf(croNameTemplate, GinkgoParallelProcess()) - cro1Name := fmt.Sprintf("test-cro-%d", GinkgoParallelProcess()) + cro1Name := fmt.Sprintf("test-update-cro-%d", GinkgoParallelProcess()) cro := &placementv1alpha1.ClusterResourceOverride{ ObjectMeta: metav1.ObjectMeta{ Name: croName, @@ -1079,7 +1079,7 @@ var _ = Describe("webhook tests for ResourceOverride CREATE operations resource By("create 2nd resourceOverride with same resource selection") ro1 := &placementv1alpha1.ResourceOverride{ ObjectMeta: metav1.ObjectMeta{ - Name: fmt.Sprintf("test-ro-%d", GinkgoParallelProcess()), + Name: fmt.Sprintf("test-create-ro-%d", GinkgoParallelProcess()), Namespace: roNamespace, }, Spec: placementv1alpha1.ResourceOverrideSpec{ @@ -1126,7 +1126,7 @@ var _ = Describe("webhook tests for ResourceOverride CREATE operations resource var _ = Describe("webhook tests for ResourceOverride UPDATE operations", Ordered, func() { roName := fmt.Sprintf(roNameTemplate, GinkgoParallelProcess()) - ro1Name := fmt.Sprintf("test-ro-%d", GinkgoParallelProcess()) + ro1Name := fmt.Sprintf("test-update-ro-%d", GinkgoParallelProcess()) roNamespace := fmt.Sprintf(workNamespaceNameTemplate, GinkgoParallelProcess()) selector := placementv1alpha1.ResourceSelector{ Group: "apps", @@ -1201,7 +1201,7 @@ var _ = Describe("webhook tests for ResourceOverride UPDATE operations", Ordered By("creating a new resource override") ro1 := &placementv1alpha1.ResourceOverride{ ObjectMeta: metav1.ObjectMeta{ - Name: fmt.Sprintf("test-ro-%d", GinkgoParallelProcess()), + Name: ro1Name, Namespace: roNamespace, }, Spec: placementv1alpha1.ResourceOverrideSpec{