Skip boto tests when auth_version is v3
When auth_version is v3, boto clients are not setup by manager
as boto clients can only use v2 identity clients to generate AWS
credentials.
When auth version is v3, boto tests try to run, and fail because
they can't find the clients. They should be skipped instead.
Partially-implements: bp/multi-keystone-api-version-tests
Change-Id: I7281d2c886d123682cefc5b5511c11300af0ca4c
diff --git a/tempest/thirdparty/boto/test.py b/tempest/thirdparty/boto/test.py
index 043b230..90d0838 100644
--- a/tempest/thirdparty/boto/test.py
+++ b/tempest/thirdparty/boto/test.py
@@ -203,6 +203,9 @@
super(BotoTestCase, cls).skip_checks()
if not CONF.compute_feature_enabled.ec2_api:
raise cls.skipException("The EC2 API is not available")
+ if not CONF.identity_feature_enabled.api_v2 or \
+ not CONF.identity.auth_version == 'v2':
+ raise cls.skipException("Identity v2 is not available")
@classmethod
def setup_credentials(cls):