charm-tempest/unit_tests
Liam Young 8d638c8d9c Add Keystone v3 support to charm
This change adds Keystone v3 support to the charm. Whether to run
using the keystone v2 or v3 api should be dictated by the
api_version sent down the identity-admin relation but the change
to enable that has not landed yet and it is useful to have this charm
work for v3 against stable charms. To allow this there is some hard
coding of expected v3 credentials that can be removed later. fwiw
this change represents a net reduction in hardcoded creds. changes
include:

1) Fix typo in default floating-network-name ext_net rather that
   ext-net
2) Refactor init_keystone_client to initialise the right client
   depending on api version.
3) Add a keystone_session object which can be shared by the
   individual project clients
4) Use credential information passed down the identity-admin
   relation in the tempest.conf template
5) Disable the ec2 cred checks for keystone v3 as these rely on
   the client being able to resolve users and projects to their
   uuids which does not seem to be possible with a project scoped
   client. This shoud be fixed at a later date by the identity admin
   relation passing the uuids to the charm
6) Remove try/catch-all excepts blocks. They were initially put in
   as the charm tried to render its config as it came up meaning
   that the services it tried to query may have been down. The
   charm no longer does this and a client failure should be fatal.
   Also try/catch-all excepts blocks are a fundamentally bad thing.
   Where needed check that the service is present in the catalogue
   before querying its api.

Change-Id: I3dd5ed610794eece515d9a03391f9844ac83efc0
2017-01-20 11:04:54 +00:00
..
__init__.py Add unit tests 2016-12-07 13:06:28 +00:00
tempest_output.py Add unit tests 2016-12-07 13:06:28 +00:00
test_lib_charm_openstack_tempest.py Add Keystone v3 support to charm 2017-01-20 11:04:54 +00:00
test_tempest_handlers.py Add unit tests 2016-12-07 13:06:28 +00:00