summaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tests/test_vvp
blob: 8e9594dcd68feccd9c68a2ec5d253540d054faa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash

source /var/onap_tests/_test_base
source /var/onap/vvp

covered_functions=(
"clone_all_vvp_repos" "compile_all_vvp_repos" "get_vvp_images" "install_vvp"
)

# test_clone_all_vvp_repos() - Verify the cloning of VNFSDK source repo.
function test_clone_all_vvp_repos {
    clone_repos "vvp"

    asserts_file_exist ${src_folders[vvp]}/cms/pom.xml
    asserts_file_exist ${src_folders[vvp]}/devkit/LICENSE.TXT
    asserts_file_exist ${src_folders[vvp]}/engagementmgr/pom.xml
    asserts_file_exist ${src_folders[vvp]}/gitlab/pom.xml
    asserts_file_exist ${src_folders[vvp]}/image-scanner/pom.xml
    asserts_file_exist ${src_folders[vvp]}/jenkins/pom.xml
    asserts_file_exist ${src_folders[vvp]}/portal/pom.xml
    asserts_file_exist ${src_folders[vvp]}/postgresql/pom.xml
    asserts_file_exist ${src_folders[vvp]}/test-engine/pom.xml
    asserts_file_exist ${src_folders[vvp]}/validation-scripts/LICENSE.txt
}

# test_compile_all_vvp_repos () - Verify if VNFSDK source repo compiles correctly.
function test_compile_all_vvp_repos {
    clone_repos "vvp"
    compile_repos "vvp"

   # asserts_file_exist ${src_folders[vvp]}/
}

# test_get_vvp_images() - Verify that the VNFSDK images are created or retrieved
function test_get_vvp_images {
    clone_repos "vvp"
    get_vvp_images

    #asserts_image refrepo:latest
}

# test_install_vvp() - Verify that VNFSDK docker images are running.
function test_install_vvp {
    clone_repos "vvp"
    get_vvp_images
    install_vvp

    #asserts_image_running refrepo:1.0-STAGING-latest
}

if [ "$1" != '*' ]; then
    unset covered_functions
    covered_functions=$1
fi
main "${covered_functions[@]}"