From a409fa36aff162c7358a1b20914f08fb7e4b1c99 Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Fri, 28 Mar 2014 13:58:20 +0900 Subject: [PATCH] Add a response header validation Nova API sometimes returns important information in a response header, and Tempest needs to check it for keeping the backward compatibility. This patch adds the check for "create a server snapshot" API as the sample. Partially implements blueprint nova-api-attribute-test Change-Id: I2441147ee050e7b818906aaa754dcec4480d8c18 --- tempest/exceptions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tempest/exceptions.py b/tempest/exceptions.py index 857e1e8..2e2c5ec 100644 --- a/tempest/exceptions.py +++ b/tempest/exceptions.py @@ -197,6 +197,10 @@ class InvalidHTTPResponseBody(RestClientException): message = "HTTP response body is invalid json or xml" +class InvalidHTTPResponseHeader(RestClientException): + message = "HTTP response header is invalid" + + class InvalidContentType(RestClientException): message = "Invalid content type provided"