Allow skipping list_services 74/68474/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Thu, 12 Sep 2019 09:15:06 +0000 (11:15 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Thu, 12 Sep 2019 18:30:43 +0000 (20:30 +0200)
commit4e0bff80c9595540f821440e2066556dd311a473
treecccade780dea93139f47e70a297c28dfb457e85e
parentaa460705bc5af1be1546adb9db5375430de6368b
Allow skipping list_services

Shade forces the use of admin endpoints when listing services [1].

A new env var is added to allow running Functest when only public
endpoints are reachable (e.g. testing from a VM as proposed for ONAP
integration).

It seems the best approach as list_services provides key data and
we do avoid blocking requests.

It seems easier and more generic than listing all calls in
testcases.yaml.

[1] https://github.com/openstack/shade/blob/master/shade/openstackcloud.py#L9956

Change-Id: Idcbe5d364f4230ffe1da34e7da0e99e863f15c5e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit f3072c8b1f32feacc9785165477efee9a328eb2e)
functest/opnfv_tests/openstack/api/connection_check.py
functest/utils/env.py