diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2019-04-23 10:14:52 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2019-04-23 10:14:52 +0800 |
commit | b7ce947789670cb3286038c175e9d3ac01480a87 (patch) | |
tree | 95832c9527bd327eb4915986c91d173d37f967f0 | |
parent | fd4aa53fed5d8fbfc9dde6bbf47d1a1d63e6768b (diff) |
Add vnf scale ut case
Change-Id: I37060693c91dd99e92fedb359e8564a249c12a36
Issue-ID: VFC-1306
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/lcm/nf/tests/test_scale_vnf.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lcm/lcm/nf/tests/test_scale_vnf.py b/lcm/lcm/nf/tests/test_scale_vnf.py index 46cc0c2e..60cabbdb 100644 --- a/lcm/lcm/nf/tests/test_scale_vnf.py +++ b/lcm/lcm/nf/tests/test_scale_vnf.py @@ -52,3 +52,21 @@ class TestNfScale(TestCase): data=self.req_data, format='json') self.failUnlessEqual(status.HTTP_409_CONFLICT, response.status_code) + + def test_scale_vnf_inner_error(self): + NfInstModel(nfinstid='678', + nf_name='VNF1', + nf_desc="VNF DESC", + vnfdid="1", + netype="XGW", + vendor="ZTE", + vnfSoftwareVersion="V1", + version="V1", + package_id="2", + status='INSTANTIATED').save() + url = "/api/vnflcm/v1/vnf_instances/678/scale" + response = self.client.post(url, + data={}, + format='json') + NfInstModel.objects.filter(nfinstid='678').delete() + self.failUnlessEqual(status.HTTP_500_INTERNAL_SERVER_ERROR, response.status_code) |