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 authored and khushboo-rancher committed Mar 20, 2024
1 parent 6c1c54e commit b9209d7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions manager/integration/tests/test_provisioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9209d7

Please sign in to comment.