Promote CRD field selector e2e test to conformance (#128109)

* Promote CRD field selector e2e test to conformance

* Fix release number for conformance test

* re-run update conformance
This commit is contained in:
Joe Betz 2024-10-30 17:19:25 -04:00 committed by GitHub
parent dc1d7f41ef
commit c59fba7f26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 8 deletions

View File

@ -330,6 +330,19 @@
resources are available.
release: v1.16
file: test/e2e/apimachinery/custom_resource_definition.go
- testname: custom-resource-definition-field-selectors-list-watch-register-informers
codename: '[sig-api-machinery] CustomResourceFieldSelectors [Privileged:ClusterAdmin]
CustomResourceFieldSelectors MUST list and watch custom resources matching the
field selector [Conformance]'
description: Create a Custom Resource Definition with SelectableFields. Create a
custom resource with two versions and a conversion webhook that converts between
the versions. Attempt to list, watch and register informers for the custom resources
with field selectors; the lists, watches and informers MUST return only custom
resources matching the field selector. Delete and update some of the resources
with field selectors; the lists, watches and informers MUST return only the custom
resources matching custom resources.
release: v1.32
file: test/e2e/apimachinery/crd_selectable_fields.go
- testname: Custom Resource OpenAPI Publish, stop serving version
codename: '[sig-api-machinery] CustomResourcePublishOpenAPI [Privileged:ClusterAdmin]
removes definition from spec when one version gets changed to not be served [Conformance]'

View File

@ -113,15 +113,15 @@ var _ = SIGDescribe("CustomResourceFieldSelectors [Privileged:ClusterAdmin]", fu
})
/*
Release: v1.31
Testname: Custom Resource Definition, list and watch with selectable fields
Description: Create a Custom Resource Definition with SelectableFields. Create custom resources. Attempt to
list and watch custom resources with object selectors; the list and watch MUST return only custom resources
matching the field selector. Delete and update some of the custom resources. Attempt to list and watch the
custom resources with object selectors; the list and watch MUST return only the custom resources matching
the object selectors.
Release: v1.32
Testname: custom-resource-definition-field-selectors-list-watch-register-informers
Description: Create a Custom Resource Definition with SelectableFields. Create a custom resource with
two versions and a conversion webhook that converts between the versions. Attempt to list, watch and register
informers for the custom resources with field selectors; the lists, watches and informers MUST return only
custom resources matching the field selector. Delete and update some of the resources with field selectors;
the lists, watches and informers MUST return only the custom resources matching custom resources.
*/
framework.It("MUST list and watch custom resources matching the field selector", func(ctx context.Context) {
framework.ConformanceIt("MUST list and watch custom resources matching the field selector", func(ctx context.Context) {
ginkgo.By("Creating a custom resource definition with selectable fields")
testcrd, err := crd.CreateMultiVersionTestCRD(f, "stable.example.com", func(crd *apiextensionsv1.CustomResourceDefinition) {
crd.Spec.Versions = apiVersions