From de244b2678f55b83e0b0e9a04041ecb7168e560c Mon Sep 17 00:00:00 2001 From: Stephen Heywood Date: Wed, 20 Sep 2023 09:44:55 +1200 Subject: [PATCH] Promote StorageClass e2e test to Conformance --- test/conformance/testdata/conformance.yaml | 10 ++++++++++ test/e2e/storage/storageclass.go | 12 +++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/test/conformance/testdata/conformance.yaml b/test/conformance/testdata/conformance.yaml index 213379e33f2..76e337fb1ad 100755 --- a/test/conformance/testdata/conformance.yaml +++ b/test/conformance/testdata/conformance.yaml @@ -3365,6 +3365,16 @@ to delete the secret, the deletion must succeed. release: v1.21 file: test/e2e/common/storage/secrets_volume.go +- testname: StorageClass, lifecycle + codename: '[sig-storage] StorageClasses CSI Conformance should run through the lifecycle + of a StorageClass [Conformance]' + description: Creating a StorageClass MUST succeed. Reading the StorageClass MUST + succeed. Patching the StorageClass MUST succeed with its new label found. Deleting + the StorageClass MUST succeed and it MUST be confirmed. Replacement StorageClass + MUST be created. Updating the StorageClass MUST succeed with its new label found. + Deleting the StorageClass via deleteCollection MUST succeed and it MUST be confirmed. + release: v1.29 + file: test/e2e/storage/storageclass.go - testname: 'SubPath: Reading content from a configmap volume.' codename: '[sig-storage] Subpath Atomic writer volumes should support subpaths with configmap pod [Conformance]' diff --git a/test/e2e/storage/storageclass.go b/test/e2e/storage/storageclass.go index d318ee17f9c..8b33028938c 100644 --- a/test/e2e/storage/storageclass.go +++ b/test/e2e/storage/storageclass.go @@ -40,7 +40,17 @@ var _ = utils.SIGDescribe("StorageClasses", func() { f.NamespacePodSecurityLevel = admissionapi.LevelBaseline ginkgo.Describe("CSI Conformance", func() { - ginkgo.It("should run through the lifecycle of a StorageClass", func(ctx context.Context) { + + /* + Release: v1.29 + Testname: StorageClass, lifecycle + Description: Creating a StorageClass MUST succeed. Reading the StorageClass MUST + succeed. Patching the StorageClass MUST succeed with its new label found. Deleting + the StorageClass MUST succeed and it MUST be confirmed. Replacement StorageClass + MUST be created. Updating the StorageClass MUST succeed with its new label found. + Deleting the StorageClass via deleteCollection MUST succeed and it MUST be confirmed. + */ + framework.ConformanceIt("should run through the lifecycle of a StorageClass", func(ctx context.Context) { scClient := f.ClientSet.StorageV1().StorageClasses() var initialSC, replacementSC *storagev1.StorageClass