Force API test listing even if auth fails
If the heat-tempest-plugin is installed, and the command
"tempest run --list-tests" is issued, the Heat API (Gabbi) tests
will not be listed if the auth_url is unreachable/mis-provisioned,
or if the key authorization-related variables are not provisioned
in the tempest.conf file. The API tests should be listed regardless
of whether or not the plugin can authenticate using keystone.
In the event that the plugin is not configured (or not configured
correctly), or if keystone is not reachable, this commit combined
with the following gabbi fix:
https://github.com/cdent/gabbi/commit/8354d545471f5a2dcdff7e5c05d298b2afd8e6ae
ensures that Gabbi build_tests() returns the list of api tests,
even when keystone cannot be reached due to whatever reason above.
Note that even while running the tests, if the authorization
information is not present or is incorrect, the user will be able
to see the warning logs with the keystoneauth exceptions present.
However, the exceptions will not prevent a test listing from being
given to the user.
Change-Id: I3921f0df245d3745b95d3a312c41b9f9b15c2ba9
Closes-Bug: #1749218
2 files changed