Neutron driver test use admin

In current test setup, congress neutron driver uses admin credential
but the corresponding tempest test uses non-admin credential. As a
result, the driver and the test verifying the driver's data sometimes
see different data, causing false test failure.

This patch makes the test use admin credentials.

Change-Id: I6116e8027f5dfcceb6dd835de055cc3f8040d45c
This commit is contained in:
Eric K 2019-01-29 12:11:32 -08:00
parent e144f17bf7
commit 6c2fadc4ed
1 changed files with 5 additions and 5 deletions

View File

@ -50,11 +50,11 @@ class TestNeutronV2Driver(manager_congress.ScenarioPolicyBase):
super(TestNeutronV2Driver, self).setUp()
self.os_primary = clients.Manager(
self.os_admin.auth_provider.credentials)
self.networks_client = self.os_primary.networks_client
self.subnets_client = self.os_primary.subnets_client
self.ports_client = self.os_primary.ports_client
self.security_groups_client = self.os_primary.security_groups_client
self.routers_client = self.os_primary.routers_client
self.networks_client = self.os_admin.networks_client
self.subnets_client = self.os_admin.subnets_client
self.ports_client = self.os_admin.ports_client
self.security_groups_client = self.os_admin.security_groups_client
self.routers_client = self.os_admin.routers_client
self.datasource_id = manager_congress.get_datasource_id(
self.os_admin.congress_client, 'neutronv2')