diff options
author | Victor Morales <victor.morales@intel.com> | 2017-11-20 16:38:28 -0800 |
---|---|---|
committer | Victor Morales <victor.morales@intel.com> | 2017-11-20 16:38:28 -0800 |
commit | f1f1ba5dac1b531c346758072c798ceb511100b3 (patch) | |
tree | a571f9e83be31abd3c63595c04a46dcd7e901a7d /bootstrap/vagrant-onap/tests/test_robot | |
parent | 25bfc6b99f73bd02047dcc13e64390140777402a (diff) |
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
Diffstat (limited to 'bootstrap/vagrant-onap/tests/test_robot')
-rwxr-xr-x[-rw-r--r--] | bootstrap/vagrant-onap/tests/test_robot | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bootstrap/vagrant-onap/tests/test_robot b/bootstrap/vagrant-onap/tests/test_robot index 702401e2a..87ee100c1 100644..100755 --- a/bootstrap/vagrant-onap/tests/test_robot +++ b/bootstrap/vagrant-onap/tests/test_robot @@ -9,20 +9,20 @@ covered_functions=( # 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 @@ function test_get_mr_images { # 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 |