Skip to content

Commit ca893c1

Browse files
sp16743cursoragent
andcommitted
CSTACKEX-286: Add resize coverage for pool limits, VMs and zone scope
Extend the ONTAP pool lifecycle and zone-scoped suites with resize cases that were previously untested. Pool lifecycle (both NFS3 and iSCSI), now 15 tests: - test_03 rejects a grow past the 300 TiB ONTAP FlexVol maximum, asserting ONTAP's autosize-maximum error so an unrelated failure such as exhausted aggregate space cannot pass the test - test_12 deploys a VM and attaches the volume before the negative shrink, so the shrink is attempted against a volume in use - test_14 grows and shrinks the pool while the VM holds the volume, checking the VM stays running and keeps the volume across both - test_13 asserts ONTAP's "too small to hold the current volume data" wording rather than a broad keyword match Zone-scoped pool (both protocols), now 6 tests: - test_02 and test_03 grow and safely shrink the pool, verifying the export policy (NFS3) and igroups (iSCSI) survive the resize Shared VM discovery, teardown and volume helpers move to OntapTestBase so both protocol suites reuse them, and a missing enableStorageMaintenance import is added there. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 82d229f commit ca893c1

7 files changed

Lines changed: 1383 additions & 157 deletions

File tree

‎test/integration/plugins/ontap/README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -306,14 +306,14 @@ self.assertEqual(result.state, "Maintenance")
306306

307307
| Suite | File | Tests | What it covers |
308308
|-------|------|-------|---------------|
309-
| NFS3 Pool Lifecycle | `nfs3/pool/test_pool_lifecycle.py` | 11 | Create, grow, safe shrink, disable, enable, maintenance, delete, then re-create with a volume, reject shrink below used capacity, cleanup |
309+
| NFS3 Pool Lifecycle | `nfs3/pool/test_pool_lifecycle.py` | 15 | Create, grow to 300 TiB, reject grow past 300 TiB, safe shrink, disable, enable, maintenance, resize in maintenance, delete, then re-create with a volume, reject shrink below used capacity, deploy a VM and attach the volume, cleanup |
310310
| NFS3 Pool with Volumes | `nfs3/pool/test_pool_with_volumes.py` | 7 | Same + live volume present; negative delete guard |
311-
| NFS3 Zone-Scoped Pool | `nfs3/pool/test_zone_scoped_pool.py` | 4 | Zone scope — all hosts connected via `attachZone` |
311+
| NFS3 Zone-Scoped Pool | `nfs3/pool/test_zone_scoped_pool.py` | 6 | Zone scope — all hosts connected via `attachZone`; grow and safe shrink |
312312
| NFS3 Volume Lifecycle | `nfs3/volume/test_volume_lifecycle.py` | 5 | Volume is metadata-only; FlexVol unchanged on delete |
313313
| NFS3 VM + Volume Attach | `nfs3/instance/test_vm_volume_attach.py` | 8 | Full VM lifecycle with hot-plug/detach |
314-
| iSCSI Pool Lifecycle | `iscsi/pool/test_pool_lifecycle.py` | 11 | Create, grow, safe shrink, disable, enable, maintenance, delete + igroups, then re-create with a volume (LUN), reject shrink below used capacity, cleanup |
314+
| iSCSI Pool Lifecycle | `iscsi/pool/test_pool_lifecycle.py` | 15 | Create, grow to 300 TiB, reject grow past 300 TiB, safe shrink, disable, enable, maintenance, resize in maintenance, delete + igroups, then re-create with a volume (LUN), reject shrink below used capacity, deploy a VM and attach the volume, cleanup |
315315
| iSCSI Pool with Volumes | `iscsi/pool/test_pool_with_volumes.py` | 7 | Same + live LUN present; negative delete guard |
316-
| iSCSI Zone-Scoped Pool | `iscsi/pool/test_zone_scoped_pool.py` | 4 | Zone scope |
316+
| iSCSI Zone-Scoped Pool | `iscsi/pool/test_zone_scoped_pool.py` | 6 | Zone scope; grow and safe shrink |
317317
| iSCSI Volume Lifecycle | `iscsi/volume/test_volume_lifecycle.py` | 5 | LUN created per CS volume; LUN removed on delete |
318318
| iSCSI VM + Volume Attach | `iscsi/instance/test_vm_volume_attach.py` | 8 | Full VM lifecycle; LUN-maps on VM start/stop/detach |
319319

‎test/integration/plugins/ontap/TEST_CASES.md‎

Lines changed: 47 additions & 35 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)