summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorGary Wu <gary.i.wu@huawei.com>2017-08-10 17:24:21 +0000
committerGerrit Code Review <gerrit@onap.org>2017-08-10 17:24:21 +0000
commitd1c03409f28c32d8cb0a97d4311b58907729998e (patch)
treea75b52732d857620fba617102495f53c6fa198a1 /bootstrap
parent7c07560d896fb62eb9b5a461a184e8296f299a0f (diff)
parente647162e9b818a3195fb554f19401ae891b30495 (diff)
Merge "Update MSO Unit Tests"
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap/vagrant-onap/lib/mso4
-rw-r--r--bootstrap/vagrant-onap/tests/test_mso21
2 files changed, 20 insertions, 5 deletions
diff --git a/bootstrap/vagrant-onap/lib/mso b/bootstrap/vagrant-onap/lib/mso
index b8d432622..4f88e9085 100755
--- a/bootstrap/vagrant-onap/lib/mso
+++ b/bootstrap/vagrant-onap/lib/mso
@@ -3,7 +3,6 @@
set -o xtrace
source /var/onap/functions
-source /var/onap/asserts
src_folder=$git_src_folder/mso
mso_repos=("chef-repo" "docker-config" "libs" "mso-config")
@@ -32,9 +31,6 @@ function install_mso {
export GIT_NO_PROJECT=/opt/
compile_src $src_folder
build_docker_image $src_folder/packages/docker docker
- for image in mso mso-arquillian wildfly ubuntu-update jacoco; do
- asserts_image openecomp/$image
- done
fi
}
diff --git a/bootstrap/vagrant-onap/tests/test_mso b/bootstrap/vagrant-onap/tests/test_mso
index 632f6ea02..cb7b014dc 100644
--- a/bootstrap/vagrant-onap/tests/test_mso
+++ b/bootstrap/vagrant-onap/tests/test_mso
@@ -4,7 +4,7 @@ source /var/onap_tests/_test_base
source /var/onap/mso
covered_functions=(
-"clone_all_mso_repos" "compile_all_mso_repos"
+"clone_all_mso_repos" "compile_all_mso_repos" "install_mso" "install_mso_docker_config"
)
# test_clone_all_mso_repos() - Verify the source code retrieve of MSO project
@@ -40,6 +40,25 @@ function test_compile_all_mso_repos {
asserts_file_exist $src_folder/libs/swift-model/target/swift-model-1.1.0-SNAPSHOT.jar
}
+# test_install_mso() - Verify the creation of MSO Docker images
+function test_install_mso {
+ clone_all_mso_repos
+ install_mso
+
+ for image in mso mso-arquillian wildfly ubuntu-update jacoco; do
+ asserts_image openecomp/$image
+ done
+}
+
+# test_install_mso_docker_config - Verify the execution of MSO Docker images
+function test_install_mso_docker_config {
+ clone_all_mso_repos
+ install_mso
+ install_mso_docker_config
+
+ asserts_image_running openecomp/mso
+ asserts_image_running mariadb:10.1.11
+}
if [ "$1" != '*' ]; then
unset covered_functions