Code Review
/
modeling
/
etsicatalog.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
return 404 instead of 500 if subscription does not exist
[modeling/etsicatalog.git]
/
catalog
/
packages
/
tests
/
test_nsdm_subscription.py
diff --git
a/catalog/packages/tests/test_nsdm_subscription.py
b/catalog/packages/tests/test_nsdm_subscription.py
index
862054b
..
0d73afd
100644
(file)
--- a/
catalog/packages/tests/test_nsdm_subscription.py
+++ b/
catalog/packages/tests/test_nsdm_subscription.py
@@
-158,7
+158,7
@@
class TestNsdmSubscription(TestCase):
response.data["callbackUri"])
expected_data = {
'status': 303,
response.data["callbackUri"])
expected_data = {
'status': 303,
- 'detail': '
Already Subscription exists
with'
+ 'detail': '
Subscription has already existed
with'
' the same callbackUri and filter'
}
response = self.client.post("/api/nsd/v1/subscriptions",
' the same callbackUri and filter'
}
response = self.client.post("/api/nsd/v1/subscriptions",
@@
-465,7
+465,7
@@
class TestNsdmSubscription(TestCase):
expected_data = {
"status": 404,
"detail": "Subscription(" + self.subscription_id + ") "
expected_data = {
"status": 404,
"detail": "Subscription(" + self.subscription_id + ") "
- "doesn't exist
s
"
+ "doesn't exist"
}
response = self.client.get('/api/nsd/v1/'
'subscriptions/' + self.subscription_id,
}
response = self.client.get('/api/nsd/v1/'
'subscriptions/' + self.subscription_id,