summaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tests/test_vvp
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-10-25 16:01:58 -0700
committerVictor Morales <victor.morales@intel.com>2017-10-25 16:01:58 -0700
commitd3cbcf2b5498cf7facd474ba30a45bb5498fe5d1 (patch)
treeb72e6a71955afdffabe3f10f5cb6204d8ea837a1 /bootstrap/vagrant-onap/tests/test_vvp
parentb9be518a15e461d02684ee1d85b93a9fa9d99738 (diff)
Add VVP support in Vagrant ONAP
This commit provides a capability to provision a VVP development environment. Change-Id: Ic8623095194ce13420c8dc71da1dd1d84ef010fc Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: INT-303
Diffstat (limited to 'bootstrap/vagrant-onap/tests/test_vvp')
-rw-r--r--bootstrap/vagrant-onap/tests/test_vvp55
1 files changed, 55 insertions, 0 deletions
diff --git a/bootstrap/vagrant-onap/tests/test_vvp b/bootstrap/vagrant-onap/tests/test_vvp
new file mode 100644
index 000000000..f77fdf4d3
--- /dev/null
+++ b/bootstrap/vagrant-onap/tests/test_vvp
@@ -0,0 +1,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_all_vvp_repos
+
+ asserts_file_exist $vvp_src_folder/cms/pom.xml
+ asserts_file_exist $vvp_src_folder/devkit/LICENSE.TXT
+ asserts_file_exist $vvp_src_folder/engagementmgr/pom.xml
+ asserts_file_exist $vvp_src_folder/gitlab/pom.xml
+ asserts_file_exist $vvp_src_folder/image-scanner/pom.xml
+ asserts_file_exist $vvp_src_folder/jenkins/pom.xml
+ asserts_file_exist $vvp_src_folder/portal/pom.xml
+ asserts_file_exist $vvp_src_folder/postgresql/pom.xml
+ asserts_file_exist $vvp_src_folder/test-engine/pom.xml
+ asserts_file_exist $vvp_src_folder/validation-scripts/LICENSE.txt
+}
+
+# test_compile_all_vvp_repos () - Verify if VNFSDK source repo compiles correctly.
+function test_compile_all_vvp_repos {
+ clone_all_vvp_repos
+ compile_all_vvp_repos
+
+ # asserts_file_exist $vvp_src_folder/
+}
+
+# test_get_vvp_images() - Verify that the VNFSDK images are created or retrieved
+function test_get_vvp_images {
+ clone_all_vvp_repos
+ get_vvp_images
+
+ #asserts_image refrepo:latest
+}
+
+# test_install_vvp() - Verify that VNFSDK docker images are running.
+function test_install_vvp {
+ clone_all_vvp_repos
+ 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[@]}"