diff options
| author | Tang Chen <chen.tang@easystack.cn> | 2016-02-10 01:41:45 +0800 |
|---|---|---|
| committer | Tang Chen <chen.tang@easystack.cn> | 2016-02-14 17:07:17 +0800 |
| commit | 27a0da65e37679bc042373d0e04ce88333d38a3b (patch) | |
| tree | bd25551fb3486e3e19bac3d8ad46b2e9f8ec5aa8 /openstackclient/tests/compute | |
| parent | d8abec33ada8b2b028d52eb8bfad2640812b9af8 (diff) | |
| download | python-openstackclient-27a0da65e37679bc042373d0e04ce88333d38a3b.tar.gz | |
Support "network delete" command in nova network
"network delete" command is not implemented in nova network.
This patch implements it.
Change-Id: I5dac1eed6eb8e67298bb446418835a6ab85c859c
Depends-On: I1b59264cd40aaf1062f4e8db233ccb7fd0e95f0e
partial-Bug: 1543672
Diffstat (limited to 'openstackclient/tests/compute')
| -rw-r--r-- | openstackclient/tests/compute/v2/fakes.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openstackclient/tests/compute/v2/fakes.py b/openstackclient/tests/compute/v2/fakes.py index 2e4cc1c5..c5e8f412 100644 --- a/openstackclient/tests/compute/v2/fakes.py +++ b/openstackclient/tests/compute/v2/fakes.py @@ -90,6 +90,7 @@ class FakeComputev2Client(object): def __init__(self, **kwargs): self.aggregates = mock.Mock() self.aggregates.resource_class = fakes.FakeResource(None, {}) + self.availability_zones = mock.Mock() self.availability_zones.resource_class = fakes.FakeResource(None, {}) @@ -129,6 +130,9 @@ class FakeComputev2Client(object): self.floating_ips = mock.Mock() self.floating_ips.resource_class = fakes.FakeResource(None, {}) + self.networks = mock.Mock() + self.networks.resource_class = fakes.FakeResource(None, {}) + self.auth_token = kwargs['token'] self.management_url = kwargs['endpoint'] |
