API test for get-me-network
Partially-implements: blueprint get-me-a-network
Change-Id: I43b2172edd666a23c41f9000197834858e6137dc
diff --git a/neutron/tests/tempest/services/network/json/network_client.py b/neutron/tests/tempest/services/network/json/network_client.py
index 6a56029..01429ab 100644
--- a/neutron/tests/tempest/services/network/json/network_client.py
+++ b/neutron/tests/tempest/services/network/json/network_client.py
@@ -194,8 +194,10 @@
self.expected_success(204, resp.status)
return service_client.ResponseBody(resp, body)
- def list_subnetpools(self):
+ def list_subnetpools(self, **filters):
uri = self.get_uri("subnetpools")
+ if filters:
+ uri = '?'.join([uri, urlparse.urlencode(filters)])
resp, body = self.get(uri)
body = {'subnetpools': self.deserialize_list(body)}
self.expected_success(200, resp.status)
@@ -717,3 +719,10 @@
self.expected_success(200, resp.status)
body = json.loads(body)
return service_client.ResponseBody(resp, body)
+
+ def get_auto_allocated_topology(self, tenant_id=None):
+ uri = '%s/auto-allocated-topology/%s' % (self.uri_prefix, tenant_id)
+ resp, body = self.get(uri)
+ self.expected_success(200, resp.status)
+ body = json.loads(body)
+ return service_client.ResponseBody(resp, body)