aboutsummaryrefslogtreecommitdiffstats
path: root/test/hpa_automation
diff options
context:
space:
mode:
authoryangyan <yangyanyj@chinamobile.com>2019-09-10 12:11:10 +0800
committerDaniel Rose <dr695h@att.com>2019-09-10 15:15:43 +0000
commitdd95f0285f8a986498e3b6146c16d23e09ab4490 (patch)
tree310d202b25c2362c72769364571e0d99aea3cf9c /test/hpa_automation
parent4baa51c89bd56894646458273a62bf3b2963b298 (diff)
Fix the error of hpa when create ns
Change-Id: I6000c83a3a265a185dad8ac8ff90388df88850dd Issue-ID: INT-1239 Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'test/hpa_automation')
-rwxr-xr-xtest/hpa_automation/tosca/hpa_automation.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/hpa_automation/tosca/hpa_automation.py b/test/hpa_automation/tosca/hpa_automation.py
index d542c20b6..c3857094d 100755
--- a/test/hpa_automation/tosca/hpa_automation.py
+++ b/test/hpa_automation/tosca/hpa_automation.py
@@ -397,7 +397,7 @@ def create_ns(parameters, csar_id):
print ns_create_string
ns_create_out = (os.popen(ns_create_string)).read()
print ns_create_out
- ns_instance_id = (get_out_helper_2(ns_create_out))[3]
+ ns_instance_id = (get_out_helper_2(ns_create_out))[4]
return ns_instance_id
def instantiate_ns(parameters, ns_instance_id):
@@ -495,8 +495,8 @@ if model == "sdc":
vnf_onboard_output = onboard_vnf(parameters)
print vnf_onboard_output
- ns_onboard_out = onboard_ns(parameters)
- print ns_onboard_out
+ ns_out = onboard_ns(parameters)
+ print ns_out
else:
print "use csar file is uploaded by local"
vnf_package_output = create_vnf_package(parameters)
@@ -505,15 +505,15 @@ else:
print ns_package_output
upload_vnf_out = upload_vnf_package(parameters, vnf_package_output)
print upload_vnf_out
- upload_ns_out = upload_ns_package(parameters, ns_package_output)
- print upload_ns_out
+ ns_out = upload_ns_package(parameters, ns_package_output)
+ print ns_out
# 6.add_policies function not currently working, using curl commands
add_policy_models(parameters)
add_policies(parameters)
# 7. VFC part
-ns_instance_id = create_ns(parameters, ns_package_output)
+ns_instance_id = create_ns(parameters, ns_out)
print ns_instance_id
instantiate_ns_output = instantiate_ns(parameters, ns_instance_id)
print instantiate_ns_output