summaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/tests/test_vnfsdk
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-10-23 11:56:43 -0700
committerVictor Morales <victor.morales@intel.com>2017-10-23 11:56:43 -0700
commit6d280a1548070d12dee8dae9b3de6ccba6a6e655 (patch)
tree75cd2be939c3078157e31e80ed61029f56a52aea /bootstrap/vagrant-onap/tests/test_vnfsdk
parent41a427a8806633f4dd93faa73d9dbe891c91f57b (diff)
Update UTs for VNFSDK
The Unit tests for VNF SDK component was skipping some compile validations. This change fixes those UT and the tox bash syntax. Change-Id: Ibaac790ac3096b44e7ba99986aee2ea526345562 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: INT-290
Diffstat (limited to 'bootstrap/vagrant-onap/tests/test_vnfsdk')
-rw-r--r--bootstrap/vagrant-onap/tests/test_vnfsdk21
1 files changed, 14 insertions, 7 deletions
diff --git a/bootstrap/vagrant-onap/tests/test_vnfsdk b/bootstrap/vagrant-onap/tests/test_vnfsdk
index 5aeca45c2..250a9fcc5 100644
--- a/bootstrap/vagrant-onap/tests/test_vnfsdk
+++ b/bootstrap/vagrant-onap/tests/test_vnfsdk
@@ -11,21 +11,28 @@ covered_functions=(
function test_clone_all_vnfsdk_repos {
clone_all_vnfsdk_repos
+ asserts_file_exist $vnfsdk_src_folder/compliance/veslibrary/README
+ asserts_file_exist $vnfsdk_src_folder/functest/pom.xml
+ asserts_file_exist $vnfsdk_src_folder/lctest/pom.xml
+ asserts_file_exist $vnfsdk_src_folder/model/docs/index.rst
+ asserts_file_exist $vnfsdk_src_folder/pkgtools/pom.xml
asserts_file_exist $vnfsdk_src_folder/refrepo/pom.xml
+ asserts_file_exist $vnfsdk_src_folder/validation/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
- }
+ compile_all_vnfsdk_repos
+
+ asserts_file_exist $vnfsdk_src_folder/lctest/lifecycle-test/target/lifecycle-test-service-1.0.0-SNAPSHOT.war
+ asserts_file_exist $vnfsdk_src_folder/pkgtools/target/vnf-sdk-pkgtools-1.0.0-SNAPSHOT.zip
+ asserts_file_exist $vnfsdk_src_folder/refrepo/vnfmarket-be/vnf-sdk-marketplace/target/ROOT.war
+ asserts_file_exist $vnfsdk_src_folder/validation/csarvalidation/target/validation-csar-1.0.0-SNAPSHOT.jar
}
# test_get_vnfsdk_images() - Verify that the VNFSDK images are created or retrieved
-function test_get_vnfsdk_images {
+function test_get_vnfsdk_images {
clone_all_vnfsdk_repos
get_vnfsdk_images
@@ -47,4 +54,4 @@ if [ "$1" != '*' ]; then
unset covered_functions
covered_functions=$1
fi
-main "${covered_functions[@]}" \ No newline at end of file
+main "${covered_functions[@]}"