From dcfa2cff85b5aa6ca22be87c22aadaff4d895e18 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Wed, 30 Aug 2017 19:12:14 -0500 Subject: Complete assertions of UTs for Policy The asserts functions of the Policy Unit Tests was not checking files in specific. This change helps to check every file expected as an output. Change-Id: I0cd83ced7ddb600f203f0f97d13b7d5792797dfe Signed-off-by: Victor Morales Issue-Id: INT-23 --- bootstrap/vagrant-onap/lib/policy | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bootstrap/vagrant-onap/lib/policy') diff --git a/bootstrap/vagrant-onap/lib/policy b/bootstrap/vagrant-onap/lib/policy index 5b3e58109..ce3405614 100755 --- a/bootstrap/vagrant-onap/lib/policy +++ b/bootstrap/vagrant-onap/lib/policy @@ -4,27 +4,27 @@ set -o xtrace source /var/onap/functions -src_folder=$git_src_folder/policy +policy_src_folder=$git_src_folder/policy policy_repos=("api" "common" "docker" "drools-applications" "drools-pdp" "engine" "gui" "pap" "pdp") # clone_all_policy_repos() - Function that clones Policy source repo. function clone_all_policy_repos { for dirc in ${policy_repos[@]}; do - clone_repo policy/$dirc $src_folder/$dirc + clone_repo policy/$dirc $policy_src_folder/$dirc done } # compile_all_policy_repos() - Function that compiles Policy source repo. function compile_all_policy_repos { - for dirc in ${aai_repos[@]}; do - compile_src $src_folder/$dirc + for dirc in ${policy_repos[@]}; do + compile_src $policy_src_folder/$dirc done } # _build_policy_images() - Function that build Policy docker images from source code function _build_policy_images { - compile_src $src_folder/docker - pushd $src_folder/docker + compile_src $policy_src_folder/docker + pushd $policy_src_folder/docker install_maven mvn prepare-package cp -r target/policy-pe/* policy-pe/ @@ -48,7 +48,7 @@ function get_policy_images { # install_policy() - Function that clones and installs the Policy services from source code function install_policy { - pushd $src_folder/docker + pushd $policy_src_folder/docker chmod +x config/drools/drools-tweaks.sh echo $IP_ADDRESS > config/pe/ip_addr.txt install_docker_compose -- cgit 1.2.3-korg