Skip to content

Commit

Permalink
Add test_provisioner_generic_ephemeral skeleton
Browse files Browse the repository at this point in the history
Longhorn 8198

Signed-off-by: Eric Weber <[email protected]>
  • Loading branch information
ejweber committed Mar 19, 2024
1 parent bbcd707 commit f4b70af
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions manager/integration/tests/test_provisioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,23 @@ 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.
"""
pass


def test_provisioner_params(client, core_api, storage_class, pvc, pod): # NOQA
"""
Test that substituting different StorageClass parameters is reflected in
Expand Down

0 comments on commit f4b70af

Please sign in to comment.