diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-01-21 23:24:40 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-01-21 23:24:40 +0000 |
commit | ddd942edc2901cf6c8ac30ef322cb94f8c895766 (patch) | |
tree | 97cf844b02b486adfc71fda60c671945530b83dc | |
parent | 38f3fc06ce8b508d2e0aa2acf17463e5dc2f0fb8 (diff) | |
parent | 26828ccc9e371200c44df88c36a4cfc641384de8 (diff) | |
download | tempest-lib-ddd942edc2901cf6c8ac30ef322cb94f8c895766.tar.gz |
Merge "Remove unused exceptions"
-rw-r--r-- | tempest_lib/exceptions.py | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/tempest_lib/exceptions.py b/tempest_lib/exceptions.py index 69aaf2a..8907cd1 100644 --- a/tempest_lib/exceptions.py +++ b/tempest_lib/exceptions.py @@ -54,14 +54,6 @@ class RFCViolation(RestClientException): message = "RFC Violation" -class InvalidConfiguration(TempestException): - message = "Invalid Configuration" - - -class InvalidCredentials(TempestException): - message = "Invalid Credentials" - - class InvalidHttpSuccessCode(RestClientException): message = "The success code is different than the expected one" @@ -74,54 +66,10 @@ class Unauthorized(RestClientException): message = 'Unauthorized' -class InvalidServiceTag(TempestException): - message = "Invalid service tag" - - class TimeoutException(TempestException): message = "Request timed out" -class BuildErrorException(TempestException): - message = "Server %(server_id)s failed to build and is in ERROR status" - - -class ImageKilledException(TempestException): - message = "Image %(image_id)s 'killed' while waiting for '%(status)s'" - - -class AddImageException(TempestException): - message = "Image %(image_id)s failed to become ACTIVE in the allotted time" - - -class EC2RegisterImageException(TempestException): - message = ("Image %(image_id)s failed to become 'available' " - "in the allotted time") - - -class VolumeBuildErrorException(TempestException): - message = "Volume %(volume_id)s failed to build and is in ERROR status" - - -class SnapshotBuildErrorException(TempestException): - message = "Snapshot %(snapshot_id)s failed to build and is in ERROR status" - - -class VolumeBackupException(TempestException): - message = "Volume backup %(backup_id)s failed and is in ERROR status" - - -class StackBuildErrorException(TempestException): - message = ("Stack %(stack_identifier)s is in %(stack_status)s status " - "due to '%(stack_status_reason)s'") - - -class StackResourceBuildErrorException(TempestException): - message = ("Resource %(resource_name)s in stack %(stack_identifier)s is " - "in %(resource_status)s status due to " - "'%(resource_status_reason)s'") - - class BadRequest(RestClientException): message = "Bad request" @@ -130,15 +78,6 @@ class UnprocessableEntity(RestClientException): message = "Unprocessable entity" -class AuthenticationFailure(RestClientException): - message = ("Authentication with user %(user)s and password " - "%(password)s failed auth using tenant %(tenant)s.") - - -class EndpointNotFound(TempestException): - message = "Endpoint not found" - - class RateLimitExceeded(RestClientException): message = "Rate limit exceeded" @@ -155,37 +94,10 @@ class NotImplemented(RestClientException): message = "Got NotImplemented error" -class ImageFault(TempestException): - message = "Got image fault" - - -class IdentityError(TempestException): - message = "Got identity error" - - class Conflict(RestClientException): message = "An object with that identifier already exists" -class SSHTimeout(TempestException): - message = ("Connection to the %(host)s via SSH timed out.\n" - "User: %(user)s, Password: %(password)s") - - -class SSHExecCommandFailed(TempestException): - """Raised when remotely executed command returns nonzero status.""" - message = ("Command '%(command)s', exit status: %(exit_status)d, " - "Error:\n%(strerror)s") - - -class ServerUnreachable(TempestException): - message = "The server is not reachable via the configured network" - - -class TearDownException(TempestException): - message = "%(num)d cleanUp operation failed" - - class ResponseWithNonEmptyBody(RFCViolation): message = ("RFC Violation! Response with %(status)d HTTP Status Code " "MUST NOT have a body") |