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 0e50eab
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions manager/integration/tests/test_provisioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,21 @@ def test_provisioner_mount(client, core_api, storage_class, pvc, pod): # NOQA
int(storage_class['parameters']['numberOfReplicas'])
assert volumes.data[0].state == "attached"

@pytest.mark.skip(reason="TODO")
def test_provisioner_generic_ephemeral(client, core_api, storage_class, pvc, pod):
"""
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/#generic-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
"""
Expand Down

0 comments on commit 0e50eab

Please sign in to comment.