From f7f380ab656da359a3e3f9cf34982e5e86a93289 Mon Sep 17 00:00:00 2001 From: hongyuzhao Date: Fri, 14 Jun 2019 16:32:56 +0800 Subject: Fix bug for miss check callbackurl in subscription post request. Issue-ID: VFC-1418 Signed-off-by: hongyuzhao Change-Id: I2612cf6edd88b5a68860cc157932f03756fc06b6 --- lcm/lcm/nf/biz/create_subscription.py | 2 +- lcm/lcm/nf/tests/test_subscribe_notification.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'lcm') 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) -- cgit 1.2.3-korg