Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions test/integration/plugins/ontap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ test/integration/plugins/ontap/
├── guest_ssh.py # Guest SSH (paramiko) for the VM workflow suites
├── setup_env.sh # venv: Marvin plus requirements.txt
├── requirements.txt # setuptools, pyvmomi, paramiko pins
├── TEST_CASES.md # Full test case reference table (151 tests)
├── TEST_CASES.md # Full test case reference table (228 tests)
├── README.md # This file
│
├── nfs3/
Expand All @@ -55,10 +55,12 @@ test/integration/plugins/ontap/
│ │ ├── test_pool_with_volumes.py # Same lifecycle with a CS volume present
│ │ └── test_zone_scoped_pool.py # Zone-scoped pool (attachZone)
│ ├── volume/
│ │ └── test_volume_lifecycle.py # Volume create/delete/negative-delete
│ │ ├── test_volume_lifecycle.py # Volume create/delete/negative-delete
│ │ └── test_snapshot_to_volume.py # Create volumes from snapshots of a running VM, attach, rejects
│ ├── instance/
│ │ └── test_vm_volume_attach.py # Pool + volume + VM + resize, snapshots, attach/detach + template cache
│ └── template/
│ ├── test_snapshot_to_template.py # Create templates from snapshots, deploy VMs from them
│ └── test_template_cache_negative.py # Template-cache boundary cases
│
└── iscsi/
Expand All @@ -67,10 +69,12 @@ test/integration/plugins/ontap/
│ ├── test_pool_with_volumes.py # Same lifecycle with a LUN-backed volume
│ └── test_zone_scoped_pool.py # Zone-scoped iSCSI pool
├── volume/
│ └── test_volume_lifecycle.py # LUN create/delete/negative-delete
│ ├── test_volume_lifecycle.py # LUN create/delete/negative-delete + create volume from snapshot
│ └── test_snapshot_to_volume.py # Create volumes from snapshots of a running VM, attach, rejects
├── instance/
│ └── test_vm_volume_attach.py # Pool + LUN + VM + resize, snapshots, LUN-map lifecycle + template cache
└── template/
├── test_snapshot_to_template.py # Create templates from snapshots, deploy VMs from them
└── test_template_cache_negative.py # Template-cache boundary cases
```

Expand Down Expand Up @@ -140,7 +144,7 @@ The script is safe to re-run. It creates `test/integration/plugins/ontap/.venv`

#### Paramiko (guest SSH)

`nfs3/instance/test_vm_volume_attach.py` and `iscsi/instance/test_vm_volume_attach.py` log into the guest through `guest_ssh.py`. The lab template is CentOS 5.5, and its sshd only offers SHA-1 key exchange (`diffie-hellman-group14-sha1`) and `ssh-rsa` host keys. Paramiko 4.x removed SHA-1, so those logins fail unless the venv has Paramiko 3.x.
The VM suites (`*/instance/test_vm_volume_attach.py`, `*/volume/test_snapshot_to_volume.py` and `*/template/test_snapshot_to_template.py`) log into the guest through `guest_ssh.py`. The lab template is CentOS 5.5, and its sshd only offers SHA-1 key exchange (`diffie-hellman-group14-sha1`) and `ssh-rsa` host keys. Paramiko 4.x removed SHA-1, so those logins fail unless the venv has Paramiko 3.x.

`setup_env.sh` installs the pin from `requirements.txt`:

Expand Down Expand Up @@ -383,12 +387,16 @@ another ONTAP pool is present.
| NFS3 Zone-Scoped Pool | `nfs3/pool/test_zone_scoped_pool.py` | 5 | Zone-scoped pool create, grow and shrink with CloudStack/ONTAP/KVM verification, disable, enable, and delete |
| NFS3 Volume Lifecycle | `nfs3/volume/test_volume_lifecycle.py` | 5 | Volume is metadata-only; FlexVol unchanged on delete |
| NFS3 VM + Volume Attach | `nfs3/instance/test_vm_volume_attach.py` | 29 | Full VM lifecycle with stopped-VM qcow2 grow, guest SSH, volume and VM snapshots; ROOT on tagged pool seeds/reuses template cache, which survives VM delete |
| NFS3 Snapshot to Volume | `nfs3/volume/test_snapshot_to_volume.py` | 22 | Own VM setup, then volume snapshot and revert (VM-A and VM-B), volumes created from ROOT and DATA snapshots: attach, move between VMs, independence from the source, rejects (offering, missing snapshot, disabled or second pool, missing metadata), delete-during-create |
| NFS3 Snapshot to Template | `nfs3/template/test_snapshot_to_template.py` | 16 | Own setup (pool, data volume, VM) then templates created from ROOT and DATA snapshots: deploy from them, expunged source, attributes, rejects |
| NFS3 Template Cache Negative | `nfs3/template/test_template_cache_negative.py` | 3 | Tag mismatch; undersized pool; out-of-band cache delete |
| iSCSI Pool Lifecycle | `iscsi/pool/test_pool_lifecycle.py` | 21 | Create rejects for aggregate space, invalid capacitybytes, and a duplicate FlexVol name; grow to 300 TiB, reject grow past 300 TiB, safe shrink, disable, resize while disabled, enable, maintenance, grow and shrink in maintenance, delete + igroups, then re-create with a volume (LUN), reject shrink below used capacity, deploy a VM and attach the volume, cleanup, plus empty-pool deletion with a pre-deleted FlexVol or igroups |
| iSCSI Pool with Volumes | `iscsi/pool/test_pool_with_volumes.py` | 13 | Lifecycle with a live LUN, deletion with a pre-deleted FlexVol or igroups, maintenance with pre-deleted LUN maps, and host cases for a logged-out iSCSI session, an existing session during volume delete, and a replaced by-path symlink |
| iSCSI Zone-Scoped Pool | `iscsi/pool/test_zone_scoped_pool.py` | 5 | Zone-scoped pool create, grow and shrink with CloudStack/ONTAP verification, disable, enable, and delete |
| iSCSI Volume Lifecycle | `iscsi/volume/test_volume_lifecycle.py` | 5 | LUN created per CS volume; LUN removed on delete |
| iSCSI VM + Volume Attach | `iscsi/instance/test_vm_volume_attach.py` | 29 | Full VM lifecycle; stopped-VM LUN grow, LUN-map checks, guest SSH, volume and VM snapshots; ROOT on tagged pool seeds/reuses `cs_tmpl_*` LUN cache |
| iSCSI Snapshot to Volume | `iscsi/volume/test_snapshot_to_volume.py` | 23 | Own VM setup, then volume snapshot and revert (VM-A and VM-B), volumes created from ROOT and DATA snapshots: attach, move between VMs, independence from the source, rejects (offering, missing snapshot, disabled or second pool, missing metadata, duplicate name), delete-during-create |
| iSCSI Snapshot to Template | `iscsi/template/test_snapshot_to_template.py` | 16 | Own setup (pool, data volume, VM) then templates created from ROOT and DATA snapshots: deploy from them, expunged source, attributes, rejects |
| iSCSI Template Cache Negative | `iscsi/template/test_template_cache_negative.py` | 3 | Tag mismatch; undersized pool; out-of-band cache delete |

For the goal, dependencies, and exact success criteria of every individual test, see [TEST_CASES.md](TEST_CASES.md).
Expand Down
Loading
Loading