cloudstack/test
James Peru 49edc7f22c test(backup): smoke tests for incremental NAS backup chain
Adds five new test cases to test_backup_recovery_nas.py covering the
end-to-end behaviour of the incremental NAS backup feature:

  * test_incremental_chain_cadence
      - Sets nas.backup.full.every=3, takes 5 backups, verifies the
        type pattern is FULL, INC, INC, FULL, INC.

  * test_restore_from_incremental
      - FULL + 2 INCs, each with a marker file. Restores from the
        latest INC and verifies all three markers are present
        (i.e. qemu-img convert flattened the chain correctly).

  * test_delete_middle_incremental_repairs_chain
      - Builds FULL, INC1, INC2; deletes INC1 (no force needed);
        restores from the surviving INC2 and verifies that markers
        from FULL, INC1 (which was deleted), and INC2 are all present
        — proving the rebase merged INC1's blocks into INC2.

  * test_refuse_delete_full_with_children
      - Verifies plain delete of a FULL that has children fails, and
        delete with forced=true succeeds and removes the whole chain.

  * test_stopped_vm_falls_back_to_full
      - Sets cadence to 2, takes one backup (FULL), stops the VM,
        triggers another (cadence would say INC). Verifies the second
        backup is recorded as FULL because the agent fell back when
        backup-begin couldn't run on a stopped VM.

All tests restore nas.backup.full.every to 10 in finally blocks.

Refs: apache/cloudstack#12899
2026-04-27 19:25:30 +03:00
..
bindirbak pre-commit: add hook to trim trailing whitespace (#8205) 2024-05-28 09:01:30 +02:00
conf pre-commit fix mixed line endings in XML files (#10148) 2025-01-03 09:42:09 +01:00
integration test(backup): smoke tests for incremental NAS backup chain 2026-04-27 19:25:30 +03:00
metadata pre-commit fix mixed line endings in XML files (#10148) 2025-01-03 09:42:09 +01:00
scripts pre-commit upgrade codespell; fix spelling; (#10144) 2025-11-14 14:17:10 +01:00
systemvm pre-commit auto add license for all Markdown files (#11870) 2025-10-24 16:04:22 +05:30
pom.xml Updating pom.xml version numbers for release 4.20.4.0-SNAPSHOT 2026-04-13 15:48:18 +05:30