diff options
author | Victor Morales <victor.morales@intel.com> | 2017-08-30 19:12:14 -0500 |
---|---|---|
committer | Victor Morales <victor.morales@intel.com> | 2017-08-30 19:12:14 -0500 |
commit | dcfa2cff85b5aa6ca22be87c22aadaff4d895e18 (patch) | |
tree | 90cfdc76664b6bfebce99bfbad8abe6ec06abef3 /bootstrap/vagrant-onap/lib/policy | |
parent | d353af8be5100d2ff55d0082f72d760ceb68b521 (diff) |
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 <victor.morales@intel.com>
Issue-Id: INT-23
Diffstat (limited to 'bootstrap/vagrant-onap/lib/policy')
-rwxr-xr-x | bootstrap/vagrant-onap/lib/policy | 14 |
1 files changed, 7 insertions, 7 deletions
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 |