From 305d79a03fa6113e10a3df62bd122d7c5971e6e7 Mon Sep 17 00:00:00 2001 From: "ying.yunlong" Date: Wed, 28 Feb 2018 14:40:14 +0800 Subject: Modify vfc-vnflcm license head Change-Id: I3d7ffbc47f2206a365427563fb481a39e8e3e6dd Issue-ID: VFC-780 Signed-off-by: ying.yunlong --- lcm/lcm/v2/tests/__init__.py | 2 +- lcm/lcm/v2/tests/test_vnf_create.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'lcm') diff --git a/lcm/lcm/v2/tests/__init__.py b/lcm/lcm/v2/tests/__init__.py index c7b6818e..342c2a8c 100644 --- a/lcm/lcm/v2/tests/__init__.py +++ b/lcm/lcm/v2/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2017 ZTE Corporation. +# Copyright 2018 ZTE Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/lcm/lcm/v2/tests/test_vnf_create.py b/lcm/lcm/v2/tests/test_vnf_create.py index c1d4d36c..154b781a 100644 --- a/lcm/lcm/v2/tests/test_vnf_create.py +++ b/lcm/lcm/v2/tests/test_vnf_create.py @@ -1,4 +1,4 @@ -# Copyright 2017 ZTE Corporation. +# Copyright 2018 ZTE Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -80,4 +80,5 @@ class TestNFInstantiate(TestCase): response = self.client.post("/api/vnflcm/v2/vnf_instances", data=data, format='json') self.failUnlessEqual(status.HTTP_201_CREATED, response.status_code) context = json.loads(response.content) + self.assertEqual(context['vnfInstanceName'], "vFW_01") self.assertTrue(NfInstModel.objects.filter(nfinstid=context['id']).exists()) -- cgit 1.2.3-korg