aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tests/test_sdnc
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-12-08 11:57:42 -0800
committerVictor Morales <victor.morales@intel.com>2017-12-08 11:57:42 -0800
commit5464664702bc07c180ed82eb1a5d9bcc9e5d18ec (patch)
treec45bae722f80a3481965fec72385ad137c36ea6b /bootstrap/vagrant-onap/tests/test_sdnc
parent5d21f64981e69f6a266da1ec30754de5d8d71e26 (diff)
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
Diffstat (limited to 'bootstrap/vagrant-onap/tests/test_sdnc')
-rwxr-xr-xbootstrap/vagrant-onap/tests/test_sdnc30
1 files changed, 15 insertions, 15 deletions
diff --git a/bootstrap/vagrant-onap/tests/test_sdnc b/bootstrap/vagrant-onap/tests/test_sdnc
index 1a24a72b0..c4ddc56cd 100755
--- a/bootstrap/vagrant-onap/tests/test_sdnc
+++ b/bootstrap/vagrant-onap/tests/test_sdnc
@@ -11,14 +11,14 @@ covered_functions=(
function test_clone_all_sdnc_repos {
clone_repos "sdnc"
- asserts_file_exist $sdnc_src_folder/adaptors/pom.xml
- #asserts_file_exist $sdnc_src_folder/architecture/docs/index.rst
- asserts_file_exist $sdnc_src_folder/core/pom.xml
- #asserts_file_exist $sdnc_src_folder/features/docs/index.rst
- asserts_file_exist $sdnc_src_folder/northbound/pom.xml
- asserts_file_exist $sdnc_src_folder/oam/pom.xml
- #asserts_file_exist $sdnc_src_folder/parent/docs/index.rst
- asserts_file_exist $sdnc_src_folder/plugins/pom.xml
+ asserts_file_exist ${src_folders[sdnc]}/adaptors/pom.xml
+ #asserts_file_exist ${src_folders[sdnc]}/architecture/docs/index.rst
+ asserts_file_exist ${src_folders[sdnc]}/core/pom.xml
+ #asserts_file_exist ${src_folders[sdnc]}/features/docs/index.rst
+ asserts_file_exist ${src_folders[sdnc]}/northbound/pom.xml
+ asserts_file_exist ${src_folders[sdnc]}/oam/pom.xml
+ #asserts_file_exist ${src_folders[sdnc]}/parent/docs/index.rst
+ asserts_file_exist ${src_folders[sdnc]}/plugins/pom.xml
}
# test_compile_all_sdnc_repos() - Verify the correct compilation of SDNC projects
@@ -28,15 +28,15 @@ function test_compile_all_sdnc_repos {
for component in generic-resource-api vnfapi vnftools; do
if [[ "$component" == "vnfapi" ]]; then
- asserts_file_exist $sdnc_src_folder/northbound/vnfapi/model/target/vnfapi-model-1.2.0-SNAPSHOT.jar
+ asserts_file_exist ${src_folders[sdnc]}/northbound/vnfapi/model/target/vnfapi-model-1.2.0-SNAPSHOT.jar
fi
- asserts_file_exist $sdnc_src_folder/northbound/$component/installer/target/sdnc-$component-1.2.0-SNAPSHOT-installer.zip
- asserts_file_exist $sdnc_src_folder/northbound/$component/features/target/$component-features-1.2.0-SNAPSHOT.jar
- asserts_file_exist $sdnc_src_folder/northbound/$component/provider/target/$component-provider-1.2.0-SNAPSHOT.jar
+ asserts_file_exist ${src_folders[sdnc]}/northbound/$component/installer/target/sdnc-$component-1.2.0-SNAPSHOT-installer.zip
+ asserts_file_exist ${src_folders[sdnc]}/northbound/$component/features/target/$component-features-1.2.0-SNAPSHOT.jar
+ asserts_file_exist ${src_folders[sdnc]}/northbound/$component/provider/target/$component-provider-1.2.0-SNAPSHOT.jar
done
- asserts_file_exist $sdnc_src_folder/oam/admportal/target/admportal.*-SNAPSHOT.zip
- asserts_file_exist $sdnc_src_folder/oam/dgbuilder/target/dgbuilder.*-SNAPSHOT.zip
- asserts_file_exist $sdnc_src_folder/oam/platform-logic/installer/target/platform-logic-installer-*-SNAPSHOT.zip
+ asserts_file_exist ${src_folders[sdnc]}/oam/admportal/target/admportal.*-SNAPSHOT.zip
+ asserts_file_exist ${src_folders[sdnc]}/oam/dgbuilder/target/dgbuilder.*-SNAPSHOT.zip
+ asserts_file_exist ${src_folders[sdnc]}/oam/platform-logic/installer/target/platform-logic-installer-*-SNAPSHOT.zip
}
# test_get_sdnc_images() - Verify that the SDNC images are created or retrieved