Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -o xtrace |
| 4 | |
| 5 | # install_testsuite_properties() - Download and install testsuite properties |
| 6 | function install_testsuite_properties { |
| 7 | mkdir -p /opt/eteshare/config |
| 8 | |
Victor Morales | dd07480 | 2017-07-26 16:06:35 -0500 | [diff] [blame] | 9 | local src_folder=/opt/testsuite/properties |
Victor Morales | 89ce321 | 2017-06-16 18:32:48 -0500 | [diff] [blame] | 10 | 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 |
| 21 | function 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 |
| 28 | function init_robot { |
| 29 | install_testsuite_properties |
| 30 | run_testsuite_image |
| 31 | } |