blob: 8e9594dcd68feccd9c68a2ec5d253540d054faa3 [file] [log] [blame]
Victor Moralesd3cbcf22017-10-25 16:01:58 -07001#!/bin/bash
2
3source /var/onap_tests/_test_base
4source /var/onap/vvp
5
6covered_functions=(
7"clone_all_vvp_repos" "compile_all_vvp_repos" "get_vvp_images" "install_vvp"
8)
9
10# test_clone_all_vvp_repos() - Verify the cloning of VNFSDK source repo.
11function test_clone_all_vvp_repos {
Victor Moralesf1f1ba52017-11-20 16:38:28 -080012 clone_repos "vvp"
Victor Moralesd3cbcf22017-10-25 16:01:58 -070013
Victor Morales54646642017-12-08 11:57:42 -080014 asserts_file_exist ${src_folders[vvp]}/cms/pom.xml
15 asserts_file_exist ${src_folders[vvp]}/devkit/LICENSE.TXT
16 asserts_file_exist ${src_folders[vvp]}/engagementmgr/pom.xml
17 asserts_file_exist ${src_folders[vvp]}/gitlab/pom.xml
18 asserts_file_exist ${src_folders[vvp]}/image-scanner/pom.xml
19 asserts_file_exist ${src_folders[vvp]}/jenkins/pom.xml
20 asserts_file_exist ${src_folders[vvp]}/portal/pom.xml
21 asserts_file_exist ${src_folders[vvp]}/postgresql/pom.xml
22 asserts_file_exist ${src_folders[vvp]}/test-engine/pom.xml
23 asserts_file_exist ${src_folders[vvp]}/validation-scripts/LICENSE.txt
Victor Moralesd3cbcf22017-10-25 16:01:58 -070024}
25
26# test_compile_all_vvp_repos () - Verify if VNFSDK source repo compiles correctly.
27function test_compile_all_vvp_repos {
Victor Moralesf1f1ba52017-11-20 16:38:28 -080028 clone_repos "vvp"
29 compile_repos "vvp"
Victor Moralesd3cbcf22017-10-25 16:01:58 -070030
Victor Morales54646642017-12-08 11:57:42 -080031 # asserts_file_exist ${src_folders[vvp]}/
Victor Moralesd3cbcf22017-10-25 16:01:58 -070032}
33
34# test_get_vvp_images() - Verify that the VNFSDK images are created or retrieved
35function test_get_vvp_images {
Victor Moralesf1f1ba52017-11-20 16:38:28 -080036 clone_repos "vvp"
Victor Moralesd3cbcf22017-10-25 16:01:58 -070037 get_vvp_images
38
39 #asserts_image refrepo:latest
40}
41
42# test_install_vvp() - Verify that VNFSDK docker images are running.
43function test_install_vvp {
Victor Moralesf1f1ba52017-11-20 16:38:28 -080044 clone_repos "vvp"
Victor Moralesd3cbcf22017-10-25 16:01:58 -070045 get_vvp_images
46 install_vvp
47
48 #asserts_image_running refrepo:1.0-STAGING-latest
49}
50
51if [ "$1" != '*' ]; then
52 unset covered_functions
53 covered_functions=$1
54fi
55main "${covered_functions[@]}"