git clone https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages.git ${PACKAGES_FOLDER}
```
-Configure a file `envfile.rc` copying from `envconfig-local.rc` and set the required variables
+## Configure the environment
-```bash
-# VIM Setup
-OS_USERNAME=<openstack_username>
-OS_PASSWORD=<openstack_password>
-OS_TENANT_NAME=<openstack_tenant_name>
-OS_AUTH_URL=<openstack_authorization_url>
-OS_TENANT_ID=<openstack_tenant_id>
-
-# OSM Setup
-OSM_HOSTNAME=<osm_ip_address>
-VIM_TARGET=<osm_vim_name>
-VIM_MGMT_NET=<osm_vim_mgmt_name>
-
-# Clouds file datacenter
-OS_CLOUD=<datacenter_in_clouds_file>
-# SDNCs file
-OS_SDNC=<SDN_controller_in_sdncs_file>
-
-# K8S config file
-K8S_CREDENTIALS=<path_to_kubeconfig>
-
-# The following set of environment variables will be used in host
-# of the robot framework. Not needed for docker execution
-
-# Folder where Robot tests are stored
-ROBOT_DEVOPS_FOLDER=robot-systest
-
-# Folder to save alternative DUT environments (optional)
-ENVIRONMENTS_FOLDER=environments
-
-# Folder where all required packages are stored
-PACKAGES_FOLDER=osm-packages
-
-# Folder where test results should be exported
-ROBOT_REPORT_FOLDER=results
-```
+Create a file `envfile.rc` copying from `envconfig-local.rc` and set the required variables.
## Running the tests
### From the host machine
-If you have installed all the dependecnies, the way of executing the tests is via the following command:
+If you have installed all the dependencies, the way of executing the tests is via the following command:
```bash
source envfile.rc
# See the License for the specific language governing permissions and
# limitations under the License.
-# Openstack Setup
-OS_USERNAME=
-OS_PASSWORD=
-OS_TENANT_NAME=
-OS_AUTH_URL=
-OS_TENANT_ID=
-OS_IDENTITY_API_VERSION=
+# OSM target for the tests
+export OSM_HOSTNAME=
-# OSM Setup
-OSM_HOSTNAME=
-VIM_TARGET=
-VIM_MGMT_NET=
+# VIM to be used for the tests
+export VIM_TARGET=
+export VIM_MGMT_NET=
-# Robot setup
-ENVIRONMENTS_FOLDER=environments
-PACKAGES_FOLDER=/robot-systest/osm-packages
+# Variables required for tests running locally on the host (not necessary in Docker since they are already defined)
+export PACKAGES_FOLDER= # path to the location of the OSM packages
+export K8S_CREDENTIALS= # path to the kubeconfig file
-# Clouds file datacenter
-OS_CLOUD=openstack
-# SDNCs file
-OS_SDNC=onos
+# Variables required for tests interacting with Openstack
+export OS_CLOUD= # OpenStack Cloud defined in $HOME/.config/openstack/clouds.yaml or in /etc/openstack/clouds.yaml
+
+# Openstack variables required when using Docker to run tests (they are used to register the VIM)
+export OS_USERNAME=
+export OS_PASSWORD=
+export OS_TENANT_NAME=
+export OS_AUTH_URL=
+export OS_TENANT_ID=
+export OS_IDENTITY_API_VERSION=
+
+# SDN controller variables required for running tests with SDN controllers
+export SDNC_USER=
+export SDNC_PASSWORD=
+export SDNC_TYPE=
+export SDNC_URL=
-LC_ALL=C.UTF-8
-LANG=C.UTF-8
+++ /dev/null
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-echo "Please set your environment variables."
-# export OSM_HOSTNAME=<OSM_HOSTNAME>
-# export OS_CLOUD=<OS_CLOUD>
-# export OS_SDNC=<OS_SDNC>
-# export VIM_TARGET=<VIM_TARGET>
-# export VIM_MGMT_NET=<VIM_MGMT_NET>
-# export PACKAGES_FOLDER=<PACKAGES_FOLDER=>
-# export ROBOT_DEVOPS_FOLDER=<ROBOT_DEVOPS_FOLDER>
-# export ROBOT_REPORT_FOLDER=<ROBOT_REPORT_FOLDER>
-# K8s_01 variables - Installation of a K8s cluster from a NS
-# export IP_VM1=<JUJU_MACHINE1_IP>
-# export IP_VM2=<JUJU_MACHINE2_IP>
-# export IP_VM3=<JUJU_MACHINE3_IP>
-# export IP_VM4=<JUJU_MACHINE4_IP>
-# export IP_JUJU=<JUJU_CONTROLLER_IP>
-# export JUJU_PASSWORD=<OSM_JUJU_PASSWORD> # Could be found in ~/.local/share/juju/accounts.yaml file