Add list-networks test for os-networks API
Adds a test to list networks for a non-admin tenant
using the compute os-networks API.
For Flat* network managers in nova, a tenant is not
assigned to a network so this tests that when listing
networks with a non-admin tenant, we get something back
since the underlying code in nova should pass 'allow_none'
to the DB API when listing the networks for Flat and
FlatDHCP network managers.
Change-Id: I5c50607279a8a385ebe96bf498e3e95079d6dec1
Related-Bug: #1327406
diff --git a/tempest/api/compute/base.py b/tempest/api/compute/base.py
index 6507ce1..2f53a0b 100644
--- a/tempest/api/compute/base.py
+++ b/tempest/api/compute/base.py
@@ -72,6 +72,8 @@
cls.quotas_client = cls.os.quotas_client
# NOTE(mriedem): os-quota-class-sets is v2 API only
cls.quota_classes_client = cls.os.quota_classes_client
+ # NOTE(mriedem): os-networks is v2 API only
+ cls.networks_client = cls.os.networks_client
cls.limits_client = cls.os.limits_client
cls.volumes_extensions_client = cls.os.volumes_extensions_client
cls.volumes_client = cls.os.volumes_client