aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tests/test_vnfsdk
diff options
context:
space:
mode:
authorShashank Kumar Shankar <shashank.kumar.shankar@intel.com>2017-10-20 16:06:08 -0700
committerShashank Kumar Shankar <shashank.kumar.shankar@intel.com>2017-10-20 16:06:08 -0700
commitd52d0af3d1d76a5dfb7c6cadad47d95819aabb21 (patch)
treed5a334fc1d13e5c7c85b85decf22b14672e0ceff /bootstrap/vagrant-onap/tests/test_vnfsdk
parent72d3adfedf2ba6988ec17f0539765734f623a69c (diff)
Add VNFSDK install scripts in Vagrant ONAP
This patch adds the VNFSDK installation scripts and other minor fixed in the Vagrant ONAP project. Issue-Id: INT-290 Change-Id: I6402a1ffad4e373eb701945beabd5e95f091ff5b Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
Diffstat (limited to 'bootstrap/vagrant-onap/tests/test_vnfsdk')
-rw-r--r--bootstrap/vagrant-onap/tests/test_vnfsdk50
1 files changed, 50 insertions, 0 deletions
diff --git a/bootstrap/vagrant-onap/tests/test_vnfsdk b/bootstrap/vagrant-onap/tests/test_vnfsdk
new file mode 100644
index 000000000..5aeca45c2
--- /dev/null
+++ b/bootstrap/vagrant-onap/tests/test_vnfsdk
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+source /var/onap_tests/_test_base
+source /var/onap/vnfsdk
+
+covered_functions=(
+"clone_all_vnfsdk_repos" "compile_all_vnfsdk_repos" "get_vnfsdk_images" "install_vnfsdk"
+)
+
+# test_clone_all_vnfsdk_repos() - Verify the cloning of VNFSDK source repo.
+function test_clone_all_vnfsdk_repos {
+ clone_all_vnfsdk_repos
+
+ asserts_file_exist $vnfsdk_src_folder/refrepo/pom.xml
+}
+
+# test_compile_all_vnfsdk_repos () - Verify if VNFSDK source repo compiles correctly.
+function test_compile_all_vnfsdk_repos {
+ clone_all_vnfsdk_repos
+ {
+ compile_all_vnfsdk_repos
+ } || {
+ set -e
+ }
+}
+
+# test_get_vnfsdk_images() - Verify that the VNFSDK images are created or retrieved
+function test_get_vnfsdk_images {
+ clone_all_vnfsdk_repos
+ get_vnfsdk_images
+
+ asserts_image refrepo:1.0-STAGING-latest
+ asserts_image refrepo:latest
+}
+
+# test_install_vnfsdk() - Verify that VNFSDK docker images are running.
+function test_install_vnfsdk {
+ clone_all_vnfsdk_repos
+ get_vnfsdk_images
+ install_vnfsdk
+
+ asserts_image_running refrepo:1.0-STAGING-latest
+ asserts_image refrepo:latest
+}
+
+if [ "$1" != '*' ]; then
+ unset covered_functions
+ covered_functions=$1
+fi
+main "${covered_functions[@]}" \ No newline at end of file