From 35d57b9c8652e0e79a7729392121d095f9e6ea47 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Thu, 10 Jan 2019 14:43:04 +0000 Subject: [PATCH] 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. Change-Id: I12e834996052dae0cd07e5e5092906dd1e8a4f81 --- openstack/tests/functional/cloud/test_inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack/tests/functional/cloud/test_inventory.py b/openstack/tests/functional/cloud/test_inventory.py index ff3ff3a50..bfe8b11f2 100644 --- a/openstack/tests/functional/cloud/test_inventory.py +++ b/openstack/tests/functional/cloud/test_inventory.py @@ -30,7 +30,7 @@ class TestInventory(base.BaseFunctionalTest): 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))