Centralize src_folder and repos info
The configuration values that determines where the source code will
be cloned and the list of repos associated to specific project have
been included in a new global configuration file, which pretends to
facilitate their changes.
Change-Id: I700bfe02e6b2f8bf8eef763e44b5e037357ec892
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: INT-367
diff --git a/bootstrap/vagrant-onap/tests/test_msb b/bootstrap/vagrant-onap/tests/test_msb
index e8bb246..0848d33 100755
--- a/bootstrap/vagrant-onap/tests/test_msb
+++ b/bootstrap/vagrant-onap/tests/test_msb
@@ -11,10 +11,10 @@
function test_clone_all_msb_repos {
clone_repos "msb"
- asserts_file_exist $msb_src_folder/apigateway/pom.xml
- asserts_file_exist $msb_src_folder/discovery/pom.xml
- asserts_file_exist $msb_src_folder/java-sdk/pom.xml
- asserts_file_exist $msb_src_folder/swagger-sdk/pom.xml
+ asserts_file_exist ${src_folders[msb]}/apigateway/pom.xml
+ asserts_file_exist ${src_folders[msb]}/discovery/pom.xml
+ asserts_file_exist ${src_folders[msb]}/java-sdk/pom.xml
+ asserts_file_exist ${src_folders[msb]}/swagger-sdk/pom.xml
}
# test_compile_all_msb_repos() - Verify the correct compilation of MSB project
@@ -22,12 +22,12 @@
clone_repos "msb"
compile_repos "msb"
- asserts_file_exist $msb_src_folder/apigateway/apiroute/apiroute-service/target/original-apiroute-service-1.1.0-SNAPSHOT.jar
- asserts_file_exist $msb_src_folder/apigateway/apiroute/apiroute-standalone/target/apiroute-1.1.0-SNAPSHOT.zip
- asserts_file_exist $msb_src_folder/discovery/discovery-ui/target/discovery-ui-1.1.0-SNAPSHOT.jar
- asserts_file_exist $msb_src_folder/discovery/sdclient/discovery-service/target/original-discovery-service-1.1.0-SNAPSHOT.jar
- asserts_file_exist $msb_src_folder/java-sdk/target/msb-java-sdk-1.1.0-SNAPSHOT.jar
- asserts_file_exist $msb_src_folder/swagger-sdk/target/swagger-sdk-1.1.0-SNAPSHOT.jar
+ asserts_file_exist ${src_folders[msb]}/apigateway/apiroute/apiroute-service/target/original-apiroute-service-1.1.0-SNAPSHOT.jar
+ asserts_file_exist ${src_folders[msb]}/apigateway/apiroute/apiroute-standalone/target/apiroute-1.1.0-SNAPSHOT.zip
+ asserts_file_exist ${src_folders[msb]}/discovery/discovery-ui/target/discovery-ui-1.1.0-SNAPSHOT.jar
+ asserts_file_exist ${src_folders[msb]}/discovery/sdclient/discovery-service/target/original-discovery-service-1.1.0-SNAPSHOT.jar
+ asserts_file_exist ${src_folders[msb]}/java-sdk/target/msb-java-sdk-1.1.0-SNAPSHOT.jar
+ asserts_file_exist ${src_folders[msb]}/swagger-sdk/target/swagger-sdk-1.1.0-SNAPSHOT.jar
}
# test_get_msb_images() - Verify the creation of MSB Docker images