Skip to content

Automation for Snapshot to Volume and Template - #146

Open
sp16743 wants to merge 5 commits into
mainfrom
automation/CSTACKEX-374
Open

sp16743 wants to merge 5 commits into
mainfrom
automation/CSTACKEX-374

Conversation

@sp16743

@sp16743 sp16743 commented Dec 2, 2026

Copy link
Copy Markdown

Description

This PR...

NFS3 Snapshot to Volume
test_01_create_nfs3_pool
test_02_prepare_vm_with_data_volume
test_03_deploy_second_vm
test_04_create_volume_from_root_snapshot
test_05_create_volume_from_data_snapshot
test_06_detach_and_reattach_clone_on_second_vm
test_07_clone_is_independent_of_source
test_08_reject_clone_from_vm_snapshot
test_09_reject_smaller_offering_for_root_snapshot
test_10_reject_attach_of_attached_clone_to_second_vm
test_11_delete_snapshot_during_create
test_12_create_volume_keeps_offering_and_size
test_13_reject_disk_offering_with_snapshot
test_14_create_volumes_concurrently_from_snapshot
test_15_create_volume_after_source_deleted
test_16_create_volume_from_snapshot_of_clone
test_17_reject_create_when_ontap_snapshot_missing
test_18_reject_create_on_disabled_pool
test_19_reject_nonexistent_snapshot
test_20_reject_create_on_different_pool
test_21_reject_create_with_missing_snapshot_metadata
test_22_destroy_vm_and_cleanup

iSCSI Snapshot to Volume
Same list, except:
test_01_create_iscsi_pool
Adds test_22_reject_duplicate_volume_name_from_snapshot
Cleanup is test_23_destroy_vm_and_cleanup

NFS3 Snapshot to Template
test_01_create_nfs3_pool
test_02_create_ontap_data_volume
test_03_deploy_vm
test_04_attach_volume_to_vm
test_05_open_ssh_and_write_root_data_files
test_06_create_template_from_root_snapshot
test_07_template_from_older_root_snapshot
test_08_two_templates_from_two_snapshots
test_09_delete_template_keeps_snapshot
test_10_delete_snapshot_keeps_template
test_11_template_stores_attributes
test_12_template_after_vm_expunged
test_13_data_snapshot_template_unbootable
test_14_reject_missing_template_fields
test_15_reject_second_template_same_snapshot
test_16_destroy_vm_and_cleanup

iSCSI Snapshot to Template
Same list, except test_01_create_iscsi_pool.

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

Screenshot 2026-12-02 at 8 56 33 AM Screenshot 2026-12-02 at 9 14 20 AM Screenshot 2026-12-02 at 12 03 16 PM Screenshot 2026-12-02 at 12 34 40 PM

How did you try to break this feature and the system with this change?

@netapp-cloudstack

netapp-cloudstack Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

ONTAP storage plugin test coverage

Line Branch Method
Unit tests 98.0% 92.1% 99.3%
Functional (Marvin) tests not available not available not available
Combined 98.0%

Least covered files (by lines not covered by either run):

File Lines Unit Functional Combined
driver/OntapPrimaryDatastoreDriver.java 1334 97.5% n/a 97.5%
vmsnapshot/OntapVMSnapshotStrategy.java 567 96.6% n/a 96.6%
service/UnifiedSANStrategy.java 663 97.4% n/a 97.4%
lifecycle/OntapPrimaryDatastoreLifecycle.java 338 97.6% n/a 97.6%
service/UnifiedNASStrategy.java 435 98.4% n/a 98.4%
service/StorageStrategy.java 543 98.9% n/a 98.9%
asup/OntapAsupManager.java 253 98.8% n/a 98.8%
motion/OntapDataMotionStrategy.java 439 99.3% n/a 99.3%
provider/StorageProviderFactory.java 18 88.9% n/a 88.9%
utils/OntapStorageUtils.java 107 98.1% n/a 98.1%

Functional-test coverage was not produced by this run.

Unit coverage report

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

🔴 Test Coverage Grade: D — Marginal

Metric Value
Line coverage 26.29%
Branch coverage 20.78%

Grade Scale

Grade Line Coverage Meaning
🟢 A ≥ 80% Excellent - this code sleeps well at night 😴
🟡 B 60-79% Good - almost there, don't stop now 😉
🟠 C 40-59% Acceptable - your code is wearing a seatbelt, but no airbags 😬
🔴 D 20-39% Marginal - boldly shipping where no test has gone before 🖖
⛔ F < 20% Failing - tests? what tests? 🔥

Branch coverage is shown as a secondary signal. Grade is determined by line coverage.
View full Actions run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant