Merge "Add testing of availability_zones() "details" argument"

This commit is contained in:
Zuul 2018-06-24 14:41:34 +00:00 committed by Gerrit Code Review
commit cf3f1491e1

View File

@ -418,10 +418,17 @@ class TestComputeProxy(test_proxy_base.TestProxyBase):
method_args=["value", 1],
expected_kwargs={"length": 1})
def test_availability_zones(self):
self.verify_list_no_kwargs(self.proxy.availability_zones,
az.AvailabilityZone,
paginated=False)
def test_availability_zones_not_detailed(self):
self.verify_list(self.proxy.availability_zones,
az.AvailabilityZone,
paginated=False,
method_kwargs={"details": False})
def test_availability_zones_detailed(self):
self.verify_list(self.proxy.availability_zones,
az.AvailabilityZoneDetail,
paginated=False,
method_kwargs={"details": True})
def test_get_all_server_metadata(self):
self._verify2("openstack.compute.v2.server.Server.get_metadata",