Fix bug for miss check callbackurl in subscription post request. 56/89956/1
authorhongyuzhao <zhao.hongyu@zte.com.cn>
Fri, 14 Jun 2019 08:32:56 +0000 (16:32 +0800)
committerhongyuzhao <zhao.hongyu@zte.com.cn>
Mon, 17 Jun 2019 01:50:33 +0000 (09:50 +0800)
Issue-ID: VFC-1418
Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
Change-Id: I2612cf6edd88b5a68860cc157932f03756fc06b6

lcm/lcm/nf/biz/create_subscription.py
lcm/lcm/nf/tests/test_subscribe_notification.py

index 8c6d452..164bf6c 100644 (file)
@@ -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()
index 94c2ff7..70a309b 100644 (file)
@@ -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)