blob: 4102680ef351f447ce2276f0efcc3418b0796667 [file] [log] [blame]
Victor Morales89ce3212017-06-16 18:32:48 -05001#!/bin/bash
2
3set -o xtrace
4
5# install_testsuite_properties() - Download and install testsuite properties
6function install_testsuite_properties {
7 mkdir -p /opt/eteshare/config
8
Victor Moralesdd074802017-07-26 16:06:35 -05009 local src_folder=/opt/testsuite/properties
Victor Morales89ce3212017-06-16 18:32:48 -050010 clone_repo testsuite/properties $src_folder
11 cp $src_folder/integration_* /opt/eteshare/config
12 cp $src_folder/vm_config2robot.sh /opt/eteshare/config
13 cp $src_folder/ete.sh /opt
14 cp $src_folderdemo.sh /opt
15
16 chmod +x /opt/ete.sh
17 chmod +x /opt/demo.sh
18}
19
20# run_testsuite_image() - Pull and run testsuite docker image
21function run_testsuite_image {
22 pull_openecomp_image testsuite
23 docker rm -f openecompete_container
24 docker run -d --name openecompete_container -v /opt/eteshare:/share -p 88:88 $nexus_docker_repo/openecomp/testsuite:$docker_version
25}
26
27# init_robot() - Function that initialize Robot services
28function init_robot {
29 install_testsuite_properties
30 run_testsuite_image
31}