Skip Nova API attribute tests if an XML response
XML client of Tempest is broken and cannot get some keys from Nova API
response body. The best way is to fix it, but now XML format of Nova
API has been marked as "deprecated" and XML client will be removed
from Tempest.
In this situation, this patch makes the Nova attribute tests disable
if an XML response.
Partially implements blueprint nova-api-attribute-test
Change-Id: I1a482df79959786dd1ed7662b305acf0a8062747
diff --git a/tempest/api/compute/base.py b/tempest/api/compute/base.py
index e9b9efa..ed63f24 100644
--- a/tempest/api/compute/base.py
+++ b/tempest/api/compute/base.py
@@ -187,6 +187,13 @@
raise exceptions.InvalidHttpSuccessCode(msg)
response_schema = schema.get('response_body')
if response_schema:
+ if cls._interface == 'xml':
+ # NOTE: xml client of Tempest is broken and cannot get some
+ # keys. The best way is to fix it, but now xml format has been
+ # marked as "deprecated" in Nova API and xml client will be
+ # removed from Tempest.
+ # So now this test does not check attributes if xml.
+ return
try:
jsonschema.validate(body, response_schema)
except jsonschema.ValidationError as ex: