From 55302de991eddec398efa516a07b63823b0f8ee8 Mon Sep 17 00:00:00 2001 From: Stephen Heywood Date: Fri, 15 Mar 2024 10:54:25 +1300 Subject: [PATCH] Promote VolumeAttachment e2e test to Conformance --- test/conformance/testdata/conformance.yaml | 14 ++++++++++++++ test/e2e/storage/volume_attachment.go | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/test/conformance/testdata/conformance.yaml b/test/conformance/testdata/conformance.yaml index e9b9a6f4ac7..a020580e1dc 100755 --- a/test/conformance/testdata/conformance.yaml +++ b/test/conformance/testdata/conformance.yaml @@ -3545,4 +3545,18 @@ was configured with a subpath. release: v1.12 file: test/e2e/storage/subpath.go +- testname: VolumeAttachment, lifecycle + codename: '[sig-storage] VolumeAttachment Conformance should run through the lifecycle + of a VolumeAttachment [Conformance]' + description: Creating an initial VolumeAttachment MUST succeed. Reading the VolumeAttachment + MUST succeed with with required name retrieved. Patching a VolumeAttachment MUST + succeed with its new label found. Listing VolumeAttachment with a labelSelector + MUST succeed with a single item retrieved. Deleting a VolumeAttachment MUST succeed + and it MUST be confirmed. Creating a second VolumeAttachment MUST succeed. Updating + the second VolumentAttachment with a new label MUST succeed with its new label + found. Creating a third VolumeAttachment MUST succeed. Updating the third VolumentAttachment + with a new label MUST succeed with its new label found. Deleting both VolumeAttachments + via deleteCollection MUST succeed and it MUST be confirmed. + release: v1.30 + file: test/e2e/storage/volume_attachment.go diff --git a/test/e2e/storage/volume_attachment.go b/test/e2e/storage/volume_attachment.go index 9e13ec53718..cbfa9610e5b 100644 --- a/test/e2e/storage/volume_attachment.go +++ b/test/e2e/storage/volume_attachment.go @@ -39,9 +39,22 @@ var _ = utils.SIGDescribe("VolumeAttachment", func() { f := framework.NewDefaultFramework("volumeattachment") + /* + Release: v1.30 + Testname: VolumeAttachment, lifecycle + Description: Creating an initial VolumeAttachment MUST succeed. Reading the VolumeAttachment + MUST succeed with with required name retrieved. Patching a VolumeAttachment MUST + succeed with its new label found. Listing VolumeAttachment with a labelSelector + MUST succeed with a single item retrieved. Deleting a VolumeAttachment MUST succeed + and it MUST be confirmed. Creating a second VolumeAttachment MUST succeed. Updating + the second VolumentAttachment with a new label MUST succeed with its new label + found. Creating a third VolumeAttachment MUST succeed. Updating the third VolumentAttachment + with a new label MUST succeed with its new label found. Deleting both VolumeAttachments + via deleteCollection MUST succeed and it MUST be confirmed. + */ ginkgo.Describe("Conformance", func() { - ginkgo.It("should run through the lifecycle of a VolumeAttachment", func(ctx context.Context) { + framework.ConformanceIt("should run through the lifecycle of a VolumeAttachment", func(ctx context.Context) { vaClient := f.ClientSet.StorageV1().VolumeAttachments()