aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/csit/plans/appc/healthcheck/setup.sh2
-rw-r--r--test/csit/scripts/externalapi-nbi/start_nbi_containers.sh3
-rw-r--r--test/csit/scripts/multicloud-ocata/generic_sim/aai/responses.yml9
-rw-r--r--test/csit/tests/clamp/UIs/02__Create_TCA_model.robot2
-rw-r--r--test/csit/tests/clamp/UIs/03__Verify_UI_Models.robot2
-rw-r--r--test/csit/tests/dcaegen2/prh_testcases/__init__.robot0
-rw-r--r--test/csit/tests/dcaegen2/prh_testcases/assets/json_events/pnf_ready.json6
-rw-r--r--test/csit/tests/dcaegen2/prh_testcases/assets/json_events/response.json33
-rw-r--r--test/csit/tests/dcaegen2/prh_testcases/prh.robot19
-rw-r--r--test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py95
-rw-r--r--test/csit/tests/dcaegen2/prh_testcases/resources/PrhVariables.py18
-rw-r--r--test/csit/tests/dcaegen2/prh_testcases/resources/Simulator.py91
-rw-r--r--test/csit/tests/dcaegen2/prh_testcases/resources/prh_keywords.robot61
-rw-r--r--test/ete/labs/gwu/onap-openstack-template.env8
-rw-r--r--test/ete/labs/huawei/onap-openstack-template.env6
-rw-r--r--test/ete/labs/tlab/onap-openstack-template.env9
-rw-r--r--test/ete/labs/windriver/onap-openstack-template.env8
-rwxr-xr-xtest/ete/scripts/deploy-onap.sh16
-rwxr-xr-xtest/ete/scripts/run-healthcheck.sh6
-rwxr-xr-xtest/vcpe/soutils.py31
-rwxr-xr-xtest/vcpe/vcpecommon.py38
-rw-r--r--test/xtesting/robot/Dockerfile26
-rw-r--r--test/xtesting/robot/README.md93
-rw-r--r--test/xtesting/robot/testcases.yaml127
-rw-r--r--test/xtesting/robot/thirdparty-requirements.txt15
25 files changed, 673 insertions, 51 deletions
diff --git a/test/csit/plans/appc/healthcheck/setup.sh b/test/csit/plans/appc/healthcheck/setup.sh
index afc95204a..da441ea54 100755
--- a/test/csit/plans/appc/healthcheck/setup.sh
+++ b/test/csit/plans/appc/healthcheck/setup.sh
@@ -20,7 +20,7 @@
SCRIPTS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source ${WORKSPACE}/test/csit/scripts/appc/script1.sh
-export APPC_DOCKER_IMAGE_VERSION=1.3.0-SNAPSHOT-latest
+export APPC_DOCKER_IMAGE_VERSION=1.4.0-SNAPSHOT-latest
export CCSDK_DOCKER_IMAGE_VERSION=0.2-STAGING-latest
export BRANCH=master
export SOLUTION_NAME=onap
diff --git a/test/csit/scripts/externalapi-nbi/start_nbi_containers.sh b/test/csit/scripts/externalapi-nbi/start_nbi_containers.sh
index 24de74099..61026d7b0 100644
--- a/test/csit/scripts/externalapi-nbi/start_nbi_containers.sh
+++ b/test/csit/scripts/externalapi-nbi/start_nbi_containers.sh
@@ -25,6 +25,9 @@ echo "This is ${WORKSPACE}/test/csit/scripts/externalapi-nbi/start_nbi_container
mkdir -p $WORKSPACE/externalapi-nbi
cd $WORKSPACE/externalapi-nbi
+# Create .env file to access env variables for docker-compose
+echo "NEXUS_DOCKER_REPO=${NEXUS_DOCKER_REPO}" > .env
+
# Fetch the latest docker-compose.yml
wget -O docker-compose.yml 'https://git.onap.org/externalapi/nbi/plain/docker-compose.yml?h=master'
diff --git a/test/csit/scripts/multicloud-ocata/generic_sim/aai/responses.yml b/test/csit/scripts/multicloud-ocata/generic_sim/aai/responses.yml
index b17b095c4..f6d5fcd08 100644
--- a/test/csit/scripts/multicloud-ocata/generic_sim/aai/responses.yml
+++ b/test/csit/scripts/multicloud-ocata/generic_sim/aai/responses.yml
@@ -161,9 +161,14 @@ aai/v13/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/ten
body: ''
content_type: application/json
status_code: 200
-aai/v13/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne?depth=1:
+aai/v13/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne:
+ GET:
+ body: '{"cloud-owner":"CloudOwner","cloud-region-id":"RegionOne","cloud-type":"openstack","owner-defined-type":"t1","cloud-region-version":"RegionOne","identity-url":"http://multicloud-ocata:80/api/multicloud-titanium_cloud/v0/CloudOwner_RegionOne/identity/v2.0","cloud-zone":"z1","complex-name":"clli1","sriov-automation":false,"cloud-extra-info":"","resource-version":"1524845276291"}'
+ content_type: application/json
+ status_code: 200
+aai/v13/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/esr-system-info-list:
GET:
- body: '{"cloud-owner":"CloudOwner","cloud-region-id":"RegionOne","cloud-type":"openstack","owner-defined-type":"t1","cloud-region-version":"RegionOne","identity-url":"http://multicloud-ocata:80/api/multicloud-titanium_cloud/v0/CloudOwner_RegionOne/identity/v2.0","cloud-zone":"z1","complex-name":"clli1","sriov-automation":false,"cloud-extra-info":"","resource-version":"1524845276291","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"4ce895ad-82f7-4476-b5eb-d19d19585da2","service-url":"http://keystone:8080/v3","user-name":"admin","password":"secret","system-type":"VIM","ssl-insecure":true,"cloud-domain":"Default","default-tenant":"admin","resource-version":"1524845155617"}]}}'
+ body: '{"esr-system-info":[{"esr-system-info-id":"4ce895ad-82f7-4476-b5eb-d19d19585da2","service-url":"http://keystone:8080/v3","user-name":"admin","password":"secret","system-type":"VIM","ssl-insecure":true,"cloud-domain":"Default","default-tenant":"admin","resource-version":"1524845155617"}]}'
content_type: application/json
status_code: 200
aai/v13/cloud-infrastructure/pservers/pserver/compute-0:
diff --git a/test/csit/tests/clamp/UIs/02__Create_TCA_model.robot b/test/csit/tests/clamp/UIs/02__Create_TCA_model.robot
index 7349f63bb..af77e8665 100644
--- a/test/csit/tests/clamp/UIs/02__Create_TCA_model.robot
+++ b/test/csit/tests/clamp/UIs/02__Create_TCA_model.robot
@@ -70,7 +70,7 @@ Set TCA Box properties for TCAModel1
Click Element xpath=//*[@data-element-id="TCA_1d13unw"]
Input Text xpath=(//input[@id='tname'])[2] text=TCA1
Select From List By Label xpath=//*[@id="tcaPol"] Policy2
- Select From List By Label xpath=//*[@id="eventName"] vCPEvGMUXPacketLoss
+ Select From List By Label xpath=//*[@id="eventName"] vLoadBalancer
### Cannot set all TCA box attributes due to element not interractable with Selenium
# Select From List By Label xpath=//*[@id="controlLoopSchemaType"] VNF
# Select From List By Index xpath=//*[@id="controlLoopSchemaType"] 1
diff --git a/test/csit/tests/clamp/UIs/03__Verify_UI_Models.robot b/test/csit/tests/clamp/UIs/03__Verify_UI_Models.robot
index a9cb78749..8bbf7c85e 100644
--- a/test/csit/tests/clamp/UIs/03__Verify_UI_Models.robot
+++ b/test/csit/tests/clamp/UIs/03__Verify_UI_Models.robot
@@ -21,7 +21,7 @@ Verify HolmesModel1
Should Contain Match ${resp} *migrate*
Should Contain Match ${resp} *240*
Should Contain Match ${resp} *390*
- Should Contain Match ${resp} *correlational Logic1*
+ Should Contain Match ${resp} *Logic1*
Should Contain Match ${resp} *config Policy Name1*
Verify TCAModel1
diff --git a/test/csit/tests/dcaegen2/prh_testcases/__init__.robot b/test/csit/tests/dcaegen2/prh_testcases/__init__.robot
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/test/csit/tests/dcaegen2/prh_testcases/__init__.robot
diff --git a/test/csit/tests/dcaegen2/prh_testcases/assets/json_events/pnf_ready.json b/test/csit/tests/dcaegen2/prh_testcases/assets/json_events/pnf_ready.json
new file mode 100644
index 000000000..d340709c9
--- /dev/null
+++ b/test/csit/tests/dcaegen2/prh_testcases/assets/json_events/pnf_ready.json
@@ -0,0 +1,6 @@
+{"event":
+ {"correlationID":"NOKQTFCOC540002E",
+ "pnfOamIpv4Address":"10.16.123.234",
+ "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"
+ }
+}
diff --git a/test/csit/tests/dcaegen2/prh_testcases/assets/json_events/response.json b/test/csit/tests/dcaegen2/prh_testcases/assets/json_events/response.json
new file mode 100644
index 000000000..39c76df95
--- /dev/null
+++ b/test/csit/tests/dcaegen2/prh_testcases/assets/json_events/response.json
@@ -0,0 +1,33 @@
+{"event":
+ {"commonEventHeader":
+ {"sourceId":"QTFCOC540002E",
+ "startEpochMicrosec":1519837825682,
+ "eventId":"QTFCOC540002E-reg",
+ "nfcNamingCode":"5DU",
+ "internalHeaderFields":{"collectorTimeStamp":"Fri, 04 27 2018 09:01:10 GMT"},
+ "eventType":"pnfRegistration",
+ "priority":"Normal",
+ "version":3,
+ "reportingEntityName":"5GRAN_DU",
+ "sequence":0,
+ "domain":"other",
+ "lastEpochMicrosec":1519837825682,
+ "eventName":"pnfRegistration_5GDU",
+ "sourceName":"5GRAN_DU",
+ "nfNamingCode":"5GRAN"
+ },
+ "otherFields":
+ {"pnfLastServiceDate":1517206400,
+ "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334",
+ "pnfVendorName":"Nokia",
+ "pnfModelNumber":"AJ02",
+ "pnfFamily":"BBU",
+ "pnfType":"AirScale",
+ "otherFieldsVersion":1,
+ "pnfOamIpv4Address":"10.16.123.234",
+ "pnfSoftwareVersion":"v4.5.0.1",
+ "pnfSerialNumber":"QTFCOC540002E",
+ "pnfManufactureDate":1516406400
+ }
+ }
+}
diff --git a/test/csit/tests/dcaegen2/prh_testcases/prh.robot b/test/csit/tests/dcaegen2/prh_testcases/prh.robot
new file mode 100644
index 000000000..7c9b9533f
--- /dev/null
+++ b/test/csit/tests/dcaegen2/prh_testcases/prh.robot
@@ -0,0 +1,19 @@
+*** Settings ***
+Documentation Testing PRH with various use scenarios
+Suite Setup PRH Suite Setup
+Suite Teardown PRH Suite Shutdown
+Library Collections
+Library resources/PrhLibrary.py
+Resource resources/prh_keywords.robot
+
+*** Variables ***
+${DMaaP_URL} http://localhost:3904
+${AAI_URL} http://localhost:3905
+${PNF_READY} %{WORKSPACE}/test/csit/tests/dcaegen2/prh_testcases/assets/json_events/pnf_ready.json
+
+*** Test Cases ***
+New test
+ [Documentation] First positive TC
+ [Tags] PRH
+ #First TC will be added after initial commit
+ Should Be True True
diff --git a/test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py b/test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py
new file mode 100644
index 000000000..893ed9460
--- /dev/null
+++ b/test/csit/tests/dcaegen2/prh_testcases/resources/PrhLibrary.py
@@ -0,0 +1,95 @@
+'''
+Created on Apr 27, 2018
+
+@author: mwagner9
+'''
+
+import threading
+import time
+
+from robot.api import logger
+
+import PrhVariables
+import Simulator
+
+st = '{"event":{"correlationID":"NOKQTFCOC540002E", "pnfOamIpv4Address":"10.16.123.234", "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}}'
+
+class PrhLibrary(object):
+ def __init__(self):
+ pass
+
+ def setup_dmaap_server(self):
+ return _setup(PrhVariables.DMaaPHttpServerThread, 'DMaaP', PrhVariables.DMaaPIsRobotRun, Simulator, 3904)
+
+ def setup_aai_server(self):
+ return _setup(PrhVariables.AAIHttpServerThread, 'AAI', PrhVariables.AAIIsRobotRun, Simulator, 3905)
+
+ def shutdown_dmaap_server(self):
+ return _shutdown(PrhVariables.DMaaPHTTPD, 'DMaaP')
+
+ def shutdown_aai_server(self):
+ return _shutdown(PrhVariables.AAIHTTPD, 'AAI')
+
+ def is_json_empty(self, response):
+ logger.info("Enter is_json_empty: response.text: " + response.text)
+ if response.text is None or len(response.text) < 2:
+ return 'True'
+ return 'False'
+
+ def dmaap_collectorTimeStamp_receive(self, search, response):
+ return _find_element(search, response)
+
+ def AAI_Ipv4_receive(self, search, response):
+ return _find_element(search, response)
+
+ def AAI_Ipv6_receive(self, search, response):
+ return _find_element(search, response)
+
+ def check_pnf_ready(self):
+ if st in Simulator.prh_ready:
+ return 'true'
+ return 'false'
+
+def _setup(serverthread, servername, isrobotrun, module, portNum):
+ if serverthread is not None:
+ logger.console('{} Mockup Sever started'.format(servername))
+ return "true"
+
+ isrobotrun = True
+
+ module_handler = module.AAIHandler if servername is 'AAI' else module.DMaaPHandler
+
+ module.run_server(module_handler, portNum)
+ try:
+ serverthread = threading.Thread(name='{}_HTTPServer'.format(servername), target=module.Httpd.serve_forever)
+ serverthread.start()
+ logger.console('{} Mockup Sever started'.format(servername))
+ time.sleep(2)
+ return "true"
+ except Exception as e:
+ print (str(e))
+ return "false"
+
+def _shutdown(server, name):
+ if server is not None:
+ server.shutdown()
+ logger.console("{} Server shut down".format(name))
+ time.sleep(3)
+ return "true"
+ else:
+ return "false"
+
+def _find_element(search, response):
+ while response is not None:
+ json_data = str(response)
+ if search in json_data:
+ return 'true'
+ return 'false'
+
+if __name__ == '__main__':
+ lib = PrhLibrary()
+ ret = lib.setup_dmaap_server()
+ print ret
+ ret = lib.setup_aai_server()
+ print ret
+ time.sleep(10)
diff --git a/test/csit/tests/dcaegen2/prh_testcases/resources/PrhVariables.py b/test/csit/tests/dcaegen2/prh_testcases/resources/PrhVariables.py
new file mode 100644
index 000000000..882a4b9ce
--- /dev/null
+++ b/test/csit/tests/dcaegen2/prh_testcases/resources/PrhVariables.py
@@ -0,0 +1,18 @@
+'''
+Created on Apr 27, 2018
+
+@author: mwagner9
+'''
+
+import os
+
+def GetEnvironmentVariable(envVarstr):
+ return os.environ.get(envVarstr)
+
+DMaaPHttpServerThread = None
+DMaaPHTTPD = None
+DMaaPIsRobotRun = False
+
+AAIHttpServerThread = None
+AAIHTTPD = None
+AAIIsRobotRun = False
diff --git a/test/csit/tests/dcaegen2/prh_testcases/resources/Simulator.py b/test/csit/tests/dcaegen2/prh_testcases/resources/Simulator.py
new file mode 100644
index 000000000..e746d5a48
--- /dev/null
+++ b/test/csit/tests/dcaegen2/prh_testcases/resources/Simulator.py
@@ -0,0 +1,91 @@
+'''
+Created on May 10, 2018
+
+@author: mwagner9
+'''
+
+import BaseHTTPServer
+import re
+import sys
+
+from robot.api import logger
+
+import PrhVariables
+
+Httpd = None
+prh_ready = ''
+
+class BaseHandler(BaseHTTPServer.BaseHTTPRequestHandler, object):
+ def do_GET(self, param1, param2):
+ """Serve a GET request."""
+ #prepare GET response
+ logger.console(self.raw_requestlinel)
+ json_string = param1
+ if re.search(param2, self.path) is not None:
+ self.send_response(200)
+ self.send_header("Content-type", "application/json")
+ self.end_headers()
+ self.wfile.write(json_string)
+
+class AAIHandler(BaseHandler):
+ def do_PATCH(self):
+ #prepare PATCH response
+ logger.console('========')
+ logger.console(self.raw_requestline)
+ logger.console('========')
+ if re.search('/aai/v12/network/pnfs/pnf/NOKQTFCOC540002E', self.path)is not None:
+ st = '{"ipaddress-v6-oam": "2001:0db8:85a3:0000:0000:8a2e:0370:7334","ipaddress-v4-oam": "11.22.33.156"}'
+ logger.console('========')
+ logger.console(self.raw_requestline)
+ logger.console('========')
+ self.send_response(200)
+
+ def do_GET(self):
+ param1 = '{"pnf-name":"NOKQTFCOC540002E", "pnf-id":"NOKQTFCOC540002E","ipaddress-v4-oam":"10.16.123.234","ipaddress-v6-oam":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}'
+ param2 = '/aai/v12/network/pnfs/pnf/NOKQTFCOC540002E'
+ super(self.__class__, self).do_GET(param1, param2)
+
+class DMaaPHandler(BaseHandler):
+ def do_GET(self):
+ param1 = '{"event": {"commonEventHeader": {"sourceId":"QTFCOC540002E", "startEpochMicrosec":1519837825682, "eventId":"QTFCOC540002E-reg", "nfcNamingCode":"5DU", "internalHeaderFields":{"collectorTimeStamp":"Fri, 04 27 2018 09:01:10 GMT"}, "eventType":"pnfRegistration", "priority":"Normal", "version":3, "reportingEntityName":"5GRAN_DU", "sequence":0, "domain":"other", "lastEpochMicrosec":1519837825682, "eventName":"pnfRegistration_5GDU", "sourceName":"5GRAN_DU", "nfNamingCode":"5GRAN"}, "otherFields": {"pnfLastServiceDate":1517206400, "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334", "pnfVendorName":"Nokia", "pnfModelNumber":"AJ02", "pnfFamily":"BBU", "pnfType":"AirScale", "otherFieldsVersion":1, "pnfOamIpv4Address":"10.16.123.234", "pnfSoftwareVersion":"v4.5.0.1", "pnfSerialNumber":"QTFCOC540002E", "pnfManufactureDate":1516406400}}}'
+ param2 = '/events/unauthenticated.SEC_OTHER_OUTPUT/OpenDCAE-c12/c12'
+ super(self.__class__, self).do_GET(param1, param2)
+
+ def do_POST(self):
+ #Prepare POST response
+ logger.console('========')
+ logger.console(self.raw_requestline)
+ logger.console('========')
+ if re.search('/events/unauthenticated.PNF_READY', self.path) is not None:
+ global prh_ready
+ prh_ready = '{"event":{"correlationID":"NOKQTFCOC540002E", "pnfOamIpv4Address":"10.16.123.234", "pnfOamIpv6Address":"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}}'
+ self.send_response(200)
+
+def run_server(HandlerClass, port, ServerClass = BaseHTTPServer.HTTPServer, protocol="HTTP/1.0"):
+ server_address = ('', port)
+
+ HandlerClass.protocol_version = protocol
+ httpd = ServerClass(server_address, HandlerClass)
+
+ global Httpd
+ Httpd = httpd
+ if HandlerClass is DMaaPHandler:
+ PrhVariables.DMaaPHTTPD = httpd
+ else:
+ PrhVariables.AAIHTTPD = httpd
+
+ sa = httpd.socket.getsockname()
+ print "Serving HTTP on", sa[0], "port", sa[1], "..."
+
+def _main_ (HandlerClass, port, ServerClass = BaseHTTPServer.HTTPServer, protocol="HTTP/1.0"):
+ server_address = ('', port)
+
+ HandlerClass.protocol_version = protocol
+ httpd = ServerClass(server_address, HandlerClass)
+
+ sa = httpd.socket.getsockname()
+ print "Serving HTTP on", sa[0], "port", sa[1], "..."
+ httpd.serve_forever()
+
+if __name__ == '__main__':
+ _main_(DMaaPHandler, 3904)
diff --git a/test/csit/tests/dcaegen2/prh_testcases/resources/prh_keywords.robot b/test/csit/tests/dcaegen2/prh_testcases/resources/prh_keywords.robot
new file mode 100644
index 000000000..1595cd4a4
--- /dev/null
+++ b/test/csit/tests/dcaegen2/prh_testcases/resources/prh_keywords.robot
@@ -0,0 +1,61 @@
+*** Settings ***
+Documentation The main interface for interacting with PRH. It handles low level stuff like managing the http request library
+Library PrhLibrary.py
+Library RequestsLibrary
+
+*** Variables ***
+
+*** Keywords ***
+PRH Suite Setup
+ [Documentation] Start DMaaP and AAI Mockup Server
+ ${ret}= Setup DMaaP Server
+ Should Be Equal As Strings ${ret} true
+ ${ret}= Setup AAI Server
+ Should Be Equal As Strings ${ret} true
+
+PRH Suite Shutdown
+ [Documentation] Shutdown DMaaP and AAI Mockup Server
+ ${ret}= Shutdown DMaap Server
+ Should Be Equal As Strings ${ret} true
+ ${ret}= Shutdown AAI Server
+ Should Be Equal As Strings ${ret} true
+
+Get event from DMaaP
+ [Arguments] ${ip} ${endpoint}
+ [Documentation] Get an event from DMaaP
+ ${url}= Catenate SEPARATOR= ${ip} ${endpoint}
+ Log Creating session ${url}
+ Create Session prh-d1 ${url}
+ ${resp}= Get Request prh-d1 ${url}
+ Log Received response from dcae ${resp.json()}
+ [Return] ${resp}
+
+Send patch from AAI
+ [Arguments] ${ip} ${endpoint}
+ [Documentation] Get patch from AAI
+ ${url}= Catenate SEPARATOR= ${ip} ${endpoint}
+ Log Creating session ${url}
+ Create Session prh-d1 ${url}
+ ${resp}= Patch Request prh-d1 ${url}
+ Log ${resp}
+ [Return] ${resp}
+
+Get json from AAI
+ [Arguments] ${ip} ${endpoint}
+ [Documentation] Get json from AAI
+ ${url}= Catenate SEPARATOR= ${ip} ${endpoint}
+ Log Creating session ${url}
+ Create Session prh-d1 ${url}
+ ${resp}= Get Request prh-d1 ${url}
+ Log Received response from dcae ${resp.json()}
+ [Return] ${resp}
+
+Post json to DMaaP
+ [Arguments] ${ip} ${endpoint} ${PNF_READY}
+ [Documentation] Get json from AAI
+ ${url}= Catenate SEPARATOR= ${ip} ${endpoint}
+ Log Creating session ${url}
+ Create Session prh-d1 ${url}
+ ${resp}= Post Request prh-d1 ${url} data=${PNF_READY}
+ Log ${resp}
+ [Return] ${resp}
diff --git a/test/ete/labs/gwu/onap-openstack-template.env b/test/ete/labs/gwu/onap-openstack-template.env
index 16e147d20..c2ef4034a 100644
--- a/test/ete/labs/gwu/onap-openstack-template.env
+++ b/test/ete/labs/gwu/onap-openstack-template.env
@@ -22,15 +22,13 @@ parameters:
flavor_xlarge: m1.xlarge
- flavor_xxlarge: m1.xlarge # purposely use a smaller VM here to reduce RAM usage
-
vm_base_name: onap
key_name: onap_key
pub_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKXDgoo3+WOqcUG8/5uUbk81+yczgwC4Y8ywTmuQqbNxlY1oQ0YxdMUqUnhitSXs5S/yRuAVOYHwGg2mCs20oAINrP+mxBI544AMIb9itPjCtgqtE2EWo6MmnFGbHB4Sx3XioE7F4VPsh7japsIwzOjbrQe+Mua1TGQ5d4nfEOQaaglXLLPFfuc7WbhbJbK6Q7rHqZfRcOwAMXgDoBqlyqKeiKwnumddo2RyNT8ljYmvB6buz7KnMinzo7qB0uktVT05FH9Rg0CTWH5norlG5qXgP2aukL0gk1ph8iAt7uYLf1ktp+LJI2gaF6L0/qli9EmVCSLr1uJ38Q8CBflhkh
- nexus_repo: https://nexus.onap.org/content/sites/raw
+ nexus_artifact_repo: https://nexus.onap.org
nexus_docker_repo: 192.168.1.51:5000
@@ -40,7 +38,7 @@ parameters:
dmaap_topic: AUTO
- artifacts_version: 1.2.0-SNAPSHOT
+ artifacts_version: 1.2.1-SNAPSHOT
openstack_tenant_id: ${OS_PROJECT_ID}
@@ -54,8 +52,6 @@ parameters:
openstack_region: RegionOne
- horizon_url: http://192.168.1.11/horizon
-
keystone_url: http://192.168.1.11:5000
cloud_env: RegionOne
diff --git a/test/ete/labs/huawei/onap-openstack-template.env b/test/ete/labs/huawei/onap-openstack-template.env
index bffbd2df2..900b08789 100644
--- a/test/ete/labs/huawei/onap-openstack-template.env
+++ b/test/ete/labs/huawei/onap-openstack-template.env
@@ -22,15 +22,13 @@ parameters:
flavor_xlarge: m1.xlarge
- flavor_xxlarge: m1.2xlarge
-
vm_base_name: onap
key_name: onap_key
pub_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKXDgoo3+WOqcUG8/5uUbk81+yczgwC4Y8ywTmuQqbNxlY1oQ0YxdMUqUnhitSXs5S/yRuAVOYHwGg2mCs20oAINrP+mxBI544AMIb9itPjCtgqtE2EWo6MmnFGbHB4Sx3XioE7F4VPsh7japsIwzOjbrQe+Mua1TGQ5d4nfEOQaaglXLLPFfuc7WbhbJbK6Q7rHqZfRcOwAMXgDoBqlyqKeiKwnumddo2RyNT8ljYmvB6buz7KnMinzo7qB0uktVT05FH9Rg0CTWH5norlG5qXgP2aukL0gk1ph8iAt7uYLf1ktp+LJI2gaF6L0/qli9EmVCSLr1uJ38Q8CBflhkh
- nexus_repo: https://nexus.onap.org/content/sites/raw
+ nexus_artifact_repo: https://nexus.onap.org
nexus_docker_repo: 10.145.122.118:5000
@@ -54,8 +52,6 @@ parameters:
openstack_region: RegionOne
- horizon_url: http://10.145.122.117/horizon
-
keystone_url: http://10.145.122.117:5000
cloud_env: RegionOne
diff --git a/test/ete/labs/tlab/onap-openstack-template.env b/test/ete/labs/tlab/onap-openstack-template.env
index 3b702c48e..b92221f43 100644
--- a/test/ete/labs/tlab/onap-openstack-template.env
+++ b/test/ete/labs/tlab/onap-openstack-template.env
@@ -22,15 +22,13 @@ parameters:
flavor_xlarge: m1.xlarge
- flavor_xxlarge: m1.xlarge
-
vm_base_name: onap
key_name: onap_key
pub_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKXDgoo3+WOqcUG8/5uUbk81+yczgwC4Y8ywTmuQqbNxlY1oQ0YxdMUqUnhitSXs5S/yRuAVOYHwGg2mCs20oAINrP+mxBI544AMIb9itPjCtgqtE2EWo6MmnFGbHB4Sx3XioE7F4VPsh7japsIwzOjbrQe+Mua1TGQ5d4nfEOQaaglXLLPFfuc7WbhbJbK6Q7rHqZfRcOwAMXgDoBqlyqKeiKwnumddo2RyNT8ljYmvB6buz7KnMinzo7qB0uktVT05FH9Rg0CTWH5norlG5qXgP2aukL0gk1ph8iAt7uYLf1ktp+LJI2gaF6L0/qli9EmVCSLr1uJ38Q8CBflhkh
- nexus_repo: https://nexus.onap.org/content/sites/raw
+ nexus_artifact_repo: https://nexus.onap.org
nexus_docker_repo: 192.168.31.204:5000
@@ -40,7 +38,7 @@ parameters:
dmaap_topic: AUTO
- artifacts_version: 1.2.0-SNAPSHOT
+ artifacts_version: 1.2.1-SNAPSHOT
openstack_tenant_id: ${OS_PROJECT_ID}
@@ -54,8 +52,6 @@ parameters:
openstack_region: RegionOne
- horizon_url: https://bdc1tlab01.research.att.com/horizon
-
keystone_url: https://bdc1tlab01.research.att.com:5000
cloud_env: openstack
@@ -71,6 +67,7 @@ parameters:
external_dns: 8.8.8.8
dns_forwarder: 204.178.3.230
oam_network_cidr: 10.0.0.0/16
+ use_oam_net_for_robot: true
### Private IP addresses ###
diff --git a/test/ete/labs/windriver/onap-openstack-template.env b/test/ete/labs/windriver/onap-openstack-template.env
index da4b0e7e5..f094f65a9 100644
--- a/test/ete/labs/windriver/onap-openstack-template.env
+++ b/test/ete/labs/windriver/onap-openstack-template.env
@@ -22,15 +22,13 @@ parameters:
flavor_xlarge: m1.xlarge
- flavor_xxlarge: m1.xxlarge
-
vm_base_name: onap
key_name: onap_key
pub_key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKXDgoo3+WOqcUG8/5uUbk81+yczgwC4Y8ywTmuQqbNxlY1oQ0YxdMUqUnhitSXs5S/yRuAVOYHwGg2mCs20oAINrP+mxBI544AMIb9itPjCtgqtE2EWo6MmnFGbHB4Sx3XioE7F4VPsh7japsIwzOjbrQe+Mua1TGQ5d4nfEOQaaglXLLPFfuc7WbhbJbK6Q7rHqZfRcOwAMXgDoBqlyqKeiKwnumddo2RyNT8ljYmvB6buz7KnMinzo7qB0uktVT05FH9Rg0CTWH5norlG5qXgP2aukL0gk1ph8iAt7uYLf1ktp+LJI2gaF6L0/qli9EmVCSLr1uJ38Q8CBflhkh
- nexus_repo: https://nexus.onap.org/content/sites/raw
+ nexus_artifact_repo: https://nexus.onap.org
nexus_docker_repo: 10.12.5.2:5000
@@ -40,7 +38,7 @@ parameters:
dmaap_topic: AUTO
- artifacts_version: 1.2.0-SNAPSHOT
+ artifacts_version: 1.2.1-SNAPSHOT
openstack_tenant_id: ${OS_PROJECT_ID}
@@ -54,8 +52,6 @@ parameters:
openstack_region: RegionOne
- horizon_url: http://10.12.25.2/horizon
-
keystone_url: http://10.12.25.2:5000
cloud_env: openstack
diff --git a/test/ete/scripts/deploy-onap.sh b/test/ete/scripts/deploy-onap.sh
index b580351dd..182e398ca 100755
--- a/test/ete/scripts/deploy-onap.sh
+++ b/test/ete/scripts/deploy-onap.sh
@@ -1,10 +1,11 @@
#!/bin/bash -x
-if [ "$#" -ne 1 ]; then
- echo "Usage: $0 <lab-name>"
+if [ "$#" -lt 1 ]; then
+ echo "Usage: $0 <lab-name> [<demo repo directory>]"
exit 1
fi
+
if [ -z "$WORKSPACE" ]; then
export WORKSPACE=`git rev-parse --show-toplevel`
fi
@@ -19,19 +20,24 @@ fi
source $WORKSPACE/test/ete/scripts/install_openstack_cli.sh
+DEMO_DIR=${ONAP_WORKDIR}/demo
+if [ "$#" -ge 2 ]; then
+ DEMO_DIR=$2
+fi
+
SENTINEL='Docker versions and branches'
mkdir -p ${LAB_DIR}/target
YAML_FILE=${LAB_DIR}/target/onap_openstack.yaml
ENV_FILE=${LAB_DIR}/target/onap_openstack.env
-YAML_SRC=${ONAP_WORKDIR}/demo/heat/ONAP/onap_openstack.yaml
-ENV_SRC=${ONAP_WORKDIR}/demo/heat/ONAP/onap_openstack.env
+YAML_SRC=${DEMO_DIR}/heat/ONAP/onap_openstack.yaml
+ENV_SRC=${DEMO_DIR}/heat/ONAP/onap_openstack.env
# copy heat template to WORKSPACE
cp ${YAML_SRC} ${YAML_FILE}
# generate final env file
-pushd ${ONAP_WORKDIR}/demo
+pushd ${DEMO_DIR}
envsubst < ${LAB_DIR}/onap-openstack-template.env | sed -n "1,/${SENTINEL}/p" > ${ENV_FILE}
echo " # Rest of the file was AUTO-GENERATED from" | tee -a ${ENV_FILE}
echo " #" $(git config --get remote.origin.url) heat/ONAP/onap_openstack.env $(git rev-parse HEAD) | tee -a ${ENV_FILE}
diff --git a/test/ete/scripts/run-healthcheck.sh b/test/ete/scripts/run-healthcheck.sh
index e2ed3986f..e97ac3ff5 100755
--- a/test/ete/scripts/run-healthcheck.sh
+++ b/test/ete/scripts/run-healthcheck.sh
@@ -19,10 +19,12 @@ fi
ssh-keygen -R ${ROBOT_IP}
+set +x
timeout 15m ssh -o StrictHostKeychecking=no -i ${SSH_KEY} root@${ROBOT_IP} "OS_PROJECT_ID=$OS_PROJECT_ID OS_USERNAME=$OS_USERNAME OS_PASSWORD=$OS_PASSWORD bash -s" < ./remote/run-robot.sh
RESULT=$?
+set -x
-LOG_DIR=$(ssh -o StrictHostKeychecking=no -i ${SSH_KEY} root@${ROBOT_IP} "ls -1t /opt/eteshare/logs | head -1")
+LOG_DIR=$(ssh -i ${SSH_KEY} root@${ROBOT_IP} "ls -1t /opt/eteshare/logs | grep health | head -1")
echo "Browse Robot results at http://${ROBOT_IP}:88/logs/${LOG_DIR}/"
-rsync -e "ssh -i ${SSH_KEY}" -avPz root@${ROBOT_IP}:/opt/eteshare/logs/${LOG_DIR}/ $WORKSPACE/archives/
+rsync -e "ssh -i ${SSH_KEY}" -avtz root@${ROBOT_IP}:/opt/eteshare/logs/${LOG_DIR}/ $WORKSPACE/archives/
exit $RESULT
diff --git a/test/vcpe/soutils.py b/test/vcpe/soutils.py
index cc82068a6..623f12cc3 100755
--- a/test/vcpe/soutils.py
+++ b/test/vcpe/soutils.py
@@ -18,6 +18,7 @@ class SoUtils:
:param vcpecommon:
:param api_version: must be 'v4' or 'v5'
"""
+ self.tmp_solution_for_so_bug = False
self.logger = logging.getLogger(__name__)
self.vcpecommon = vcpecommon
if api_version not in self.vcpecommon.so_req_api_url:
@@ -49,7 +50,9 @@ class SoUtils:
self.logger.error('Invalid request type: {0}. Can only be service/vnf/network/vfmodule'.format(req_type))
return None, None
+ self.logger.info(url)
r = requests.post(url, headers=self.vcpecommon.so_headers, auth=self.vcpecommon.so_userpass, json=req_json)
+ self.logger.debug(r)
response = r.json()
self.logger.debug('---------------------------------------------------------------')
@@ -58,6 +61,7 @@ class SoUtils:
self.logger.debug('---------------------------------------------------------------')
req_id = response.get('requestReferences', {}).get('requestId', '')
instance_id = response.get('requestReferences', {}).get('instanceId', '')
+
return req_id, instance_id
def check_progress(self, req_id, eta=0, interval=5):
@@ -119,7 +123,8 @@ class SoUtils:
'modelInfo': vnf_or_network_model,
'cloudConfiguration': {"lcpCloudRegionId": self.vcpecommon.os_region_name,
"tenantId": self.vcpecommon.os_tenant_id},
- 'requestParameters': {"userParams": []}
+ 'requestParameters': {"userParams": []},
+ 'platform': {"platformName": "Platform-Demonstration"}
}
self.add_req_info(req_details, instance_name, self.vcpecommon.product_family_id)
self.add_related_instance(req_details, service_instance_id, service_model)
@@ -149,14 +154,23 @@ class SoUtils:
}
}
self.add_req_info(req_details, instance_name)
+ self.add_project_info(req_details)
+ self.add_owning_entity(req_details)
return {'requestDetails': req_details}
+ def add_project_info(self, req_details):
+ req_details['project'] = {'projectName': self.vcpecommon.project_name}
+
+ def add_owning_entity(self, req_details):
+ req_details['owningEntity'] = {'owningEntityId': self.vcpecommon.owning_entity_id,
+ 'owningEntityName': self.vcpecommon.owning_entity_name}
+
def generate_custom_service_request(self, instance_name, model, brg_mac):
req_details = {
'modelInfo': model,
'subscriberInfo': {'subscriberName': 'Kaneohe',
'globalSubscriberId': self.vcpecommon.global_subscriber_id},
- 'cloudConfiguration': {"lcpCloudRegionId": self.vcpecommon.os_region_name,
+ 'cloudConfiguration': {"lcpCloudRegionId": 'CloudOwner_RegionOne', #self.vcpecommon.os_region_name,
"tenantId": self.vcpecommon.os_tenant_id},
'requestParameters': {
"userParams": [
@@ -164,12 +178,23 @@ class SoUtils:
'name': 'BRG_WAN_MAC_Address',
'value': brg_mac
}
+ ,
+ {
+ "name": "Customer_Location",
+ "value": self.vcpecommon.customer_location_used_by_oof
+ },
+ {
+ "name": "Homing_Solution",
+ "value": self.vcpecommon.homing_solution
+ }
],
"subscriptionServiceType": "vCPE",
'aLaCarte': 'false'
}
}
self.add_req_info(req_details, instance_name, self.vcpecommon.custom_product_family_id)
+ self.add_project_info(req_details)
+ self.add_owning_entity(req_details)
return {'requestDetails': req_details}
def create_custom_service(self, csar_file, brg_mac, name_suffix=None):
@@ -186,7 +211,7 @@ class SoUtils:
parser.svc_model['modelName'], name_suffix])
instance_name = instance_name.lower()
req = self.generate_custom_service_request(instance_name, parser.svc_model, brg_mac)
- self.logger.debug(json.dumps(req, indent=2, sort_keys=True))
+ self.logger.info(json.dumps(req, indent=2, sort_keys=True))
self.logger.info('Creating custom service {0}.'.format(instance_name))
req_id, svc_instance_id = self.submit_create_req(req, 'service')
if not self.check_progress(req_id, 140):
diff --git a/test/vcpe/vcpecommon.py b/test/vcpe/vcpecommon.py
index 5b3e009a3..cac5219ea 100755
--- a/test/vcpe/vcpecommon.py
+++ b/test/vcpe/vcpecommon.py
@@ -21,19 +21,19 @@ class VcpeCommon:
# set the openstack cloud access credentials here
cloud = {
'--os-auth-url': 'http://10.12.25.2:5000',
- '--os-username': 'YOUR ID',
+ '--os-username': 'kxi',
'--os-user-domain-id': 'default',
'--os-project-domain-id': 'default',
- '--os-tenant-id': '087050388b204c73a3e418dd2c1fe30b',
+ '--os-tenant-id': '1e097c6713e74fd7ac8e4295e605ee1e',
'--os-region-name': 'RegionOne',
- '--os-password': 'YOUR PASSWD',
- '--os-project-domain-name': 'Integration-SB-01',
+ '--os-password': 'n3JhGMGuDzD8',
+ '--os-project-domain-name': 'Integration-SB-07',
'--os-identity-api-version': '3'
}
common_preload_config = {
- 'oam_onap_net': 'oam_onap_c4Uw',
- 'oam_onap_subnet': 'oam_onap_c4Uw',
+ 'oam_onap_net': 'oam_onap_lAky',
+ 'oam_onap_subnet': 'oam_onap_lAky',
'public_net': 'external',
'public_net_id': '971040b2-7059-49dc-b220-4fab50cb2ad4'
}
@@ -53,13 +53,17 @@ class VcpeCommon:
'mux_gw': ['10.5.0.10', '10.5.0.1']
}
+ dcae_ves_collector_name = 'dcae-bootstrap'
global_subscriber_id = 'SDN-ETHERNET-INTERNET'
+ project_name = 'Project-Demonstration'
+ owning_entity_id = '520cc603-a3c4-4ec2-9ef4-ca70facd79c0'
+ owning_entity_name = 'OE-Demonstration'
def __init__(self, extra_host_names=None):
self.logger = logging.getLogger(__name__)
self.logger.info('Initializing configuration')
- self.host_names = ['so', 'sdnc', 'robot', 'aai-inst1', 'dcaedoks00']
+ self.host_names = ['so', 'sdnc', 'robot', 'aai-inst1', self.dcae_ves_collector_name]
if extra_host_names:
self.host_names.extend(extra_host_names)
# get IP addresses
@@ -84,6 +88,13 @@ class VcpeCommon:
self.common_preload_config['pub_key'] = self.pub_key
self.sniro_url = 'http://' + self.hosts['robot'] + ':8080/__admin/mappings'
self.sniro_headers = {'Content-Type': 'application/json', 'Accept': 'application/json'}
+ self.homing_solution = 'sniro' # value is either 'sniro' or 'oof'
+# self.homing_solution = 'oof'
+ self.customer_location_used_by_oof = {
+ "customerLatitude": "32.897480",
+ "customerLongitude": "-97.040443",
+ "customerName": "some_company"
+ }
#############################################################################################
# SDNC urls
@@ -91,7 +102,7 @@ class VcpeCommon:
self.sdnc_db_name = 'sdnctl'
self.sdnc_db_user = 'sdnctl'
self.sdnc_db_pass = 'gamma'
- self.sdnc_db_port = '32768'
+ self.sdnc_db_port = '32774'
self.sdnc_headers = {'Content-Type': 'application/json', 'Accept': 'application/json'}
self.sdnc_preload_network_url = 'http://' + self.hosts['sdnc'] + \
':8282/restconf/operations/VNF-API:preload-network-topology-operation'
@@ -103,7 +114,7 @@ class VcpeCommon:
# SO urls, note: do NOT add a '/' at the end of the url
self.so_req_api_url = {'v4': 'http://' + self.hosts['so'] + ':8080/ecomp/mso/infra/serviceInstances/v4',
'v5': 'http://' + self.hosts['so'] + ':8080/ecomp/mso/infra/serviceInstances/v5'}
- self.so_check_progress_api_url = 'http://' + self.hosts['so'] + ':8080/ecomp/mso/infra/orchestrationRequests/v2'
+ self.so_check_progress_api_url = 'http://' + self.hosts['so'] + ':8080/ecomp/mso/infra/orchestrationRequests/v5'
self.so_userpass = 'InfraPortalClient', 'password1$'
self.so_headers = {'Content-Type': 'application/json', 'Accept': 'application/json'}
self.so_db_name = 'mso_catalog'
@@ -257,7 +268,7 @@ class VcpeCommon:
url = 'https://{0}:8443/aai/v11/search/nodes-query?search-node-type={1}&filter={2}:EQUALS:{3}'.format(
self.hosts['aai-inst1'], search_node_type, key, node_uuid)
- headers = {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-FromAppID': 'vCPE-Robot'}
+ headers = {'Content-Type': 'application/json', 'Accept': 'application/json', 'X-FromAppID': 'vCPE-Robot', 'X-TransactionId': 'get_aai_subscr'}
requests.packages.urllib3.disable_warnings()
r = requests.get(url, headers=headers, auth=self.aai_userpass, verify=False)
response = r.json()
@@ -313,7 +324,8 @@ class VcpeCommon:
if len(ip_dict) != len(keywords):
self.logger.error('Cannot find all desired IP addresses for %s.', keywords)
self.logger.error(json.dumps(ip_dict, indent=4, sort_keys=True))
- sys.exit()
+ self.logger.error('Temporarily continue.. remember to check back vcpecommon.py line: 316')
+# sys.exit()
return ip_dict
def del_vgmux_ves_mode(self):
@@ -329,8 +341,8 @@ class VcpeCommon:
def set_vgmux_ves_collector(self ):
url = self.vpp_ves_url.format(self.hosts['mux'])
data = {'config':
- {'server-addr': self.hosts['dcaedoks00'],
- 'server-port': '8080',
+ {'server-addr': self.hosts[self.dcae_ves_collector_name],
+ 'server-port': '8081',
'read-interval': '10',
'is-add':'1'
}
diff --git a/test/xtesting/robot/Dockerfile b/test/xtesting/robot/Dockerfile
new file mode 100644
index 000000000..5d8d26ea2
--- /dev/null
+++ b/test/xtesting/robot/Dockerfile
@@ -0,0 +1,26 @@
+FROM opnfv/xtesting
+
+ARG OPENSTACK_TAG=stable/pike
+ARG OPNFV_TAG=master
+ARG ONAP_TAG=master
+
+ENV PYTHONPATH $PYTHONPATH:/src/testing-utils/eteutils
+
+COPY thirdparty-requirements.txt thirdparty-requirements.txt
+RUN apk --no-cache add --virtual .build-deps --update \
+ python-dev build-base linux-headers libffi-dev \
+ openssl-dev libjpeg-turbo-dev && \
+ git clone --depth 1 https://git.onap.org/testsuite -b $ONAP_TAG /var/opt/OpenECOMP_ETE && \
+ git clone --depth 1 https://git.onap.org/testsuite/properties -b $ONAP_TAG /share/config && \
+ git clone --depth 1 https://git.onap.org/testsuite/python-testing-utils -b $ONAP_TAG /src/testing-utils && \
+ pip install \
+ -chttps://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG \
+ -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=$OPNFV_TAG \
+ -rthirdparty-requirements.txt \
+ -e /src/testing-utils && \
+ rm -r thirdparty-requirements.txt /src/testing-utils/.git /share/config/.git \
+ /var/opt/OpenECOMP_ETE/.git && \
+ apk del .build-deps
+
+COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
+CMD ["run_tests", "-t", "all"]
diff --git a/test/xtesting/robot/README.md b/test/xtesting/robot/README.md
new file mode 100644
index 000000000..428cb3fa9
--- /dev/null
+++ b/test/xtesting/robot/README.md
@@ -0,0 +1,93 @@
+# Xtesting-onap-robot
+Reuse of the Xtesting framework to onboard ONAP robot tests
+It consists in 3 files:
+ * Dockerfile: create your dockerfile. For Beijing, it shall be generated manually. You can use a non official version [4]
+ * testcases.yaml: the list of the testcases based on robotframework tags as defined in ONAp repo [3]
+ * thirdparty-requirements.txt: dependencies needed by the Dockerfile
+
+## Configuration
+
+To launch Xtesting ONAP robot you need 2 files
+ * env
+ * onap.properties: list of ONAP endpoints (can be found on the robot VM). Depending from where you launch the tests,
+please check that the IP addresses are reachable.
+
+As Xtesting supports both Openstack and Kubernetes, the env files shall be set accordingly.
+
+env file
+```
+INSTALLER_TYPE=heat
+DEPLOY_SCENARIO=os-nosdn-nofeature-ha
+EXTERNAL_NETWORK=ext-network
+NODE_NAME=pod4-orange-heat1
+TEST_DB_URL=hhttp://testresults.opnfv.org/onap/api/v1/results
+BUILD_TAG=jenkins-functest-kolla-baremetal-daily-amsterdam-222
+```
+
+All the values of the env file are not mandatory.
+
+### INSTALLER_TYPE
+It indicates how you deploy your ONAP solution. The possible values are heat or oom.
+
+### DEPLOY_SCENARIO
+If you do not precise DEPLOY_SCENARIO, it will be set to os-nosdn-nofeature-nohai by default, which means
+Openstack / No Additional SDN controller / No Additional feature / no HA mode
+This parameter can be useful if you manage several infrastructure and want to filter the results.
+Other possible scenario:
+ * k8-nosdn-nofeature-ha (Kubernetes with no add-ons)
+ * os-odl-nofeature-ha (Openstack with Opendaylight SDN controller)
+
+### EXTERNAL_NETWORK (Openstack only)
+You must precise it if it is not the first network with router:external=True
+
+### KUBERNETES_PROVIDER (Kubernetes only)
+This parameter is set to local by default
+
+### KUBE_MASTER_URL (Kubernetes only)
+You must indicate your Kubernetes Master URL.
+
+### KUBE_MASTER_IP (Kubernetes only)
+You must indicate your Kubernetes Master IP.
+
+### NODE_NAME
+The NODE_NAME is the name of the infrastructure that you declared in the Test DB. If you do not want to report the
+results to the Test Database, you do not need to precise this parameter.
+
+### TEST_DB_URL
+This parameter corresponds to the Test Database FQDN.
+If you do not want to report the results to the Test Database, you do not need to precise this parameter.
+
+You can reference either your own local database or a public Database (You must be sure that your NODE_NAME has been declared on
+this database). If so, and if you precise the flag to report the results, the test results will be automatically pushed.
+
+### BUILD_TAG
+This parameter is used to retrieve the version (amsterdam in the example) for the publication in the test database.
+If you do not publish the results, you can omit it.
+It is based on an historical regex setup for OPNFV CI/CD chains.
+
+All the parameters are detailed in Functest user guide [1].
+
+## onap.properties
+
+This file includes all the ONAP end points. It is built at ONAP installation and can be found on the ONAP Robot VM.
+
+# Launch xtesting-onap-robot
+
+You can run the test with the following command:
+
+sudo docker run --env-file <your env> -v <your onap properties>:/share/config/integration_vm_properties.py colvert22/functest-onap:latest
+
+By default it will execute all the tests corresponding to the command bash -c 'run_tests -t all'
+
+If you want to execute only a subset of the tests you may precise the test cases using -t: bash -c 'run_tests -t robot_dcae'
+
+The possible test cases are indictaed in the testcases.yaml and are based on robotframework tags.
+
+If you want to push the results to the database, you can use the -r option: bash -c 'run_tests -t all -r'
+
+# References
+
+* [1] Functest User Guide: http://docs.opnfv.org/en/latest/submodules/functest/docs/testing/user/userguide/index.html
+* [2] Xtesting page: https://wiki.opnfv.org/display/functest/Xtesting
+* [3] Onap robot repo: https://git.onap.org/testsuite/
+* [4] https://hub.docker.com/r/colvert22/xtesting-onap-robot/
diff --git a/test/xtesting/robot/testcases.yaml b/test/xtesting/robot/testcases.yaml
new file mode 100644
index 000000000..484a7f011
--- /dev/null
+++ b/test/xtesting/robot/testcases.yaml
@@ -0,0 +1,127 @@
+---
+tiers:
+ -
+ name: onap
+ order: 1
+ ci_loop: '(daily)|(weekly)'
+ description: >-
+ Set of basic Functional tests to validate the ONAP installation.
+ testcases:
+ -
+ case_name: robot_healthcheck
+ project_name: functest
+ criteria: 100
+ blocking: true
+ description: >-
+ This test case verifies the basic ONAP API: appc, sdnc,so,
+ vid, ....based on the default robot tests
+ dependencies:
+ installer: ''
+ scenario: ''
+ run:
+ module: 'xtesting.core.robotframework'
+ class: 'RobotFramework'
+ args:
+ suites:
+ - /var/opt/OpenECOMP_ETE/robot/testsuites/health-check.robot
+ include:
+ - core
+ variablefile:
+ - '/share/config/integration_robot_properties.py'
+ - '/share/config/integration_vm_properties.py'
+ - '/share/config/integration_preload_parameters.py'
+
+ -
+ case_name: robot_api
+ project_name: functest
+ criteria: 100
+ blocking: false
+ description: >-
+ This test case verifies DCAE api
+ based on the default robot tests
+ dependencies:
+ installer: ''
+ scenario: ''
+ run:
+ module: 'xtesting.core.robotframework'
+ class: 'RobotFramework'
+ args:
+ suites:
+ - /var/opt/OpenECOMP_ETE/robot/testsuites/health-check.robot
+ include:
+ - api
+ variablefile:
+ - '/share/config/integration_robot_properties.py'
+ - '/share/config/integration_vm_properties.py'
+ - '/share/config/integration_preload_parameters.py'
+
+ -
+ case_name: robot_dcae
+ project_name: functest
+ criteria: 100
+ blocking: false
+ description: >-
+ This test case verifies DCAE api
+ based on the default robot tests
+ dependencies:
+ installer: ''
+ scenario: ''
+ run:
+ module: 'xtesting.core.robotframework'
+ class: 'RobotFramework'
+ args:
+ suites:
+ - /var/opt/OpenECOMP_ETE/robot/testsuites/health-check.robot
+ include:
+ - dcae
+ variablefile:
+ - '/share/config/integration_robot_properties.py'
+ - '/share/config/integration_vm_properties.py'
+ - '/share/config/integration_preload_parameters.py'
+ -
+ case_name: robot_multicloud
+ project_name: functest
+ criteria: 100
+ blocking: false
+ description: >-
+ This test case verifies the multicloud features of ONAP
+ based on the default robot tests
+ dependencies:
+ installer: ''
+ scenario: ''
+ run:
+ module: 'xtesting.core.robotframework'
+ class: 'RobotFramework'
+ args:
+ suites:
+ - /var/opt/OpenECOMP_ETE/robot/testsuites/health-check.robot
+ include:
+ - multicloud
+ variablefile:
+ - '/share/config/integration_robot_properties.py'
+ - '/share/config/integration_vm_properties.py'
+ - '/share/config/integration_preload_parameters.py'
+ -
+ case_name: robot_3rdparty
+ project_name: functest
+ criteria: 100
+ blocking: false
+ description: >-
+ This test case verifies the ONAP 3rd party API
+ especially the different drivers
+ based on the default robot tests
+ dependencies:
+ installer: ''
+ scenario: ''
+ run:
+ module: 'xtesting.core.robotframework'
+ class: 'RobotFramework'
+ args:
+ suites:
+ - /var/opt/OpenECOMP_ETE/robot/testsuites/health-check.robot
+ include:
+ - 3rdparty
+ variablefile:
+ - '/share/config/integration_robot_properties.py'
+ - '/share/config/integration_vm_properties.py'
+ - '/share/config/integration_preload_parameters.py'
diff --git a/test/xtesting/robot/thirdparty-requirements.txt b/test/xtesting/robot/thirdparty-requirements.txt
new file mode 100644
index 000000000..f85db2d41
--- /dev/null
+++ b/test/xtesting/robot/thirdparty-requirements.txt
@@ -0,0 +1,15 @@
+selenium<=3.0.0
+requests==2.11.1
+robotframework-selenium2library==1.8.0
+robotframework-databaselibrary==0.8.1
+robotframework-extendedselenium2library==0.9.1
+robotframework-requests==0.4.5
+robotframework-sshlibrary==2.1.2
+robotframework-sudslibrary==0.8
+robotframework-ftplibrary==1.3
+robotframework-rammbock==0.4.0.1
+deepdiff==2.5.1
+dnspython==1.15.0
+robotframework-httplibrary==0.4.2
+robotframework-archivelibrary==0.3.2
+PyYAML==3.12