cloudstack/test/integration
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
..
broken misc: fix spelling (#7206) 2023-05-23 11:06:16 +05:30
component Merge branch '4.22' 2026-04-17 04:35:25 +05:30
plugins pre-commit upgrade codespell; fix spelling; (#10144) 2025-11-14 14:17:10 +01:00
smoke test(backup): smoke tests for incremental NAS backup chain 2026-04-27 19:25:30 +03:00
testpaths pre-commit upgrade codespell; fix spelling; (#10144) 2025-11-14 14:17:10 +01:00
__init__.py Add Python flake8 linting for W291 trailing whitespace with Super-Linter (#4687) 2022-03-28 11:40:26 -03:00