aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfengyuanxing <feng.yuanxing@zte.com.cn>2018-03-06 13:47:53 +0800
committerfengyuanxing <feng.yuanxing@zte.com.cn>2018-03-06 13:47:53 +0800
commit39c20b2c47a2cc5658681fbec665c88f10df9318 (patch)
tree82667e25f0763643093d6ada58d2b68bc94116d3
parent4838e8ab8a6bea05609cd3d54a7db22166342642 (diff)
Add a new test case
Change-Id: I3e233ba723d939dfb7789dbcb5bc3a16b47aad30 Issue-ID: VFC-784 Signed-off-by: fengyuanxing <feng.yuanxing@zte.com.cn>
-rw-r--r--lcm/pub/tests/test_scaleaspect.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lcm/pub/tests/test_scaleaspect.py b/lcm/pub/tests/test_scaleaspect.py
index 2fec1785..8e446ffb 100644
--- a/lcm/pub/tests/test_scaleaspect.py
+++ b/lcm/pub/tests/test_scaleaspect.py
@@ -3,6 +3,7 @@ from lcm.pub.utils.scaleaspect import get_scale_vnf_data_package
from lcm.pub.utils.scaleaspect import get_vnf_scale_info_package
from lcm.pub.utils.scaleaspect import get_vnf_data_package
from lcm.pub.utils.scaleaspect import get_json_data
+from lcm.pub.utils.scaleaspect import get_nsdId
from lcm.pub.database.models import NfInstModel
from lcm.pub.database.models import NSInstModel
from lcm.pub.msapi import catalog
@@ -125,3 +126,7 @@ class TestScaleAspect(TestCase):
scale_vnf_data = get_scale_vnf_data_package(self.scaleNsData, "1")
self.assertIsNotNone(scale_vnf_data)
self.assertEqual(2, scale_vnf_data.__len__())
+
+ def test_get_nsdId(self):
+ nsd_id = get_nsdId("1")
+ self.assertEqual("23", nsd_id)