blob: a60145fbf8228c1585a96081a4ce34b4dee0c9a9 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
#!/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" "install_sdnc"
)
# 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 $sdnc_src_folder/core/pom.xml
asserts_file_exist $sdnc_src_folder/adaptors/pom.xml
asserts_file_exist $sdnc_src_folder/northbound/pom.xml
asserts_file_exist $sdnc_src_folder/plugins/pom.xml
asserts_file_exist $sdnc_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
for adaptor in aai-service mdsal-resource resource-assignment sql-resource; do
asserts_file_exist $sdnc_src_folder/adaptors/$adaptor/features/target/$adaptor-features-1.1.2-SNAPSHOT.jar
asserts_file_exist $sdnc_src_folder/adaptors/$adaptor/installer/target/sdnc-$adaptor-1.1.2-SNAPSHOT-installer.zip
asserts_file_exist $sdnc_src_folder/adaptors/$adaptor/provider/target/$adaptor-provider-1.1.2-SNAPSHOT.jar
done
asserts_file_exist $sdnc_src_folder/core/dblib/provider/target/dblib-provider-1.1.2-SNAPSHOT.jar
asserts_file_exist $sdnc_src_folder/core/rootpom/target/rootpom-1.1.0-site_en.xml
asserts_file_exist $sdnc_src_folder/core/target/sdnc-core-1.1.2-SNAPSHOT-site.xml
for component in asdcApi dataChange vnfapi vnftools; do
asserts_file_exist $sdnc_src_folder/northbound/$component/features/target/$component-features-1.1.2-SNAPSHOT.jar
asserts_file_exist $sdnc_src_folder/northbound/$component/installer/target/sdnc-$component-1.1.2-SNAPSHOT-installer.zip
if [[ "$component" != "vnftools" ]]; then
asserts_file_exist $sdnc_src_folder/northbound/$component/model/target/$component-model-1.1.2-SNAPSHOT.jar
fi
asserts_file_exist $sdnc_src_folder/northbound/$component/provider/target/$component-provider-1.1.2-SNAPSHOT.jar
done
asserts_file_exist $sdnc_src_folder/northbound/dmaap-listener/target/dmaap-listener-1.1.2-SNAPSHOT.jar
asserts_file_exist $sdnc_src_folder/northbound/ueb-listener/target/ueb-listener-1.1.2-SNAPSHOT.jar
asserts_file_exist $sdnc_src_folder/oam/admportal/target/admportal.1.1.2-SNAPSHOT.zip
asserts_file_exist $sdnc_src_folder/oam/dgbuilder/target/dgbuilder.1.1.2-SNAPSHOT.zip
asserts_file_exist $sdnc_src_folder/oam/platform-logic/installer/target/platform-logic-installer-1.1.2-SNAPSHOT.zip
for plugin in properties-node restapi-call-node; do
asserts_file_exist $sdnc_src_folder/plugins/$plugin/features/target/$plugin-features-1.1.2-SNAPSHOT.jar
asserts_file_exist $sdnc_src_folder/plugins/$plugin/installer/target/sdnc-$plugin-1.1.2-SNAPSHOT-installer.zip
asserts_file_exist $sdnc_src_folder/plugins/$plugin/provider/target/$plugin-provider-1.1.2-SNAPSHOT.jar
done
}
# 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
asserts_image mysql/mysql-server:5.6
}
# test_install_sdnc() - Verify that the SDNC Docker containers are up and running
function test_install_sdnc {
clone_all_sdnc_repos
get_sdnc_images
install_sdnc
asserts_image_running openecomp/dgbuilder-sdnc-image
asserts_image_running openecomp/admportal-sdnc-image
asserts_image_running openecomp/sdnc-image
asserts_image_running mysql/mysql-server:5.6
}
if [ "$1" != '*' ]; then
unset covered_functions
covered_functions=$1
fi
main "${covered_functions[@]}"
|