diff options
author | Victor Morales <victor.morales@intel.com> | 2017-07-26 16:06:35 -0500 |
---|---|---|
committer | Victor Morales <victor.morales@intel.com> | 2017-07-26 16:06:35 -0500 |
commit | dd074806ad51761392a9cca3f1f04fbbebd3de22 (patch) | |
tree | 9088768b55bf307875369e7368f56c7e66149424 /bootstrap/vagrant-onap/tests/test_sdnc | |
parent | 8805879b4dc92014381ba55b75955b295944ded6 (diff) |
Sync latest changes for vagrant-onap
Given some internal procedures was not possible to submit all the
changes. In the meantime, those changes were placed into an
non-official project. This change syncronizes the latest changes
into the official repository.
Issue-id: INT-17
Change-Id: Ia4125f4b70273401e4ed3cc1908d2e2ad7d1c2e9
Signed-off-by: Victor Morales <victor.morales@intel.com>
Diffstat (limited to 'bootstrap/vagrant-onap/tests/test_sdnc')
-rw-r--r-- | bootstrap/vagrant-onap/tests/test_sdnc | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/bootstrap/vagrant-onap/tests/test_sdnc b/bootstrap/vagrant-onap/tests/test_sdnc new file mode 100644 index 000000000..be900d3d8 --- /dev/null +++ b/bootstrap/vagrant-onap/tests/test_sdnc @@ -0,0 +1,45 @@ +#!/bin/bash + +source /var/onap_tests/_test_base +source /var/onap/sdnc + +covered_functions=( +"clone_all_sdnc_repos" "compile_all_sdnc_repos" "get_sdnc_images" +) + +# test_clone_all_sdnc_repos() - Verify the source code retrieve of SDNC project +function test_clone_all_sdnc_repos { + clone_all_sdnc_repos + + asserts_file_exist $src_folder/core/pom.xml + asserts_file_exist $src_folder/adaptors/pom.xml + asserts_file_exist $src_folder/northbound/pom.xml + asserts_file_exist $src_folder/plugins/pom.xml + asserts_file_exist $src_folder/oam/pom.xml +} + +# test_compile_all_sdnc_repos() - Verify the correct compilation of SDNC projects +function test_compile_all_sdnc_repos { + clone_all_sdnc_repos + compile_all_sdnc_repos + + asserts_file_exist $src_folder/core/rootpom/boron-sr1/target/classes/LICENSE + asserts_file_exist $src_folder/core/rootpom/boron-sr3/target/classes/LICENSE + asserts_file_exist $src_folder/core/rootpom/target/rootpom-1.1.0-site_en.xml +} + +# test_get_sdnc_images() - Verify that the SDNC images are created or retrieved +function test_get_sdnc_images { + clone_all_sdnc_repos + get_sdnc_images + + asserts_image openecomp/sdnc-image + asserts_image openecomp/admportal-sdnc-image + asserts_image openecomp/dgbuilder-sdnc-image +} + +if [ "$1" != '*' ]; then + unset covered_functions + covered_functions=$1 +fi +main "${covered_functions[@]}" |