From 9c1f9c3962717c6078fa166eeb76242a4cc1d751 Mon Sep 17 00:00:00 2001 From: Swetha Repakula Date: Fri, 19 Mar 2021 14:39:16 -0700 Subject: [PATCH] Promote EndpointSlice API test to Conformance --- test/conformance/testdata/conformance.yaml | 10 ++++++++++ test/e2e/network/endpointslice.go | 10 +++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/test/conformance/testdata/conformance.yaml b/test/conformance/testdata/conformance.yaml index 9734d30ecc7..658c1380eb7 100755 --- a/test/conformance/testdata/conformance.yaml +++ b/test/conformance/testdata/conformance.yaml @@ -1213,6 +1213,16 @@ named "kubernetes" in the default namespace. release: v1.21 file: test/e2e/network/endpointslice.go +- testname: EndpointSlice API + codename: '[sig-network] EndpointSlice should support creating EndpointSlice API + operations [Conformance]' + description: The discovery.k8s.io API group MUST exist in the /apis discovery document. + The discovery.k8s.io/v1 API group/version MUST exist in the /apis/discovery.k8s.io + discovery document. The endpointslices resource MUST exist in the /apis/discovery.k8s.io/v1 + discovery document. The endpointslices resource must support create, get, list, + watch, update, patch, delete, and deletecollection. + release: v1.21 + file: test/e2e/network/endpointslice.go - testname: EndpointSlice Mirroring codename: '[sig-network] EndpointSliceMirroring should mirror a custom Endpoints resource through create update and delete [Conformance]' diff --git a/test/e2e/network/endpointslice.go b/test/e2e/network/endpointslice.go index 230ef512722..8a7373c8b1f 100644 --- a/test/e2e/network/endpointslice.go +++ b/test/e2e/network/endpointslice.go @@ -332,7 +332,15 @@ var _ = common.SIGDescribe("EndpointSlice", func() { expectEndpointsAndSlices(cs, f.Namespace.Name, svc2, []*v1.Pod{pod1, pod2}, 2, 2, true) }) - ginkgo.It("should support creating EndpointSlice API operations", func() { + /* + Release: v1.21 + Testname: EndpointSlice API + Description: The discovery.k8s.io API group MUST exist in the /apis discovery document. + The discovery.k8s.io/v1 API group/version MUST exist in the /apis/discovery.k8s.io discovery document. + The endpointslices resource MUST exist in the /apis/discovery.k8s.io/v1 discovery document. + The endpointslices resource must support create, get, list, watch, update, patch, delete, and deletecollection. + */ + framework.ConformanceIt("should support creating EndpointSlice API operations", func() { // Setup ns := f.Namespace.Name epsVersion := "v1"