Refactor codes for vfc-nfvo-lcm 65/59765/1
authorfujinhua <fu.jinhua@zte.com.cn>
Thu, 9 Aug 2018 02:36:48 +0000 (10:36 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Thu, 9 Aug 2018 02:36:48 +0000 (10:36 +0800)
Move scaleaspect.py from pub to ns

Change-Id: Icacc3cb630f34240246df007f765c94ccc29205d
Issue-ID: VFC-1009
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/ns/ns_manual_scale.py
lcm/ns/scaleaspect.py [moved from lcm/pub/utils/scaleaspect.py with 100% similarity]
lcm/ns/tests/test_ns_manual_scale.py
lcm/ns/tests/test_scaleaspect.py [moved from lcm/pub/tests/test_scaleaspect.py with 99% similarity]
lcm/pub/tests/__init__.py [deleted file]

index 2870ed7..5bcee52 100644 (file)
@@ -23,7 +23,7 @@ from lcm.pub.database.models import JobModel, NSInstModel
 from lcm.pub.exceptions import NSLCMException
 from lcm.pub.utils.jobutil import JobUtil, JOB_MODEL_STATUS
 from lcm.pub.utils.values import ignore_case_get
-from lcm.pub.utils.scaleaspect import get_scale_vnf_data_info_list
+from lcm.ns.scaleaspect import get_scale_vnf_data_info_list
 
 JOB_ERROR = 255
 SCALE_TYPE = ("SCALE_NS", "SCALE_VNF")
index 6526ffc..aff180f 100644 (file)
@@ -25,7 +25,7 @@ from lcm.pub.exceptions import NSLCMException
 from lcm.pub.utils import restcall
 from lcm.pub.utils.jobutil import JobUtil, JOB_TYPE, JOB_MODEL_STATUS
 from lcm.pub.msapi import catalog
-from lcm.pub.utils.scaleaspect import get_json_data
+from lcm.ns.scaleaspect import get_json_data
 
 
 SCALING_JSON = {
similarity index 99%
rename from lcm/pub/tests/test_scaleaspect.py
rename to lcm/ns/tests/test_scaleaspect.py
index ce7704b..f32d22d 100644 (file)
@@ -13,7 +13,7 @@
 # limitations under the License.
 
 from django.test import TestCase
-from lcm.pub.utils.scaleaspect import get_json_data
+from lcm.ns.scaleaspect import get_json_data
 from lcm.pub.database.models import NfInstModel
 from lcm.pub.database.models import NSInstModel
 from lcm.pub.utils.timeutil import now_time
diff --git a/lcm/pub/tests/__init__.py b/lcm/pub/tests/__init__.py
deleted file mode 100644 (file)
index 4f0b05c..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# Copyright 2016-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.
-# You may obtain a copy of the License at
-#
-#         http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.