Table of Contents |
---|
Introduction
Robot provides 2 command line intefaces which may be accessed
- SSH into the Robot VM
- cd /opt
demo.sh
/opt/demo.sh provides several Robot functions that streamline some of the procedures for deploying a VNF for demonstration purposes. The original functions are referenced in the sections on Installing and Running the ONAP Demos and, over time, some additional functions have been added.
root@vm03-robot:/opt# ./demo.sh demo.sh init demo.sh init_customer demo.sh distribute [<prefix>] demo.sh preload <vnf_name> <module_name> demo.sh appc <module_name> demo.sh init_robot demo.sh instantiateVFW demo.sh deleteVNF <module_name from instantiateVFW> |
---|
ete.sh
/opt/ete/sh runs selected Robot testsuite test cases
root@vm03-robot:/opt# ./ete.sh |
---|
Results of the tests may be viewed via a web browser. See below for details. Note that the log folder for each ete.sh execution is named ETE_<pid>.
Initializing the Robot Quicklinks Web Page
The robot container on the Robot VM is initialized with a password protected Web page that should be initialized after all of the ONAP VMs have been started. This page presents some useful information and links for the ONAP instance under test. Use the demo.sh script to initialize the web page and provide a password for the 'test' user required to access the page.
...
./demo.sh init_robot will prompt to enter the password for the user 'test', traditionally 'test' is used as the password as well.
oot@vm03-robot:/opt# ./demo.sh init_robot Starting Xvfb on display :89 with res 1280x1024x24 |
---|
Accessing the Robot Quicklinks Web Page
Access the robot page with http://<robot_vm_ip>:88. You will be prompted for credentials. Enter user 'test' with the password provided above.
Accessing the Robot Logs
The Robot Logs are best viewed via the browser at http://<robot_vm_init:88/logs/ or via the link in Quicklinks page above.
Accessing Robot Logs on The Robot VM
Robot logs are located in /opt/eteshare/logs on the Robot VM.
Running Robot TestSuites
/opt/ete/sh provides a command line interface for executing the Robot ETE testsuites.
Usage: ete.sh [ health | ete | closedloop | instantiate | distribute ]
Test | Purpose | Description |
---|---|---|
health | Report the health status of ONAP Components | Executed health check Rest API calls provided by each component and reports overall health status of the component. |
ete | Runs full suite of ETE tests | Executes the closedloop, instantiate and distribute test suites |
closedloop | Runs full suite of closed loop tests | For the following VNFs, executes customer creation, model distribution, instantation and closed loop test for
|
instantiate | Runs full suite of instantiate tests | For the following VNFs, executes customer creation, model distribution, instantation for
|
distribute | Runs the full suite of model distribuition tests | For the following VNFs, executes model distribution
|
Important Note:Each test case creates new data and tears down all created data at the end of a successful test case. Tear downs are not done for failed test cases to enable debugging.
Running demo.sh Functions
/opt/demo.sh provides several command line functions that aid in manually spinning up and testing VNFs.
Usage: demo.sh <command> [<parameters>]
Command | Parameters | Description |
---|---|---|
init | Funnction to create Demonstration customer, services and distribute the models (demoVFW, demoVLB...) if they don't already exist. Referenced in Tutorial: Creating a Service Instance from a Design Model | |
prelaod | <vnf_name> <module_name> | See Tutorial: Creating a Service Instance from a Design Model |
appc | <module name> | See Tutorial: Creating a Service Instance from a Design Model |
init_robot | Initializes Quicklinks web page, sets web page credentials to enable accessing the robot logs | |
distribute | <prefix> (optional) | distribute the models (<prefix>VFW, <prefix>VLB...) |
instantiateVFW | Instantiate vFW module for the a demo customer (DemoCust<uuid>) | |
deleteVNF | <module_name from instantiateVFW> | Delete the module created by instantiateVFW |