Merge "Remove unused exceptions"
diff --git a/tempest/common/service_client.py b/tempest/common/service_client.py
index c0a7133..dc634a1 100644
--- a/tempest/common/service_client.py
+++ b/tempest/common/service_client.py
@@ -69,18 +69,10 @@
raise exceptions.Conflict(ex)
except lib_exceptions.OverLimit as ex:
raise exceptions.OverLimit(ex)
- except lib_exceptions.RateLimitExceeded as ex:
- raise exceptions.RateLimitExceeded(ex)
except lib_exceptions.InvalidContentType as ex:
raise exceptions.InvalidContentType(ex)
except lib_exceptions.UnprocessableEntity as ex:
raise exceptions.UnprocessableEntity(ex)
- except lib_exceptions.InvalidHTTPResponseBody as ex:
- raise exceptions.InvalidHTTPResponseBody(ex)
- except lib_exceptions.NotImplemented as ex:
- raise exceptions.NotImplemented(ex)
- except lib_exceptions.ServerFault as ex:
- raise exceptions.ServerFault(ex)
# TODO(oomichi): This is just a workaround for failing gate tests
# when separating Forbidden from Unauthorized in tempest-lib.
# We will need to remove this translation and replace negative tests
diff --git a/tempest/exceptions.py b/tempest/exceptions.py
index f265186..680b92a 100644
--- a/tempest/exceptions.py
+++ b/tempest/exceptions.py
@@ -167,22 +167,10 @@
message = "Unprocessable entity"
-class RateLimitExceeded(RestClientException):
- message = "Rate limit exceeded"
-
-
class OverLimit(RestClientException):
message = "Quota exceeded"
-class ServerFault(RestClientException):
- message = "Got server fault"
-
-
-class NotImplemented(RestClientException):
- message = "Got NotImplemented error"
-
-
class Conflict(RestClientException):
message = "An object with that identifier already exists"
@@ -197,10 +185,6 @@
"MUST NOT have an entity")
-class InvalidHTTPResponseBody(RestClientException):
- message = "HTTP response body is invalid json or xml"
-
-
class InvalidHTTPResponseHeader(RestClientException):
message = "HTTP response header is invalid"