diff options
| author | Stephen Finucane <sfinucan@redhat.com> | 2021-06-09 11:57:32 +0100 |
|---|---|---|
| committer | Stephen Finucane <sfinucan@redhat.com> | 2021-06-10 11:21:25 +0100 |
| commit | 7f66dfe0e3e8720e847211494c185d7d4983ba5b (patch) | |
| tree | 805730953147f979d752398b57f0dfb48003b85b /openstackclient/tests/unit/volume/v2/fakes.py | |
| parent | 34de2d3352aaef5c1bb86a5441cc8781e03b5587 (diff) | |
| download | python-openstackclient-7f66dfe0e3e8720e847211494c185d7d4983ba5b.tar.gz | |
volume: Add more missing 'volume backup *' options
Add an additional '--no-property' option to the 'volume backup set'
command, along with a brand spanking new 'volume backup unset' command.
Change-Id: Id7ca925e0ada03e259f0ecaf3e02af11c900641e
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'openstackclient/tests/unit/volume/v2/fakes.py')
| -rw-r--r-- | openstackclient/tests/unit/volume/v2/fakes.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openstackclient/tests/unit/volume/v2/fakes.py b/openstackclient/tests/unit/volume/v2/fakes.py index 86778698..b5f66d4b 100644 --- a/openstackclient/tests/unit/volume/v2/fakes.py +++ b/openstackclient/tests/unit/volume/v2/fakes.py @@ -17,6 +17,7 @@ import random from unittest import mock import uuid +from cinderclient import api_versions from osc_lib.cli import format_columns from openstackclient.tests.unit import fakes @@ -292,6 +293,8 @@ class FakeVolumeClient(object): def __init__(self, **kwargs): self.auth_token = kwargs['token'] self.management_url = kwargs['endpoint'] + self.api_version = api_versions.APIVersion('2.0') + self.availability_zones = mock.Mock() self.availability_zones.resource_class = fakes.FakeResource(None, {}) self.backups = mock.Mock() |
