Commit 3d65f34
committed
Fix NASBackupProviderTest failures for zone-scoped ConfigKey values
The test helper overrideConfigValue() was only setting _value on
ConfigKey, but zone-scoped configs (valueIn(zoneId)) fall back to
_defaultValue when s_depot is null in test context. Also set
_defaultValue via ReflectionTestUtils to ensure valueIn() returns
the expected test value.
Fixes: 4 assertion failures (compression, bandwidth, encryption,
integrity_check details all returned null) and 1 error
(encryption without passphrase expected CloudRuntimeException
but got NullPointerException from null config value).1 parent 4884980 commit 3d65f34
File tree
1 file changed
+5
-1
lines changed- plugins/backup/nas/src/test/java/org/apache/cloudstack/backup
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| 360 | + | |
360 | 361 | | |
361 | 362 | | |
362 | | - | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
363 | 367 | | |
364 | 368 | | |
365 | 369 | | |
| |||
0 commit comments