diff options
author | fengyuanxing <feng.yuanxing@zte.com.cn> | 2018-03-08 10:11:26 +0800 |
---|---|---|
committer | fengyuanxing <feng.yuanxing@zte.com.cn> | 2018-03-08 10:11:26 +0800 |
commit | 0cdd05f33c120a3dc4881ab8f6e3d9898e1ff233 (patch) | |
tree | f3ada3feeddba4a08dd7aa4c5121a7238da89381 | |
parent | d3abe7e89158c54c9816e8c924de00d9e76ca819 (diff) |
Modify test case and scale json
Change-Id: Ib605f12d3490932a57d8d010cc1abee332dbd5a7
Issue-ID: VFC-784
Signed-off-by: fengyuanxing <feng.yuanxing@zte.com.cn>
-rw-r--r-- | lcm/ns/data/scalemapping.json | 2 | ||||
-rw-r--r-- | lcm/pub/tests/test_scaleaspect.py | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lcm/ns/data/scalemapping.json b/lcm/ns/data/scalemapping.json index 936e1f3c..3391595e 100644 --- a/lcm/ns/data/scalemapping.json +++ b/lcm/ns/data/scalemapping.json @@ -15,7 +15,7 @@ { "vnfd_id":"nf_zte_hss", "vnf_scaleAspectId": "gpu", - "numberOfSteps": "1" + "numberOfSteps": "3" } ] }, diff --git a/lcm/pub/tests/test_scaleaspect.py b/lcm/pub/tests/test_scaleaspect.py index 53d3a7de..d8e9b6fb 100644 --- a/lcm/pub/tests/test_scaleaspect.py +++ b/lcm/pub/tests/test_scaleaspect.py @@ -167,6 +167,14 @@ class TestScaleAspect(TestCase): self.scaling_map_json, "23", "TIC_EDGE_IMS", "1") self.assertIsNotNone(vnf_data_package) self.assertEqual(2, vnf_data_package.__len__()) + self.assertIsNotNone(vnf_data_package) + self.assertEqual(2, vnf_data_package.__len__()) + self.assertEqual("nf_zte_cscf", vnf_data_package[0]["vnfd_id"]) + self.assertEqual("1", vnf_data_package[0]["numberOfSteps"]) + self.assertEqual("gsu", vnf_data_package[0]["vnf_scaleAspectId"]) + self.assertEqual("nf_zte_hss", vnf_data_package[1]["vnfd_id"]) + self.assertEqual("3", vnf_data_package[1]["numberOfSteps"]) + self.assertEqual("gpu", vnf_data_package[1]["vnf_scaleAspectId"]) def test_get_scale_vnf_data_from_json_2(self): vnf_data_package = get_scale_vnf_data_from_json( |