diff options
author | hongyuzhao <zhao.hongyu@zte.com.cn> | 2019-06-14 16:32:56 +0800 |
---|---|---|
committer | hongyuzhao <zhao.hongyu@zte.com.cn> | 2019-06-17 09:50:33 +0800 |
commit | f7f380ab656da359a3e3f9cf34982e5e86a93289 (patch) | |
tree | a27427bc70fc43cea23257ff46d5793af0918430 | |
parent | 6a15a10abf1ea0d90708c607a1bfc00dc50ca06f (diff) |
Fix bug for miss check callbackurl in subscription post request.
Issue-ID: VFC-1418
Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
Change-Id: I2612cf6edd88b5a68860cc157932f03756fc06b6
-rw-r--r-- | lcm/lcm/nf/biz/create_subscription.py | 2 | ||||
-rw-r--r-- | lcm/lcm/nf/tests/test_subscribe_notification.py | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/lcm/lcm/nf/biz/create_subscription.py b/lcm/lcm/nf/biz/create_subscription.py index 8c6d4528..164bf6c8 100644 --- a/lcm/lcm/nf/biz/create_subscription.py +++ b/lcm/lcm/nf/biz/create_subscription.py @@ -62,7 +62,7 @@ class CreateSubscription: def do_biz(self): self.subscription_id = str(uuid.uuid4()) - # self.check_callbackuri_connection() + self.check_callbackuri_connection() self.check_valid_auth_info() self.check_filter_types() self.check_valid() diff --git a/lcm/lcm/nf/tests/test_subscribe_notification.py b/lcm/lcm/nf/tests/test_subscribe_notification.py index 94c2ff7c..70a309b8 100644 --- a/lcm/lcm/nf/tests/test_subscribe_notification.py +++ b/lcm/lcm/nf/tests/test_subscribe_notification.py @@ -174,6 +174,3 @@ class TestSubscription(TestCase): response = self.client.post("/api/vnflcm/v1/subscriptions", data=miss_callbackUri_subscription, format='json') self.assertEqual(400, response.status_code) self.assertEqual({'callbackUri': ['This field is required.']}, response.data['detail']) - # self.assertEqual(temp_uuid, response.data["id"]) - # response = self.client.post("/api/vnflcm/v1/subscriptions", data=dummy_subscription, format='json') - # self.assertEqual(303, response.status_code) |