summaryrefslogtreecommitdiff
path: root/functionaltests
diff options
context:
space:
mode:
authorDouglas Mendizábal <mail@doug.gt>2015-03-26 14:18:18 -0500
committerDouglas Mendizábal <mail@doug.gt>2015-03-26 17:01:43 -0500
commit4f45db00600c778523fb922cda180f0f3463b362 (patch)
treef63cae4a808394a4381e77457d06b50322e7e4df /functionaltests
parent91cf1cef2e81f343327ad0af9318ffa7232c4f5b (diff)
downloadpython-barbicanclient-4f45db00600c778523fb922cda180f0f3463b362.tar.gz
Consolidate Payload Exceptions
The current exceptions are too fine grained. This CR consolidates the two exceptions into a single PayloadException. Change-Id: I22cf7b51adf0866b76e4dcf494df74d449f3b9fe
Diffstat (limited to 'functionaltests')
-rw-r--r--functionaltests/client/v1/functional/test_secrets.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/functionaltests/client/v1/functional/test_secrets.py b/functionaltests/client/v1/functional/test_secrets.py
index 55c54c5..6be3c20 100644
--- a/functionaltests/client/v1/functional/test_secrets.py
+++ b/functionaltests/client/v1/functional/test_secrets.py
@@ -152,7 +152,7 @@ class SecretsTestCase(base.TestCase):
test_model.payload = None
self.assertRaises(
- exceptions.NoPayloadException,
+ exceptions.PayloadException,
self.behaviors.store_secret,
test_model
)
@@ -167,7 +167,7 @@ class SecretsTestCase(base.TestCase):
test_model.payload_content_type = None
self.assertRaises(
- exceptions.NoPayloadException,
+ exceptions.PayloadException,
self.behaviors.store_secret,
test_model
)
@@ -210,7 +210,7 @@ class SecretsTestCase(base.TestCase):
secret_create_emptystrings_data)
self.assertRaises(
- exceptions.NoPayloadException,
+ exceptions.PayloadException,
self.behaviors.store_secret,
test_model
)
@@ -377,7 +377,7 @@ class SecretsTestCase(base.TestCase):
test_model.payload = payload
self.assertRaises(
- exceptions.InvalidPayloadException,
+ exceptions.PayloadException,
self.behaviors.store_secret,
test_model
)
@@ -398,7 +398,7 @@ class SecretsTestCase(base.TestCase):
test_model.payload = payload
self.assertRaises(
- exceptions.NoPayloadException,
+ exceptions.PayloadException,
self.behaviors.store_secret,
test_model
)