From b9209d7a24cf977bcccf45c9c6bdbbf3581c47a4 Mon Sep 17 00:00:00 2001 From: Eric Weber Date: Mon, 18 Mar 2024 15:31:25 -0500 Subject: [PATCH] Add test_provisioner_generic_ephemeral skeleton Longhorn 8198 Signed-off-by: Eric Weber --- manager/integration/tests/test_provisioner.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/manager/integration/tests/test_provisioner.py b/manager/integration/tests/test_provisioner.py index 5737fe654f..0b5b09d0fe 100644 --- a/manager/integration/tests/test_provisioner.py +++ b/manager/integration/tests/test_provisioner.py @@ -63,6 +63,24 @@ def test_provisioner_mount(client, core_api, storage_class, pvc, pod): # NOQA assert volumes.data[0].state == "attached" +@pytest.mark.skip(reason="TODO") +def test_provisioner_generic_ephemeral(): + """ + Test that a Longhorn generic ephemeral volume can be created, mounted, + unmounted, and deleted properly on the Kubernetes cluster. + + 1. Create a StorageClass and Pod with a generic ephemeral volume spec: + https://kubernetes.io/docs/concepts/storage/ephemeral-volumes + 2. Verify: + - The Pod is running. + - The volume parameters match the StorageClass parameters. + - The volume.status.kubernetesStatus.workloadStatus reflects the + running Pod. + 3. Write data to the volume using the Pod, read it back, and verify it. + """ + pass + + def test_provisioner_params(client, core_api, storage_class, pvc, pod): # NOQA """ Test that substituting different StorageClass parameters is reflected in