diff options
author | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-02-28 14:40:14 +0800 |
---|---|---|
committer | ying.yunlong <ying.yunlong@zte.com.cn> | 2018-02-28 14:40:14 +0800 |
commit | 305d79a03fa6113e10a3df62bd122d7c5971e6e7 (patch) | |
tree | 4c5db60e68053e6c8251be081ec28b4ea1e5bfde /lcm | |
parent | 66e250b237b984a9af3a47029b012f47bf58861e (diff) |
Modify vfc-vnflcm license head
Change-Id: I3d7ffbc47f2206a365427563fb481a39e8e3e6dd
Issue-ID: VFC-780
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
Diffstat (limited to 'lcm')
-rw-r--r-- | lcm/lcm/v2/tests/__init__.py | 2 | ||||
-rw-r--r-- | lcm/lcm/v2/tests/test_vnf_create.py | 3 |
2 files changed, 3 insertions, 2 deletions
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()) |