Skip to content

test: read and set nas.backup.incremental.enabled for the test zone - #13960

Open
jmsperu wants to merge 1 commit into
apache:mainfrom
jmsperu:fix/nas-backup-test-zone-scoped-config
Open

test: read and set nas.backup.incremental.enabled for the test zone#13960
jmsperu wants to merge 1 commit into
apache:mainfrom
jmsperu:fix/nas-backup-test-zone-scoped-config

Conversation

@jmsperu

@jmsperu jmsperu commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Description

nas.backup.incremental.enabled is a zone-scoped setting, but test_backup_recovery_nas.py read and updated it without a zoneid, so a zone override in the test environment would make the suite read the wrong value (and restore the wrong one in tearDownClass). This passes zoneid=cls.zone.id on the read and on both updates, the same way test_backup_recovery_veeam.py handles zone-scoped settings.

Noted by the Copilot review on the 4.22 backport #13877; this is the main-side fix so both branches stay in sync.

Types of changes

  • Test change only (no functional change)

How Has This Been Tested?

Python syntax check; the change is limited to three Marvin calls in setUpClass/tearDownClass.

nas.backup.incremental.enabled is a zone-scoped setting, but
test_backup_recovery_nas.py read and updated it without a zoneid, so a zone
override in the test environment would make the suite read the wrong value.
Pass zoneid=cls.zone.id on the read and on both updates, as the other backup
smoke tests do for zone-scoped settings.

Noted by the Copilot review on the 4.22 backport (apache#13877).

Signed-off-by: James Peru <jmsperu@gmail.com>
@boring-cyborg boring-cyborg Bot added component:integration-test Python Warning... Python code Ahead! labels Aug 24, 2026
@codecov

codecov Bot commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 19.73%. Comparing base (4e4a26b) to head (b442b73).

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #13960      +/-   ##
============================================
- Coverage     19.73%   19.73%   -0.01%     
+ Complexity    19956    19954       -2     
============================================
  Files          6371     6371              
  Lines        575765   575765              
  Branches      70478    70478              
============================================
- Hits         113642   113632      -10     
- Misses       449766   449779      +13     
+ Partials      12357    12354       -3     
Flag Coverage Δ
uitests 3.41% <ø> (ø)
unittests 21.01% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

component:integration-test Python Warning... Python code Ahead!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant