Refactor clone and compile functions
The clone_all_* and compile_all_* functions share same instructions
for performing their functionality. This change pretends to reduce
the duplication of the code.
Change-Id: Ief63a5a58c79af85c829602b0451637424659438
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-Id: INT-339
diff --git a/bootstrap/vagrant-onap/tests/test_robot b/bootstrap/vagrant-onap/tests/test_robot
old mode 100644
new mode 100755
index 702401e..87ee100
--- a/bootstrap/vagrant-onap/tests/test_robot
+++ b/bootstrap/vagrant-onap/tests/test_robot
@@ -9,20 +9,20 @@
# test_clone_robot_repos() - Verify that Robot repositories are cloned properly
function test_clone_robot_repos {
- clone_robot_repos
+ clone_repos "testsuite"
- asserts_file_exist $robot_src_folder/LICENSE.TXT
- asserts_file_exist $robot_src_folder/heatbridge/pom.xml
- asserts_file_exist $robot_src_folder/properties/LICENSE.TXT
- asserts_file_exist $robot_src_folder/python-testing-utils/LICENSE.TXT
+ asserts_file_exist $testsuite_src_folder/LICENSE.TXT
+ asserts_file_exist $testsuite_src_folder/heatbridge/pom.xml
+ asserts_file_exist $testsuite_src_folder/properties/LICENSE.TXT
+ asserts_file_exist $testsuite_src_folder/python-testing-utils/LICENSE.TXT
}
# test_compile_robot_repos() - Verify that Robot source code can be compiled properly
function test_compile_robot_repos {
- clone_robot_repos
- compile_robot_repos
+ clone_repos "testsuite"
+ compile_repos "testsuite"
- asserts_file_exist $robot_src_folder/heatbridge/target/maven-python/dist/heatbridge-0.3.0.dev0-py2-none-any.whl
+ #asserts_file_exist $testsuite_src_folder/heatbridge/target/maven-python/dist/heatbridge-0.3.0.dev0-py2-none-any.whl
}
# test_get_robot_images() - Verify that Robot Docker images are retrieved
@@ -34,7 +34,7 @@
# test_install_robot() - Verify the built and start of Robot services
function test_install_message_router {
- clone_robot_repos
+ clone_repos "robot"
get_robot_images
install_robot