tobiko/tobiko/openstack
Michele Baldessari 608ceab04b Introduce a get_groups function openstack topology and let list_openstack_nodes accept group lists
Currently some tests wrongfully call list_openstack_nodes(group='controller')
in order to run tests on the whole control plane. That assumption does not
hold true in case of composable HA where the control plane consists of
3 controller nodes (w/ haproxy+vip), 3 database nodes and 3 messaging nodes.
In such cases we'd have to filter three times for the group of the node
(aka resource class).

Let's allow list_openstack_nodes to have a list of group, so all its users
are allowed to pass a list of groups instead.

Instead of overloading the get_group() function directly, we add a simple
get_groups() function and use that inside list_openstack_nodes() when group is
a list.

Tested this on a composable HA and we correctly get all the nodes when
calling the following:
  groups = ['controller', 'messaging', 'database']
  nodes = topology.list_openstack_nodes(group=groups)

Co-Authored-By: Luca Miccini <lmiccini@redhat.com>
Change-Id: I6995a73c482ba7b654d089316f47668d86c495e1
2020-04-09 18:23:21 +02:00
..
glance Remove Fedora based image and server stacks 2020-02-18 17:11:36 +01:00
heat Skip test cases when nova scheduler hints are not respected 2019-12-13 17:39:14 +00:00
keystone Write to log the error relater keystone credential failure 2020-02-19 17:32:54 +00:00
neutron Added OVN container verifications to test_cloud_recovery.py 2020-03-08 12:01:24 +02:00
nova Add APIs to manage cloud-init on Nova servers 2020-03-02 13:09:38 +01:00
octavia Add simple Octavia traffic scenario 2019-11-26 19:13:53 +00:00
stacks Merge "Get configured nova key file path relative to tobiko.conf file" 2020-03-13 18:40:40 +00:00
topology Introduce a get_groups function openstack topology and let list_openstack_nodes accept group lists 2020-04-09 18:23:21 +02:00
__init__.py Move tobiko test config to new tobiko.openstack package. 2019-03-08 16:02:57 +01:00
_client.py Add Keystone client API 2019-07-18 11:41:23 +02:00