blob: 4762e1da2607c706c796d3269c07fdaa50c3de33 [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
14 asserts_file_exist $vvp_src_folder/cms/pom.xml
15 asserts_file_exist $vvp_src_folder/devkit/LICENSE.TXT
16 asserts_file_exist $vvp_src_folder/engagementmgr/pom.xml
17 asserts_file_exist $vvp_src_folder/gitlab/pom.xml
18 asserts_file_exist $vvp_src_folder/image-scanner/pom.xml
19 asserts_file_exist $vvp_src_folder/jenkins/pom.xml
20 asserts_file_exist $vvp_src_folder/portal/pom.xml
21 asserts_file_exist $vvp_src_folder/postgresql/pom.xml
22 asserts_file_exist $vvp_src_folder/test-engine/pom.xml
23 asserts_file_exist $vvp_src_folder/validation-scripts/LICENSE.txt
24}
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
31 # asserts_file_exist $vvp_src_folder/
32}
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[@]}"