Code change:
framework.ExpectNoError(err, "failed to delete Service %v in namespace %v", testService.ObjectMeta.Name, ns) framework.Logf("Service %s deleted", testSvcName) }) <ins> ginkgo.It("should delete a collection of services", func() { ns := f.Namespace.Name svcClient := f.ClientSet.CoreV1().Services(ns) svcResource := schema.GroupVersionResource{Group: "", Version: "v1", Resource: "services"} svcDynamicClient := f.DynamicClient.Resource(svcResource).Namespace(ns) svcLabel := map[string]string{"e2e-test-service": "delete"} deleteLabel := labels.SelectorFromSet(svcLabel).String() ginkgo.By("creating a collection of services") testServices := []struct { name  string label map[string]string port  int }{ { name:  "e2e-svc-a-" + utilrand.String(5), label: map[string]string{"e2e-test-service": "delete"}, port:  8001, }, { name:  "e2e-svc-b-" + utilrand.String(5), label: map[string]string{"e2e-test-service": "delete"}, port:  8002, }, { name:  "e2e-svc-c-" + utilrand.String(5), label: map[string]string{"e2e-test-service": "keep"}, port:  8003, }, } for _, testService := range testServices { func() { framework.Logf("Creating %s", testService.name) svc := v1.Service{ ObjectMeta: metav1.ObjectMeta{ Name:   testService.name, Labels: testService.label, }, Spec: v1.ServiceSpec{ Type: "ClusterIP", Ports: []v1.ServicePort{{ Name:       "http", Protocol:   v1.ProtocolTCP, Port:       int32(testService.port), TargetPort: intstr.FromInt(testService.port), }}, }, } _, err := svcClient.Create(context.TODO(), &svc, metav1.CreateOptions{}) framework.ExpectNoError(err, "failed to create Service") }() } svcList, err := cs.CoreV1().Services(ns).List(context.TODO(), metav1.ListOptions{}) framework.ExpectNoError(err, "failed to list Services") framework.ExpectEqual(len(svcList.Items), 3, "Required count of services out of sync") ginkgo.By("deleting service collection") err = svcDynamicClient.DeleteCollection(context.TODO(), metav1.DeleteOptions{}, metav1.ListOptions{LabelSelector: deleteLabel}) framework.ExpectNoError(err, "failed to delete service collection. %v", err) svcList, err = cs.CoreV1().Services(ns).List(context.TODO(), metav1.ListOptions{}) framework.ExpectNoError(err, "failed to list Services") framework.ExpectEqual(len(svcList.Items), 1, "Required count of services out of sync") framework.Logf("Collection of services has been deleted") }) </ins> }) // execAffinityTestForSessionAffinityTimeout is a helper function that wrap the logic of

Related discussion:
text: [X] Two weeks soak end date: Nov 18 According to this APIsnoop query, there are still a remaining Service endpoint which is untested. A service resource didn&rsquo;t support endpoint until was merged. Create a watch to track service events Create a service with a static label. Confirm via the watch that the service was created. Delete the service via the service with the dynamic client with . Confirm via the watch that the service was deleted. The above steps have been implemented in the follwing . This query shows all the endpoints hit within a short period of running the above e2e test If a test with these calls gets merged, test coverage will go up by 1 point This test is also created with the goal of conformance promotion. /sig testing /sig network /area conformance
/triage accepted
Waiting on 2 week soak before promoting the test to conformance /reopen
Reopened this issue. <detailsIn response to : Waiting on 2 week soak before promoting the test to conformance /reopen Instructions for interacting with me using PR comments are available . If you have questions or suggestions related to my behavior, please file an issue against the repository. </details