Change:
[X] test approval issue : [X] test pr : 3 May 2023 [X] two weeks soak end date : 16 May 2023 [X] test promotion pr : [X] remove endpoint form file According to following two APIsnoop queries, there are still 12 APIResources endpoints that are not tested for Conformance. Using a number of existing e2e test practices a new has been created to address these 12 endpoints. The e2e logs for this test are listed below. This query shows the following apiresources endpoints are hit within a short period of running this e2e test. If a test with these calls gets merged, test coverage will go up by 12 points This test is also created with the goal of conformance promotion. /sig testing /sig architecture /area conformance
/triage accepted
/open For tracking the rest of the processes
/reopen
Reopened this issue. <detailsIn response to : /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

Discussion:
import ( "context" <ins> "fmt" "path" </ins> "strings" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

admissionapi "k8s.io/pod-security-admission/api" "github.com/onsi/ginkgo/v2" <ins> "github.com/onsi/gomega" </ins> ) var storageVersionServerVersion = utilversion.MustParseSemantic("v1.13.99")

framework.ExpectEqual(true, match, "failed to find a valid version for PreferredVersion") } }) <ins> ginkgo.It("should locate the groupVersion and a resource within each APIGroup", func(ctx context.Context) { tests := []struct { apiBasePath   string apiGroup      string apiVersion    string validResource string }{ { apiBasePath:   "/api", apiGroup:      "", apiVersion:    "v1", validResource: "namespaces", }, { apiBasePath:   "/apis", apiGroup:      "admissionregistration.k8s.io", apiVersion:    "v1", validResource: "validatingwebhookconfigurations", }, { apiBasePath:   "/apis", apiGroup:      "apiextensions.k8s.io", apiVersion:    "v1", validResource: "customresourcedefinitions", }, { apiBasePath:   "/apis", apiGroup:      "apiregistration.k8s.io", apiVersion:    "v1", validResource: "apiservices", }, { apiBasePath:   "/apis", apiGroup:      "apps", apiVersion:    "v1", validResource: "deployments", }, { apiBasePath:   "/apis", apiGroup:      "authentication.k8s.io", apiVersion:    "v1", validResource: "tokenreviews", }, { apiBasePath:   "/apis", apiGroup:      "authorization.k8s.io", apiVersion:    "v1", validResource: "selfsubjectaccessreviews", }, { apiBasePath:   "/apis", apiGroup:      "autoscaling", apiVersion:    "v1", validResource: "horizontalpodautoscalers", }, { apiBasePath:   "/apis", apiGroup:      "autoscaling", apiVersion:    "v2", validResource: "horizontalpodautoscalers", }, { apiBasePath:   "/apis", apiGroup:      "batch", apiVersion:    "v1", validResource: "jobs", }, { apiBasePath:   "/apis", apiGroup:      "certificates.k8s.io", apiVersion:    "v1", validResource: "certificatesigningrequests", }, { apiBasePath:   "/apis", apiGroup:      "coordination.k8s.io", apiVersion:    "v1", validResource: "leases", }, { apiBasePath:   "/apis", apiGroup:      "discovery.k8s.io", apiVersion:    "v1", validResource: "endpointslices", }, { apiBasePath:   "/apis", apiGroup:      "events.k8s.io", apiVersion:    "v1", validResource: "events", }, { apiBasePath:   "/apis", apiGroup:      "networking.k8s.io", apiVersion:    "v1", validResource: "ingresses", }, { apiBasePath:   "/apis", apiGroup:      "node.k8s.io", apiVersion:    "v1", validResource: "runtimeclasses", }, { apiBasePath:   "/apis", apiGroup:      "policy", apiVersion:    "v1", validResource: "poddisruptionbudgets", }, { apiBasePath:   "/apis", apiGroup:      "scheduling.k8s.io", apiVersion:    "v1", validResource: "priorityclasses", }, { apiBasePath:   "/apis", apiGroup:      "storage.k8s.io", apiVersion:    "v1", validResource: "csinodes", }, } for _, t := range tests { resourceList := &metav1.APIResourceList{} apiPath := path.Join(t.apiBasePath, t.apiGroup, t.apiVersion) ginkgo.By(fmt.Sprintf("Requesting APIResourceList from %q", apiPath)) err := f.ClientSet.Discovery().RESTClient().Get().AbsPath(apiPath).Do(ctx).Into(resourceList) framework.ExpectNoError(err, "Fail to access: %s", apiPath) gomega.Expect(resourceList.GroupVersion).To(gomega.Equal((schema.GroupVersion{Group: t.apiGroup, Version: t.apiVersion}).String())) foundResource := false for _, r := range resourceList.APIResources { if t.validResource == r.Name { foundResource = true break } } gomega.Expect(foundResource).To(gomega.BeTrue(), "Resource %q was not found inside of resourceListn%#v", t.validResource, resourceList.APIResources) } }) </ins> })