
from tempest.exceptions import base


class ShareBuildErrorException(base.TempestException):
    message = "Share %(share_id)s failed to build and is in ERROR status"


class AccessRuleBuildErrorException(base.TempestException):
    message = "Share's rule with id %(rule_id) is in ERROR status"


class ShareProtocolNotSpecified(base.TempestException):
    message = "Share can not be created, share protocol is not specified"


class ShareNetworkNotSpecified(base.TempestException):
    message = "Share can not be created, share network not specified"


class NoAvailableNetwork(base.TempestException):
    message = "No available network for service VM"


from tempest.exceptions import base


class ShareBuildErrorException(base.TempestException):
    message = "Share %(share_id)s failed to build and is in ERROR status"


class AccessRuleBuildErrorException(base.TempestException):
    message = "Share's rule with id %(rule_id) is in ERROR status"


class SnapshotBuildErrorException(base.TempestException):
    message = "Snapshot %(snapshot_id)s failed to build and is in ERROR status"


class ShareProtocolNotSpecified(base.TempestException):
    message = "Share can not be created, share protocol is not specified"


class ShareNetworkNotSpecified(base.TempestException):
    message = "Share can not be created, share network not specified"


class NoAvailableNetwork(base.TempestException):
    message = "No available network for service VM"

Add exception to tempest plugin
Add exception to tempest plugin

Exception 'SnapshotBuildErrorException' was used, but
was not defined.

Change-Id: Ida7554d65eb6657fa05b7d53cbfa452cc0239f74

  
  from tempest.exceptions import base
  
  
  class ShareBuildErrorException(base.TempestException):
      message = "Share %(share_id)s failed to build and is in ERROR status"
  
  
  class AccessRuleBuildErrorException(base.TempestException):
      message = "Share's rule with id %(rule_id) is in ERROR status"
+ 
+ 
+ class SnapshotBuildErrorException(base.TempestException):
+     message = "Snapshot %(snapshot_id)s failed to build and is in ERROR status"
  
  
  class ShareProtocolNotSpecified(base.TempestException):
      message = "Share can not be created, share protocol is not specified"
  
  
  class ShareNetworkNotSpecified(base.TempestException):
      message = "Share can not be created, share network not specified"
  
  
  class NoAvailableNetwork(base.TempestException):
      message = "No available network for service VM"
  
Add exception to tempest plugin
## Code Before:

from tempest.exceptions import base


class ShareBuildErrorException(base.TempestException):
    message = "Share %(share_id)s failed to build and is in ERROR status"


class AccessRuleBuildErrorException(base.TempestException):
    message = "Share's rule with id %(rule_id) is in ERROR status"


class ShareProtocolNotSpecified(base.TempestException):
    message = "Share can not be created, share protocol is not specified"


class ShareNetworkNotSpecified(base.TempestException):
    message = "Share can not be created, share network not specified"


class NoAvailableNetwork(base.TempestException):
    message = "No available network for service VM"

## Instruction:
Add exception to tempest plugin
## Code After:

from tempest.exceptions import base


class ShareBuildErrorException(base.TempestException):
    message = "Share %(share_id)s failed to build and is in ERROR status"


class AccessRuleBuildErrorException(base.TempestException):
    message = "Share's rule with id %(rule_id) is in ERROR status"


class SnapshotBuildErrorException(base.TempestException):
    message = "Snapshot %(snapshot_id)s failed to build and is in ERROR status"


class ShareProtocolNotSpecified(base.TempestException):
    message = "Share can not be created, share protocol is not specified"


class ShareNetworkNotSpecified(base.TempestException):
    message = "Share can not be created, share network not specified"


class NoAvailableNetwork(base.TempestException):
    message = "No available network for service VM"
