openstack-python-openstackc.../openstackclient/tests/unit/volume
Rajat Dhasmana 205bac3caf Fix: incremental volume backup
The incremental volume backup stopped working after we moved from
cinderclient to SDK[1]. This happened because SDK accepts the
``is_incremental`` parameter[2] rather than the ``incremental`` parameter
which is actually passed in the API request and was previously a valid
parameter for cinderclient.

This patch fixes the issue by passing the ``is_incremental`` field instead
of ``incremental`` from the OSC side which adds the ``incremental`` parameter
in the API request.

Request body after the fix:

'{"backup": {"name": null, "description": null, "volume_id": "<vol-id>",
"force": false, "container": null, "incremental": true}}'

[1] https://review.opendev.org/c/openstack/python-openstackclient/+/889748
[2] 10e5e20fc0/openstack/block_storage/v2/backup.py (L126-L134)

Closes-Bug: #2070080
Change-Id: I89bd3d2751267ec39f4dbd664b7873ab87a9ac6c
2024-07-01 21:11:46 +05:30
..
v1 trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00
v2 Fix: incremental volume backup 2024-07-01 21:11:46 +05:30
v3 Add cluster to volume service list 2024-06-27 19:37:15 +05:30
__init__.py move unit tests to new "unit" test module 2016-09-08 15:19:50 -07:00
test_find_resource.py trivial: Prepare for pyupgrade pre-commit hook 2024-04-23 12:24:23 +01:00