Restrict inventory test to devstack-admin

There are multiple different cloud entries in clouds.yaml now. That
means that doing an inventory across all configured clouds gets weird,
especially when we're tossing system scoped accounts in there.

Cherry-picked from https://review.openstack.org/622373/

Change-Id: I0530ca35da0cc3baebab2c3bc53eea70028ceed5
This commit is contained in:
Monty Taylor 2019-01-10 14:43:04 +00:00
parent cad15cca9a
commit 0ec8b8e2df
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class TestInventory(base.BaseFunctionalTestCase):
super(TestInventory, self).setUp()
# This needs to use an admin account, otherwise a public IP
# is not allocated from devstack.
self.inventory = inventory.OpenStackInventory()
self.inventory = inventory.OpenStackInventory(cloud='devstack-admin')
self.server_name = self.getUniqueString('inventory')
self.flavor = pick_flavor(
self.user_cloud.list_flavors(get_extra=False))