aboutsummaryrefslogtreecommitdiffstats
path: root/test/vcpe/vcpecommon.py
diff options
context:
space:
mode:
authorYang Xu <yang.xu3@huawei.com>2019-04-29 00:20:52 -0400
committerYang Xu <yang.xu3@huawei.com>2019-04-29 00:34:42 -0400
commitc52ed6e001b09f6e21f0e76cf173eda03fbf1f0e (patch)
tree3ac0714050c84986f5b4f7696ef7885d1059af6e /test/vcpe/vcpecommon.py
parent42dcb266339a26803074f3190d1d9576e9dd05b7 (diff)
Download vCPE service csar from SDC
Clean up import Change-Id: I1a1be9b0528858fc30106978153e0af132675f93 Issue-ID: INT-847 Signed-off-by: Yang Xu <yang.xu3@huawei.com>
Diffstat (limited to 'test/vcpe/vcpecommon.py')
-rwxr-xr-xtest/vcpe/vcpecommon.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/vcpe/vcpecommon.py b/test/vcpe/vcpecommon.py
index 980092c82..77e362271 100755
--- a/test/vcpe/vcpecommon.py
+++ b/test/vcpe/vcpecommon.py
@@ -95,7 +95,7 @@ class VcpeCommon:
self.aai_query_port = '30233' if self.oom_mode else '8443'
self.sniro_port = '30288' if self.oom_mode else '8080'
- self.host_names = ['so', 'sdnc', 'robot', 'aai-inst1', self.dcae_ves_collector_name]
+ self.host_names = ['sdc', 'so', 'sdnc', 'robot', 'aai-inst1', self.dcae_ves_collector_name]
if extra_host_names:
self.host_names.extend(extra_host_names)
# get IP addresses
@@ -131,6 +131,14 @@ class VcpeCommon:
}
#############################################################################################
+ # SDC urls
+ self.sdc_get_request_userpass = 'vid','Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U'
+ self.sdc_get_request_headers = {'X-ECOMP-InstanceID': 'VID'}
+ self.sdc_port = '30205'
+ self.sdc_url_prefix = 'http://' + self.hosts['sdc'] + ':' + self.sdc_port
+ self.sdc_service_list_url = self.sdc_url_prefix + '/sdc/v1/catalog/services'
+
+ #############################################################################################
# SDNC urls
self.sdnc_userpass = 'admin', 'Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U'
self.sdnc_db_name = 'sdnctl'
@@ -425,7 +433,7 @@ class VcpeCommon:
def get_oom_onap_vm_ip(self, keywords):
vm_ip = {}
- onap_vm_list = set(['so', 'sdnc', 'aai-inst1', 'robot', self.dcae_ves_collector_name])
+ onap_vm_list = set(['sdc', 'so', 'sdnc', 'aai-inst1', 'robot', self.dcae_ves_collector_name])
for vm in keywords:
if vm in onap_vm_list:
vm_ip[vm] = self.oom_so_sdnc_aai_ip