diff options
Diffstat (limited to 'robot/testsuites')
-rw-r--r-- | robot/testsuites/demo.robot | 12 | ||||
-rw-r--r-- | robot/testsuites/health-check.robot | 82 | ||||
-rw-r--r-- | robot/testsuites/model-distribution.robot | 2 | ||||
-rw-r--r-- | robot/testsuites/update_onap_page.robot | 83 | ||||
-rw-r--r-- | robot/testsuites/vnf-orchestration.robot | 5 |
5 files changed, 167 insertions, 17 deletions
diff --git a/robot/testsuites/demo.robot b/robot/testsuites/demo.robot index 74a78d45..4c99f451 100644 --- a/robot/testsuites/demo.robot +++ b/robot/testsuites/demo.robot @@ -2,12 +2,18 @@ Documentation Executes the VNF Orchestration Test cases including setup and teardown ... Library Collections +Library HTTPUtils Resource ../resources/demo_preload.robot *** Variables *** ${VNF_NAME} DemoVNF ${MODULE_NAME} DemoModuleName +${HB_STACK} +${HB_SERVICE_INSTANCE_ID} +${HB_SERVICE} + + *** Test Cases *** Initialize Customer And Models [Tags] InitDemo @@ -42,3 +48,9 @@ Delete Instantiated VNF Delete VNF [Teardown] Teardown VNF +Run Heatbridge + [Documentation] + ... Try to run heatbridge + [Tags] heatbridge + Execute Heatbridge ${HB_STACK} ${HB_SERVICE_INSTANCE_ID} ${HB_SERVICE} + diff --git a/robot/testsuites/health-check.robot b/robot/testsuites/health-check.robot index d27c38e5..ec0748ec 100644 --- a/robot/testsuites/health-check.robot +++ b/robot/testsuites/health-check.robot @@ -14,6 +14,8 @@ Resource ../resources/appc_interface.robot Resource ../resources/portal_interface.robot Resource ../resources/mr_interface.robot Resource ../resources/aaf_interface.robot +Resource ../resources/msb_interface.robot +Resource ../resources/clamp_interface.robot *** Test Cases *** Basic DCAE Health Check @@ -55,3 +57,83 @@ Basic Message Router Health Check Basic VID Health Check [Tags] health Run VID Health Check + +Basic Microservice Bus Health Check + [Tags] health + Run MSB Health Check + +Basic CLAMP Health Check + [Tags] health + Run CLAMP Health Check + +catalog API Health Check + [Tags] health + Run MSB Get Request /api/catalog/v1/swagger.json + +emsdriver API Health Check + [Tags] health + Run MSB Get Request /api/emsdriver/v1/swagger.json + +gvnfmdriver API Health Check + [Tags] health + Run MSB Get Request /api/gvnfmdriver/v1/swagger.json + +huaweivnfmdriver API Health Check + [Tags] health + Run MSB Get Request /api/huaweivnfmdriver/v1/swagger.json + +multicloud API Health Check + [Tags] health + Run MSB Get Request /api/multicloud/v0/swagger.json + +multicloud-ocata API Health Check + [Tags] health + Run MSB Get Request /api/multicloud-ocata/v0/swagger.json + +multicloud-titanium_cloud API Health Check + [Tags] health + Run MSB Get Request /api/multicloud-titanium_cloud/v0/swagger.json + +multicloud-vio API Health Check + [Tags] health + Run MSB Get Request /api/multicloud-vio/v0/swagger.json + +nokiavnfmdriver API Health Check + [Tags] health + Run MSB Get Request /api/nokiavnfmdriver/v1/swagger.json + +nslcm API Health Check + [Tags] health + Run MSB Get Request /api/nslcm/v1/swagger.json + +resmgr API Health Check + [Tags] health + Run MSB Get Request /api/resmgr/v1/swagger.json + +usecaseui-gui API Health Check + [Tags] health + Run MSB Get Request /iui/usecase-ui/ + +vnflcm API Health Check + [Tags] health + Run MSB Get Request /api/vnflcm/v1/swagger.json + +vnfmgr API Health Check + [Tags] health + Run MSB Get Request /api/vnfmgr/v1/swagger.json + +vnfres API Health Check + [Tags] health + Run MSB Get Request /api/vnfres/v1/swagger.json + +workflow API Health Check + [Tags] health + Run MSB Get Request /api/workflow/v1/swagger.json + +ztesdncdriver API Health Check + [Tags] health + Run MSB Get Request /api/ztesdncdriver/v1/swagger.json + +ztevmanagerdriver API Health Check + [Tags] health + Run MSB Get Request /api/ztevmanagerdriver/v1/swagger.json diff --git a/robot/testsuites/model-distribution.robot b/robot/testsuites/model-distribution.robot index 5f0c597d..ad51202d 100644 --- a/robot/testsuites/model-distribution.robot +++ b/robot/testsuites/model-distribution.robot @@ -18,7 +18,5 @@ Distribute vFW Model vFW [Tags] ete distribute Distribute vVG Model vVG [Tags] ete distribute -Distribute vIMS Model vIMS - [Tags] ete distribute Distribute vCPE Model vCPE [Tags] ete distribute
\ No newline at end of file diff --git a/robot/testsuites/update_onap_page.robot b/robot/testsuites/update_onap_page.robot index d4eb6162..b7c3b285 100644 --- a/robot/testsuites/update_onap_page.robot +++ b/robot/testsuites/update_onap_page.robot @@ -8,12 +8,12 @@ Resource ../resources/openstack/keystone_interface.robot Resource ../resources/openstack/nova_interface.robot -Test Timeout 1 minutes +Test Timeout 5 minutes *** Variables *** ${URLS_HTML_TEMPLATE} robot/assets/templates/web/index.html.template - +${HOSTS_PREFIX} vm ${WEB_USER} test ${WEB_PASSWORD} @@ -29,19 +29,22 @@ Update ONAP Page ${server_map}= Get Openstack Servers auth ${oam_ip_map}= Create Dictionary Set To Dictionary ${oam_ip_map} 10.0.0.1=onapdns - Set To Dictionary ${oam_ip_map} 10.0.1.1=aai - Set To Dictionary ${oam_ip_map} 10.0.2.1=appc - Set To Dictionary ${oam_ip_map} 10.0.3.1=sdc - Set To Dictionary ${oam_ip_map} 10.0.4.1=dcae_controller + Set To Dictionary ${oam_ip_map} ${GLOBAL_INJECTED_AAI1_IP_ADDR}=aai1 + Set To Dictionary ${oam_ip_map} ${GLOBAL_INJECTED_AAI2_IP_ADDR}=aai2 + Set To Dictionary ${oam_ip_map} ${GLOBAL_INJECTED_APPC_IP_ADDR}=appc + Set To Dictionary ${oam_ip_map} ${GLOBAL_INJECTED_DCAE_IP_ADDR}=dcae_controller + Set To Dictionary ${oam_ip_map} ${GLOBAL_INJECTED_SO_IP_ADDR}=mso + Set To Dictionary ${oam_ip_map} ${GLOBAL_INJECTED_MR_IP_ADDR}=message_router + Set To Dictionary ${oam_ip_map} ${GLOBAL_INJECTED_POLICY_IP_ADDR}=policy + Set To Dictionary ${oam_ip_map} ${GLOBAL_INJECTED_PORTAL_IP_ADDR}=portal + Set To Dictionary ${oam_ip_map} ${GLOBAL_INJECTED_SDC_IP_ADDR}=sdc + Set To Dictionary ${oam_ip_map} ${GLOBAL_INJECTED_SDNC_IP_ADDR}=sdnc + Set To Dictionary ${oam_ip_map} ${GLOBAL_INJECTED_OPENO_IP_ADDR}=openo + Set To Dictionary ${oam_ip_map} ${GLOBAL_INJECTED_CLAMP_IP_ADDR}=clamp + Set To Dictionary ${oam_ip_map} ${GLOBAL_INJECTED_VID_IP_ADDR}=vid Set To Dictionary ${oam_ip_map} 10.0.4.105=dcae_cdap Set To Dictionary ${oam_ip_map} 10.0.4.102=dcae_coll - Set To Dictionary ${oam_ip_map} 10.0.5.1=mso - Set To Dictionary ${oam_ip_map} 10.0.6.1=policy - Set To Dictionary ${oam_ip_map} 10.0.7.1=sdnc - Set To Dictionary ${oam_ip_map} 10.0.8.1=vid - Set To Dictionary ${oam_ip_map} 10.0.9.1=portal Set To Dictionary ${oam_ip_map} 10.0.10.1=robot - Set To Dictionary ${oam_ip_map} 10.0.11.1=message_router ${values}= Create Dictionary ${keys}= Get Dictionary Keys ${oam_ip_map} @@ -50,6 +53,17 @@ Update ONAP Page \ Set Public Ip ${server_map} ${oam_ip} ${value_name} ${values} Log ${values} Run Keyword If '${WEB_PASSWORD}' != '' Create File ${CREDENTIALS_FILE} ${WEB_USER}:${WEB_PASSWORD} + Set To Dictionary ${values} GLOBAL_INJECTED_ARTIFACTS_VERSION=${GLOBAL_INJECTED_ARTIFACTS_VERSION} + Set To Dictionary ${values} GLOBAL_INJECTED_NETWORK=${GLOBAL_INJECTED_NETWORK} + Set To Dictionary ${values} GLOBAL_INJECTED_NEXUS_DOCKER_REPO=${GLOBAL_INJECTED_NEXUS_DOCKER_REPO} + Set To Dictionary ${values} GLOBAL_INJECTED_NEXUS_REPO=${GLOBAL_INJECTED_NEXUS_REPO} + Set To Dictionary ${values} GLOBAL_INJECTED_OPENSTACK_TENANT_ID=${GLOBAL_INJECTED_OPENSTACK_TENANT_ID} + Set To Dictionary ${values} GLOBAL_INJECTED_REGION=${GLOBAL_INJECTED_REGION} + Set To Dictionary ${values} GLOBAL_INJECTED_KEYSTONE=${GLOBAL_INJECTED_KEYSTONE} + Set To Dictionary ${values} GLOBAL_INJECTED_VM_FLAVOR=${GLOBAL_INJECTED_VM_FLAVOR} + Set To Dictionary ${values} GLOBAL_INJECTED_VM_IMAGE_NAME=${GLOBAL_INJECTED_VM_IMAGE_NAME} + Set To Dictionary ${values} GLOBAL_INJECTED_PUBLIC_NET_ID=${GLOBAL_INJECTED_PUBLIC_NET_ID} + Set To Dictionary ${values} prefix=${HOSTS_PREFIX} Create File From Template ${URLS_HTML_TEMPLATE} ${URLS_HTML} ${values} *** Keywords *** @@ -70,12 +84,22 @@ Get Public Ip ${servers} Get Dictionary Values ${server_map} :for ${server} in @{servers} \ ${status} ${public_ip} Run Keyword And Ignore Error Search Addresses ${server} ${oam_ip} - \ Return From Keyword If '${status}' == 'PASS' ${public_ip} + \ Return From Keyword If '${status}'=='PASS' ${public_ip} Fail ${oam_ip} Server Not Found Search Addresses [Arguments] ${server} ${oam_ip} ${addresses} Get From Dictionary ${server} addresses + ${status} ${public_ip}= Run Keyword And Ignore Error Find Rackspace ${addresses} ${oam_ip} + Return From Keyword If '${status}'=='PASS' ${public_ip} + ${status} ${public_ip}= Run Keyword And Ignore Error Find Openstack ${addresses} ${oam_ip} + Return From Keyword If '${status}'=='PASS' ${public_ip} + ${status} ${public_ip}= Run Keyword And Ignore Error Find Openstack 2 ${addresses} ${oam_ip} + Return From Keyword If '${status}'=='PASS' ${public_ip} + Fail ${oam_ip} Server Not Found + +Find Rackspace + [Arguments] ${addresses} ${oam_ip} ${public_ips} Get From Dictionary ${addresses} public ${public_ip}= Get V4 IP ${public_ips} ${oam_ips} Get From Dictionary ${addresses} ${GLOBAL_INJECTED_NETWORK} @@ -83,10 +107,43 @@ Search Addresses Return From Keyword If '${this_oam_ip}' == '${oam_ip}' ${public_ip} Fail ${oam_ip} Server Not Found +Find Openstack + [Arguments] ${addresses} ${oam_ip} + ${public_ip}= Get V4 IP Openstack ${addresses} external + ${this_oam_ip}= Get V4 IP Openstack ${addresses} ${GLOBAL_INJECTED_NETWORK} + Return From Keyword If '${this_oam_ip}'=='${oam_ip}' ${public_ip} + Fail ${oam_ip} Server Not Found + +Find Openstack 2 + [Arguments] ${addresses} ${oam_ip} + ${ipmaps}= Get From DIctionary ${addresses} ${GLOBAL_INJECTED_NETWORK} + ${public_ip}= Get V4 IP Openstack 2 ${ipmaps} floating + ${this_oam_ip}= Get V4 IP Openstack 2 ${ipmaps} fixed + Return From Keyword If '${this_oam_ip}'=='${oam_ip}' ${public_ip} + Fail ${oam_ip} Server Not Found + Get V4 IP [Arguments] ${ipmaps} :for ${ipmap} in @{ipmaps} \ ${ip} Get From Dictionary ${ipmap} addr \ ${version} Get From Dictionary ${ipmap} version \ Return from Keyword if '${version}' == '4' ${ip} + Fail No Version 4 IP + +Get V4 IP Openstack + [Arguments] ${addresses} ${testtype} + ${ipmaps}= Get From Dictionary ${addresses} ${testtype} + :for ${ipmap} in @{ipmaps} + \ ${ip} Get From Dictionary ${ipmap} addr + \ ${version} Get From Dictionary ${ipmap} version + \ Return from Keyword if '${version}'=='4' ${ip} + Fail No Version 4 IP + +Get V4 IP Openstack 2 + [Arguments] ${ipmaps} ${testtype} + :for ${ipmap} in @{ipmaps} + \ ${type} Get From Dictionary ${ipmap} OS-EXT-IPS:type + \ ${ip} Get From Dictionary ${ipmap} addr + \ ${version} Get From Dictionary ${ipmap} version + \ Return from Keyword if '${version}'=='4' and '${type}'=='${testtype}' ${ip} Fail No Version 4 IP
\ No newline at end of file diff --git a/robot/testsuites/vnf-orchestration.robot b/robot/testsuites/vnf-orchestration.robot index d7ae16fa..2c340a39 100644 --- a/robot/testsuites/vnf-orchestration.robot +++ b/robot/testsuites/vnf-orchestration.robot @@ -9,12 +9,13 @@ Test Template Orchestrate VNF Template Test Teardown Teardown VNF *** Test Cases *** CUSTOMER SERVICE PRODUCT_FAMILY TENANT -Instantiate Virtual Firewall ETE_Customer vFW vFW ${TENANT_NAME} - [Tags] ete instantiate Instantiate Virtual DNS ETE_Customer vLB vLB ${TENANT_NAME} [Tags] ete instantiate Instantiate Virtual Volume Group ETE_Customer vVG vVG ${TENANT_NAME} [Tags] ete instantiate +Instantiate Virtual FirewallCL ETE_Customer vFWCL vFWCL ${TENANT_NAME} + [Tags] ete instantiate +Instantiate Virtual Firewall ETE_Customer vFW vFW ${TENANT_NAME} |