From f1f1ba5dac1b531c346758072c798ceb511100b3 Mon Sep 17 00:00:00 2001 From: Victor Morales Date: Mon, 20 Nov 2017 16:38:28 -0800 Subject: Refactor clone and compile functions The clone_all_* and compile_all_* functions share same instructions for performing their functionality. This change pretends to reduce the duplication of the code. Change-Id: Ief63a5a58c79af85c829602b0451637424659438 Signed-off-by: Victor Morales Issue-Id: INT-339 --- bootstrap/vagrant-onap/lib/_composed_functions | 11 ---- bootstrap/vagrant-onap/lib/aai | 8 +-- bootstrap/vagrant-onap/lib/appc | 18 +----- bootstrap/vagrant-onap/lib/ccsdk | 23 ++------ bootstrap/vagrant-onap/lib/dcae | 23 +------- bootstrap/vagrant-onap/lib/functions | 26 +++++++++ bootstrap/vagrant-onap/lib/mr | 7 +-- bootstrap/vagrant-onap/lib/mso | 28 +++------ bootstrap/vagrant-onap/lib/multicloud | 18 +----- bootstrap/vagrant-onap/lib/policy | 18 +----- bootstrap/vagrant-onap/lib/robot | 36 +++--------- bootstrap/vagrant-onap/lib/sdc | 18 +----- bootstrap/vagrant-onap/lib/sdnc | 11 +--- bootstrap/vagrant-onap/lib/vfc | 9 +-- bootstrap/vagrant-onap/lib/vid | 18 +----- bootstrap/vagrant-onap/lib/vnfsdk | 21 ++----- bootstrap/vagrant-onap/lib/vvp | 23 ++------ bootstrap/vagrant-onap/tests/_test_base | 6 +- bootstrap/vagrant-onap/tests/test_aai | 12 ++-- bootstrap/vagrant-onap/tests/test_appc | 78 +++++++++++++------------- bootstrap/vagrant-onap/tests/test_ccsdk | 47 ++++++++-------- bootstrap/vagrant-onap/tests/test_dcae | 12 ++-- bootstrap/vagrant-onap/tests/test_functions | 0 bootstrap/vagrant-onap/tests/test_mr | 4 +- bootstrap/vagrant-onap/tests/test_mso | 50 ++++++++--------- bootstrap/vagrant-onap/tests/test_multicloud | 10 ++-- bootstrap/vagrant-onap/tests/test_policy | 62 ++++++++++---------- bootstrap/vagrant-onap/tests/test_portal | 0 bootstrap/vagrant-onap/tests/test_robot | 18 +++--- bootstrap/vagrant-onap/tests/test_sdc | 23 ++++---- bootstrap/vagrant-onap/tests/test_sdnc | 14 ++--- bootstrap/vagrant-onap/tests/test_vfc | 8 +-- bootstrap/vagrant-onap/tests/test_vid | 10 ++-- bootstrap/vagrant-onap/tests/test_vnfsdk | 10 ++-- bootstrap/vagrant-onap/tests/test_vvp | 10 ++-- 35 files changed, 265 insertions(+), 425 deletions(-) mode change 100644 => 100755 bootstrap/vagrant-onap/lib/vnfsdk mode change 100644 => 100755 bootstrap/vagrant-onap/lib/vvp mode change 100644 => 100755 bootstrap/vagrant-onap/tests/_test_base mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_aai mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_appc mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_ccsdk mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_dcae mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_functions mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_mr mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_mso mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_multicloud mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_policy mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_portal mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_robot mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_sdc mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_sdnc mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_vfc mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_vid mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_vnfsdk mode change 100644 => 100755 bootstrap/vagrant-onap/tests/test_vvp diff --git a/bootstrap/vagrant-onap/lib/_composed_functions b/bootstrap/vagrant-onap/lib/_composed_functions index f46499766..9f2d0a1d8 100755 --- a/bootstrap/vagrant-onap/lib/_composed_functions +++ b/bootstrap/vagrant-onap/lib/_composed_functions @@ -1,16 +1,5 @@ #!/bin/bash -# compile_src() - Function that compiles the java source code thru maven -function compile_src { - local src_folder=$1 - pushd $src_folder - if [ -f pom.xml ]; then - install_maven - mvn clean install -U -DskipTests=true -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dadditionalparam=-Xdoclint:none - fi - popd -} - # build_docker_image() - Build Docker container image from source code function build_docker_image { local src_folder=$1 diff --git a/bootstrap/vagrant-onap/lib/aai b/bootstrap/vagrant-onap/lib/aai index 538ad2c02..828d4d14e 100755 --- a/bootstrap/vagrant-onap/lib/aai +++ b/bootstrap/vagrant-onap/lib/aai @@ -51,12 +51,6 @@ function install_haproxy { service haproxy restart } -# clone_all_aai_repos() - Function that clones AAI source repo. -function clone_all_aai_repos { - for repo in ${aai_repos[@]}; do - clone_repo $repo $aai_src_folder${repo#*aai} - done -} # compile_aai_repos() - Function that compiles AAI source repo. function compile_aai_repos { @@ -182,7 +176,7 @@ function init_aai { install_haproxy if [[ "$clone_repo" == "True" ]]; then - clone_all_aai_repos + clone_repos "aai" if [[ "$compile_repo" == "True" ]]; then compile_aai_repos fi diff --git a/bootstrap/vagrant-onap/lib/appc b/bootstrap/vagrant-onap/lib/appc index 181c73f1f..14ba3cf96 100755 --- a/bootstrap/vagrant-onap/lib/appc +++ b/bootstrap/vagrant-onap/lib/appc @@ -6,20 +6,6 @@ source /var/onap/functions appc_src_folder=$git_src_folder/appc appc_repos=("appc" "appc/deployment") -# clone_all_appc_repos() - Function that clones APPC source repo. -function clone_all_appc_repos { - for repo in ${appc_repos[@]}; do - clone_repo $repo $appc_src_folder${repo#*appc} - done -} - -# compile_all_appc_repos() - Function that compiles APPC source repo. -function compile_all_appc_repos { - for repo in ${appc_repos[@]}; do - compile_src $appc_src_folder${repo#*appc} - done -} - # _build_appc_images() - Function that creates APPC images from source code. function _build_appc_images { get_sdnc_images @@ -47,9 +33,9 @@ function install_appc { # init_appc() - Function that initialize APPC services function init_appc { if [[ "$clone_repo" == "True" ]]; then - clone_all_appc_repos + clone_repos "appc" if [[ "$compile_repo" == "True" ]]; then - compile_all_appc_repos + compile_repos "appc" fi fi diff --git a/bootstrap/vagrant-onap/lib/ccsdk b/bootstrap/vagrant-onap/lib/ccsdk index 3502e01e8..9f00e9ad2 100755 --- a/bootstrap/vagrant-onap/lib/ccsdk +++ b/bootstrap/vagrant-onap/lib/ccsdk @@ -9,25 +9,9 @@ ccsdk_repos=("ccsdk" "ccsdk/dashboard" "ccsdk/distribution" "ccsdk/parent" "ccsdk/sli/plugins" "ccsdk/storage" "ccsdk/storage/esaas" "ccsdk/storage/pgaas" "ccsdk/utils") -# clone_ccsdk_repos() - Function that clones the CCSDK repositories -function clone_ccsdk_repos { - for repo in ${ccsdk_repos[@]}; do - clone_repo $repo $ccsdk_src_folder${repo#ccsdk} - done -} - -# compile_ccsdk_repos() - -function compile_ccsdk_repos { - install_package unzip - for repo in ${ccsdk_repos[@]}; do - compile_src $ccsdk_src_folder${repo#ccsdk} - done -} - # _build_ccsdk_images() - Build CCSDK Docker images from source code function _build_ccsdk_images { install_package unzip - clone_repo ccsdk/distribution $ccsdk_src_folder/distribution compile_src $ccsdk_src_folder/distribution for image in ubuntu opendaylight odlsli dgbuilder-docker; do build_docker_image $ccsdk_src_folder/distribution/$image docker @@ -48,9 +32,12 @@ function get_ccsdk_images { # init_ccsdk() - Function that initialize Multi Cloud services function init_ccsdk { if [[ "$clone_repo" == "True" ]]; then - clone_ccsdk_repos + clone_repos "ccsdk" if [[ "$compile_repo" == "True" ]]; then - compile_ccsdk_repos + compile_repos "ccsdk" fi fi + if [[ "$skip_get_images" == "False" ]]; then + get_ccsdk_images + fi } diff --git a/bootstrap/vagrant-onap/lib/dcae b/bootstrap/vagrant-onap/lib/dcae index 7ab32fd24..67a43a028 100755 --- a/bootstrap/vagrant-onap/lib/dcae +++ b/bootstrap/vagrant-onap/lib/dcae @@ -59,27 +59,10 @@ function _build_docker_image { popd } -# clone_all_dcae_repos() - Function that clones DCAE source repo. -function clone_all_dcae_repos { - for repo in ${dcae_repos[@]}; do - clone_repo $repo $dcae_src_folder${repo#*dcae} - done -} - -# compile_all_dcae_repos() - Function that compiles DCAE source repo. -function compile_all_dcae_repos { - for repo in ${dcae_repos[@]}; do - compile_src $dcae_src_folder${repo#*dcae} - done -} - # _build_dcae_images() Function that builds DCAE docker images from source code. function _build_dcae_images { if [[ "$compile_repo" != "True" ]]; then - compile_src $dcae_src_folder/dmaapbc - compile_src $dcae_src_folder/orch-dispatcher - compile_src $dcae_src_folder/demo - compile_src $dcae_src_folder/dcae-inventory + compile_repos "dcae" fi _build_docker_image $dcae_src_folder/dmaapbc openecomp/dcae-dmaapbc _build_docker_image $dcae_src_folder/orch-dispatcher dcae/orch-dispatcher @@ -122,9 +105,9 @@ function install_dcae { # init_dcae() - Function that initialize DCAE Controller services function init_dcae { if [[ "$clone_repo" == "True" ]]; then - clone_all_dcae_repos + clone_repos "dcae" if [[ "$compile_repo" == "True" ]]; then - compile_all_dcae_repos + compile_repos "dcae" fi fi diff --git a/bootstrap/vagrant-onap/lib/functions b/bootstrap/vagrant-onap/lib/functions index c4ed3c85f..157c910de 100755 --- a/bootstrap/vagrant-onap/lib/functions +++ b/bootstrap/vagrant-onap/lib/functions @@ -67,6 +67,19 @@ function clone_repo { fi } +# clone_repos() - Function that clones source repositories for a given project +function clone_repos { + local project=$1 + local name=${project}_repos[@] + local src_name=${project}_src_folder + local repos_list=("${!name}") + local dest_folder=${3:-${!src_name}} + + for repo in ${repos_list[@]}; do + clone_repo $repo $dest_folder${repo#*$project} + done +} + # _install_bind() - Install bind utils function _install_bind { install_packages bind9 bind9utils @@ -282,6 +295,19 @@ function compile_src { popd } +# compile_repos() - Function that compiles source repositories for a given project +function compile_repos { + local project=$1 + local name=${project}_repos[@] + local repos_list=("${!name}") + local dest_folder=${3:-$git_src_folder/$project} + + install_package unzip + for repo in ${repos_list[@]}; do + compile_src $dest_folder${repo#*$project} + done +} + # build_docker_image() - Build Docker container image from source code function build_docker_image { local src_folder=$1 diff --git a/bootstrap/vagrant-onap/lib/mr b/bootstrap/vagrant-onap/lib/mr index 55096cb4b..2ffe69e26 100755 --- a/bootstrap/vagrant-onap/lib/mr +++ b/bootstrap/vagrant-onap/lib/mr @@ -4,11 +4,6 @@ source /var/onap/functions mr_src_folder=$git_src_folder/dcae/message-router -# clone_mr_repos() - Function that clones the Message Router repositories -function clone_mr_repos { - clone_repo dcae/demo/startup/message-router $mr_src_folder -} - # get_mr_images() - Function that retrieves the Message Router Docker images function get_mr_images { pull_docker_image attos/dmaap @@ -27,7 +22,7 @@ function install_message_router { # init_mr() - Function that initialize Message Router services function init_mr { if [[ "$clone_repo" == "True" ]]; then - clone_mr_repos + clone_repo dcae/demo/startup/message-router $mr_src_folder fi if [[ "$skip_get_images" == "False" ]]; then get_mr_images diff --git a/bootstrap/vagrant-onap/lib/mso b/bootstrap/vagrant-onap/lib/mso index 0f29b33c5..e99bff912 100755 --- a/bootstrap/vagrant-onap/lib/mso +++ b/bootstrap/vagrant-onap/lib/mso @@ -2,30 +2,16 @@ source /var/onap/functions -src_folder=$git_src_folder/mso +mso_src_folder=$git_src_folder/mso mso_repos=("mso" "mso/chef-repo" "mso/docker-config" "mso/libs" "mso/mso-config") -# clone_all_mso_repos() - Function that clones MSO source repo. -function clone_all_mso_repos { - for repo in ${mso_repos[@]}; do - clone_repo $repo $src_folder${repo#*mso} - done -} - -# compile_all_mso_repos() - Function that compiles MSO source repo. -function compile_all_mso_repos { - for repo in ${mso_repos[@]}; do - compile_src $src_folder${repo#*mso} - done -} - # get_mso_images() - Function that retrieves or create MSO Docker images function get_mso_images { if [[ "$build_image" == "True" ]]; then export GIT_NO_PROJECT=/opt/ - compile_src $src_folder - build_docker_image $src_folder/packages/docker docker + compile_src $mso_src_folder + build_docker_image $mso_src_folder/packages/docker docker fi } @@ -80,10 +66,10 @@ EOF export MSO_CONFIG_UPDATES export MSO_DOCKER_IMAGE_VERSION=$docker_version - is_package_installed docker-ce || install_docker + install_docker install_docker_compose # Deploy the environment - pushd $src_folder/docker-config + pushd $mso_src_folder/docker-config chmod +x deploy.sh if [[ "$build_image" == "True" ]]; then bash deploy.sh @@ -97,9 +83,9 @@ EOF # init_mso() - Function that initialize MSO services function init_mso { if [[ "$clone_repo" == "True" ]]; then - clone_all_mso_repos + clone_repos "mso" if [[ "$compile_repo" == "True" ]]; then - compile_all_mso_repos + compile_repos "mso" fi fi diff --git a/bootstrap/vagrant-onap/lib/multicloud b/bootstrap/vagrant-onap/lib/multicloud index 2f9e5d8d8..4031956e4 100755 --- a/bootstrap/vagrant-onap/lib/multicloud +++ b/bootstrap/vagrant-onap/lib/multicloud @@ -8,20 +8,6 @@ multicloud_repos=("multicloud" "multicloud/framework" "multicloud/openstack" \ "multicloud/azure") openstack_release="newton" -# clone_multicloud_repos() - Function that clones the Multi Cloud repositories -function clone_multicloud_repos { - for repo in ${multicloud_repos[@]}; do - clone_repo $repo $multicloud_src_folder${repo#*multicloud} - done -} - -# compile_multicloud_repos() - -function compile_multicloud_repos { - for repo in ${multicloud_repos[@]}; do - compile_src $multicloud_src_folder${repo#*multicloud} - done -} - function _build_images { install_docker install_python_requirements $multicloud_src_folder/openstack/$openstack_release @@ -49,9 +35,9 @@ function install_multicloud { # init_multicloud() - Function that initialize Multi Cloud services function init_multicloud { if [[ "$clone_repo" == "True" ]]; then - clone_multicloud_repos + clone_repos "multicloud" if [[ "$compile_repo" == "True" ]]; then - compile_multicloud_repos + compile_repos "multicloud" fi fi if [[ "$skip_get_images" == "False" ]]; then diff --git a/bootstrap/vagrant-onap/lib/policy b/bootstrap/vagrant-onap/lib/policy index 65a65a186..05ad32094 100755 --- a/bootstrap/vagrant-onap/lib/policy +++ b/bootstrap/vagrant-onap/lib/policy @@ -7,20 +7,6 @@ policy_repos=("policy/api" "policy/common" "policy/docker" \ "policy/drools-applications" "policy/drools-pdp" "policy/engine" \ "policy/gui" "policy/pap" "policy/pdp") -# clone_all_policy_repos() - Function that clones Policy source repo. -function clone_all_policy_repos { - for repo in ${policy_repos[@]}; do - clone_repo $repo $policy_src_folder${repo#*policy} - done -} - -# compile_all_policy_repos() - Function that compiles Policy source repo. -function compile_all_policy_repos { - for repo in ${policy_repos[@]}; do - compile_src $policy_src_folder${repo#*policy} - done -} - # _build_policy_images() - Function that build Policy docker images from source code function _build_policy_images { compile_src $policy_src_folder/docker @@ -59,9 +45,9 @@ function install_policy { # init_policy() - Function that initialize Policy services function init_policy { if [[ "$clone_repo" == "True" ]]; then - clone_all_policy_repos + clone_repos "policy" if [[ "$compile_repo" == "True" ]]; then - compile_all_policy_repos + compile_repos "policy" fi fi diff --git a/bootstrap/vagrant-onap/lib/robot b/bootstrap/vagrant-onap/lib/robot index 6dcdf90f0..d9b841757 100755 --- a/bootstrap/vagrant-onap/lib/robot +++ b/bootstrap/vagrant-onap/lib/robot @@ -2,36 +2,18 @@ source /var/onap/functions -robot_src_folder=$git_src_folder/testsuite -robot_repos=("heatbridge" "properties" "python-testing-utils") - -# clone_robot_repos() - Function that clones Robot source repo. -function clone_robot_repos { - clone_repo testsuite $robot_src_folder - - for dirc in ${robot_repos[@]}; do - clone_repo testsuite/$dirc $robot_src_folder/$dirc - done -} - -# compile_robot_repos() - Function that compile Robot source repo. -function compile_robot_repos { - install_python_package tox - compile_src $robot_src_folder - - for dirc in ${robot_repos[@]}; do - compile_src $robot_src_folder/$dirc - done -} +testsuite_src_folder=$git_src_folder/testsuite +testsuite_repos=("testsuite" "testsuite/heatbridge" "testsuite/properties" \ +"testsuite/python-testing-utils") # _setup_ete_folder() - Create and copy ete folder structure function _setup_ete_folder { mkdir -p /opt/eteshare/config - cp $src_folder/integration_* /opt/eteshare/config - cp $src_folder/vm_config2robot.sh /opt/eteshare/config - cp $src_folder/ete.sh /opt - cp $src_folderdemo.sh /opt + cp $testsuite_src_folder/integration_* /opt/eteshare/config + cp $testsuite_src_folder/vm_config2robot.sh /opt/eteshare/config + cp $testsuite_src_folder/ete.sh /opt + cp $testsuite_src_folder/demo.sh /opt chmod +x /opt/ete.sh chmod +x /opt/demo.sh @@ -51,10 +33,10 @@ function install_robot { # init_robot() - Function that initialize Robot services function init_robot { if [[ "$clone_repo" == "True" ]]; then - clone_robot_repos + clone_repos "testsuite" _setup_ete_folder if [[ "$compile_repo" == "True" ]]; then - compile_robot_repos + compile_repos "testsuite" fi fi diff --git a/bootstrap/vagrant-onap/lib/sdc b/bootstrap/vagrant-onap/lib/sdc index 88d1cc0fd..f99e8b204 100755 --- a/bootstrap/vagrant-onap/lib/sdc +++ b/bootstrap/vagrant-onap/lib/sdc @@ -45,20 +45,6 @@ alias health='/data/scripts/docker_health.sh' EOL } -# clone_all_sdc_repos() - Function that clones SDC source repo. -function clone_all_sdc_repos { - for repo in ${sdc_repos[@]}; do - clone_repo $repo $sdc_src_folder${repo#*sdc} - done -} - -# compile_all_sdc_repos() - Function that compiles SDC source repo. -function compile_all_sdc_repos { - for repo in ${sdc_repos[@]}; do - compile_src $sdc_src_folder${repo#*sdc} - done -} - # get_sdc_images() - Function that retrieves the SDC docker images function get_sdc_images { if [[ "$build_image" == "True" ]]; then @@ -103,9 +89,9 @@ function install_sdc { function init_sdc { _mount_external_partition if [[ "$clone_repo" == "True" ]]; then - clone_all_sdc_repos + clone_repos "sdc" if [[ "$compile_repo" == "True" ]]; then - compile_all_sdc_repos + compile_repos "sdc" fi fi diff --git a/bootstrap/vagrant-onap/lib/sdnc b/bootstrap/vagrant-onap/lib/sdnc index a69ce18fb..05165b18b 100755 --- a/bootstrap/vagrant-onap/lib/sdnc +++ b/bootstrap/vagrant-onap/lib/sdnc @@ -7,13 +7,6 @@ sdnc_src_folder=$git_src_folder/openecomp/sdnc sdnc_repos=("sdnc/adaptors" "sdnc/architecture" "sdnc/core" "sdnc/features" \ "sdnc/northbound" "sdnc/oam" "sdnc/parent" "sdnc/plugins") -# clone_all_sdnc_repos() - Function that clones SDNC source repo. -function clone_all_sdnc_repos { - for repo in ${sdnc_repos[@]}; do - clone_repo $repo $sdnc_src_folder${repo#*sdnc} - done -} - # compile_all_sdnc_repos() - Function that compiles SDNC source repo. function compile_all_sdnc_repos { for repo in ${sdnc_repos[@]}; do @@ -30,7 +23,6 @@ function _build_sdnc_images { get_ccsdk_images install_package unzip - clone_repo sdnc/oam $folder # The OAM code depends on all the SDNC repos which should be downloaded and compiled first if [[ "$compile_repo" != "True" ]]; then compile_src $folder @@ -54,7 +46,6 @@ function get_sdnc_images { # install_sdnc() - Download and install SDNC services from source code function install_sdnc { - clone_repo sdnc/oam $sdnc_src_folder/oam pushd $sdnc_src_folder/oam/installation/src/main/yaml install_docker_compose /opt/docker/docker-compose up -d @@ -64,7 +55,7 @@ function install_sdnc { # init_sdnc() - Function that initialize SDNC services function init_sdnc { if [[ "$clone_repo" == "True" ]]; then - clone_all_sdnc_repos + clone_repos "sdnc" if [[ "$compile_repo" == "True" ]]; then compile_all_sdnc_repos fi diff --git a/bootstrap/vagrant-onap/lib/vfc b/bootstrap/vagrant-onap/lib/vfc index a4517ff7c..a1f4bef27 100755 --- a/bootstrap/vagrant-onap/lib/vfc +++ b/bootstrap/vagrant-onap/lib/vfc @@ -9,13 +9,6 @@ vfc_repos=("vfc/gvnfm" "vfc/gvnfm/vnflcm" "vfc/gvnfm/vnfmgr" \ "vfc/nfvo/driver/vnfm/gvnfm" "vfc/nfvo/driver/vnfm/svnfm" "vfc/nfvo/lcm" \ "vfc/nfvo/resmanagement" "vfc/nfvo/wfengine") -# clone_all_vfc_repos() - Function that clones VF-C source repo. -function clone_all_vfc_repos { - for repo in ${vfc_repos[@]}; do - clone_repo $repo $vfc_src_folder${repo#*vfc} - done -} - # compile_all_vfc_repos() - Function that compiles VF-C source repo. function compile_all_vfc_repos { install_python_package tox @@ -97,7 +90,7 @@ function init_vfc { install_package libmysqlclient-dev if [[ "$clone_repo" == "True" ]]; then - clone_all_vfc_repos + clone_repos "vfc" if [[ "$compile_repo" == "True" ]]; then compile_all_vfc_repos fi diff --git a/bootstrap/vagrant-onap/lib/vid b/bootstrap/vagrant-onap/lib/vid index 6fc7f351f..6a358bf97 100755 --- a/bootstrap/vagrant-onap/lib/vid +++ b/bootstrap/vagrant-onap/lib/vid @@ -5,20 +5,6 @@ source /var/onap/functions vid_src_folder=$git_src_folder/vid vid_repos=("vid" "vid/asdcclient") -# clone_all_vid_repos() - Function that clones VID source code. -function clone_all_vid_repos { - for repo in ${vid_repos[@]}; do - clone_repo $repo $vid_src_folder${repo#*vid} - done -} - -# compile_all_vid_repos() - Function that compiles VID source repo. -function compile_all_vid_repos { - for repo in ${vid_repos[@]}; do - compile_src $vid_src_folder${repo#*vid} - done -} - # _build_vid_images() - Function that builds VID docker images function _build_vid_images { if [[ "$compile_repo" != "True" ]]; then @@ -51,9 +37,9 @@ function install_vid { # init_vid() - Function that initialize Vid services function init_vid { if [[ "$clone_repo" == "True" ]]; then - clone_all_vid_repos + clone_repos "vid" if [[ "$compile_repo" == "True" ]]; then - compile_all_vid_repos + compile_repos "vid" fi fi diff --git a/bootstrap/vagrant-onap/lib/vnfsdk b/bootstrap/vagrant-onap/lib/vnfsdk old mode 100644 new mode 100755 index 863bae0f6..020d437da --- a/bootstrap/vagrant-onap/lib/vnfsdk +++ b/bootstrap/vagrant-onap/lib/vnfsdk @@ -3,21 +3,8 @@ source /var/onap/functions vnfsdk_src_folder=$git_src_folder/vnfsdk -vnfsdk_repos=("vnfsdk/compliance" "vnfsdk/functest" "vnfsdk/lctest" "vnfsdk/model" "vnfsdk/pkgtools" "vnfsdk/refrepo" "vnfsdk/validation") - -# clone_all_vnfsdk_repos() - Function that clones vnfsdk source repo. -function clone_all_vnfsdk_repos { - for repo in ${vnfsdk_repos[@]}; do - clone_repo $repo $vnfsdk_src_folder${repo#*vnfsdk} - done -} - -# compile_all_vnfsdk_repos - Function that builds vnfsdk source repo -function compile_all_vnfsdk_repos { - for repo in ${vnfsdk_repos[@]}; do - compile_src $vnfsdk_src_folder${repo#*vnfsdk} - done -} +vnfsdk_repos=("vnfsdk/compliance" "vnfsdk/functest" "vnfsdk/lctest" \ +"vnfsdk/model" "vnfsdk/pkgtools" "vnfsdk/refrepo" "vnfsdk/validation") # _build_vnfsdk_images() - Builds VNFSDK images from source code function _build_vnfsdk_images { @@ -49,9 +36,9 @@ function install_vnfsdk { # init_vnfsdk() - Init VNFSDK services function init_vnfsdk { if [[ "$clone_repo" == "True" ]]; then - clone_all_vnfsdk_repos + clone_repos "vnfsdk" if [[ "$compile_repo" == "True" ]]; then - compile_all_vnfsdk_repos + compile_repos "vnfsdk" fi fi diff --git a/bootstrap/vagrant-onap/lib/vvp b/bootstrap/vagrant-onap/lib/vvp old mode 100644 new mode 100755 index 24264ccc9..a924e7a80 --- a/bootstrap/vagrant-onap/lib/vvp +++ b/bootstrap/vagrant-onap/lib/vvp @@ -3,21 +3,10 @@ source /var/onap/functions vvp_src_folder=$git_src_folder/vvp -vvp_repos=("vvp/ansible-ice-bootstrap" "vvp/cms" "vvp/devkit" "vvp/documentation" "vvp/engagementmgr" "vvp/gitlab" "vvp/image-scanner" "vvp/jenkins" "vvp/portal" "vvp/postgresql" "vvp/test-engine" "vvp/validation-scripts") - -# clone_all_vvp_repos() - Function that clones vvp source repo. -function clone_all_vvp_repos { - for repo in ${vvp_repos[@]}; do - clone_repo $repo $vvp_src_folder${repo#*vvp} - done -} - -# compile_all_vvp_repos - Function that builds vvp source repo -function compile_all_vvp_repos { - for repo in ${vvp_repos[@]}; do - compile_src $vvp_src_folder${repo#*vvp} - done -} +vvp_repos=("vvp/ansible-ice-bootstrap" "vvp/cms" "vvp/devkit" \ +"vvp/documentation" "vvp/engagementmgr" "vvp/gitlab" "vvp/image-scanner" \ +"vvp/jenkins" "vvp/portal" "vvp/postgresql" "vvp/test-engine" \ +"vvp/validation-scripts") # _build_vvp_images() - Builds VNFSDK images from source code function _build_vvp_images { @@ -42,9 +31,9 @@ function install_vvp { # init_vvp() - Init VNFSDK services function init_vvp { if [[ "$clone_repo" == "True" ]]; then - clone_all_vvp_repos + clone_repos "vvp" if [[ "$compile_repo" == "True" ]]; then - compile_all_vvp_repos + compile_repos "vvp" fi fi diff --git a/bootstrap/vagrant-onap/tests/_test_base b/bootstrap/vagrant-onap/tests/_test_base old mode 100644 new mode 100755 index 78c7f8bb4..b30632d26 --- a/bootstrap/vagrant-onap/tests/_test_base +++ b/bootstrap/vagrant-onap/tests/_test_base @@ -1,5 +1,9 @@ #!/bin/bash +if [[ "$debug" == "True" ]]; then + set -o xtrace +fi + source /var/onap_tests/asserts source /var/onap/commons @@ -17,7 +21,7 @@ function main { echo "ok $((i+1)) - test_${covered_functions[$i]}" # Teardown process - if ! is_package_installed docker-ce; then + if is_package_installed docker-ce; then docker images -q | xargs docker rmi -f fi dpkg --get-selections > installed-software_new diff --git a/bootstrap/vagrant-onap/tests/test_aai b/bootstrap/vagrant-onap/tests/test_aai old mode 100644 new mode 100755 index 10777d678..d9a48697c --- a/bootstrap/vagrant-onap/tests/test_aai +++ b/bootstrap/vagrant-onap/tests/test_aai @@ -28,7 +28,7 @@ function test_install_haproxy { # test_clone_all_aai_repos() - Verify that all the AAI Repos are cloned function test_clone_all_aai_repos { - clone_all_aai_repos + clone_repos "aai" asserts_file_exist $aai_src_folder/aai-common/pom.xml asserts_file_exist $aai_src_folder/aai-config/cookbooks/aai-resources/runlist-aai-resources.json @@ -54,7 +54,7 @@ function test_clone_all_aai_repos { # test_compile_aai_repos() - Verify that all the AAI Repositories complile properly function test_compile_aai_repos { - clone_all_aai_repos + clone_repos "aai" compile_aai_repos for common in annotations auth core schema utils; do @@ -71,7 +71,7 @@ function test_compile_aai_repos { # test_setup_titan() - Verify that Titan Cassandra DB is up and running function test_setup_titan { - clone_all_aai_repos + clone_repos "aai" install_hadoop setup_titan @@ -80,7 +80,7 @@ function test_setup_titan { # test_start_aai_microservices() - Verify that AAI Resources and Traversal images works function test_start_aai_microservices { - clone_all_aai_repos + clone_repos "aai" start_aai_microservices # TODO(electrocucaracha): Investigate how to run AAI microservices in background @@ -95,7 +95,7 @@ function test_install_hbase { # test_install_ajsc_aai() - Verify that AJSC AAI service is up and running properly function test_install_ajsc_aai { - clone_all_aai_repos + clone_repos "aai" install_ajsc_aai asserts_image_running openecomp/ajsc-aai @@ -103,7 +103,7 @@ function test_install_ajsc_aai { # test_install_model_loader() - Verify that Model AAI service is up and running properly function test_install_model_loader { - clone_all_aai_repos + clone_repos "aai" install_model_loader asserts_image openecomp/model-loader diff --git a/bootstrap/vagrant-onap/tests/test_appc b/bootstrap/vagrant-onap/tests/test_appc old mode 100644 new mode 100755 index 2290f16a2..47efa690a --- a/bootstrap/vagrant-onap/tests/test_appc +++ b/bootstrap/vagrant-onap/tests/test_appc @@ -9,7 +9,7 @@ covered_functions=( # test_clone_all_appc_repos() - Verify that the APPC source code is cloned function test_clone_all_appc_repos { - clone_all_appc_repos + clone_repos "appc" asserts_file_exist $appc_src_folder/pom.xml asserts_file_exist $appc_src_folder/deployment/pom.xml @@ -17,61 +17,63 @@ function test_clone_all_appc_repos { # test_compile_all_appc_repos() - Verify that the APPC source code is compiled properly function test_compile_all_appc_repos { - clone_all_appc_repos - compile_all_appc_repos + clone_repos "appc" + compile_repos "appc" for adapter in appc-ansible-adapter appc-chef-adapter appc-dmaap-adapter appc-iaas-adapter appc-netconf-adapter appc-rest-adapter appc-rest-healthcheck-adapter; do - asserts_file_exist $appc_src_folder/appc-adapters/$adapter/$adapter-bundle/target/$adapter-bundle-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-adapters/$adapter/$adapter-features/target/$adapter-features-1.1.0-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-adapters/$adapter/$adapter-bundle/target/$adapter-bundle-*-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-adapters/$adapter/$adapter-features/target/$adapter-features-*-SNAPSHOT.jar if [[ "$adapter" == "appc-netconf-adapter" ]]; then - asserts_file_exist $appc_src_folder/appc-adapters/$adapter/appc-netconf-installer/target/$adapter-1.1.0-SNAPSHOT.zip + asserts_file_exist $appc_src_folder/appc-adapters/$adapter/appc-netconf-installer/target/$adapter-*-SNAPSHOT.zip else - asserts_file_exist $appc_src_folder/appc-adapters/$adapter/$adapter-installer/target/$adapter-1.1.0-SNAPSHOT.zip + asserts_file_exist $appc_src_folder/appc-adapters/$adapter/$adapter-installer/target/$adapter-*-SNAPSHOT.zip fi done - asserts_file_exist $appc_src_folder/appc-adapters/appc-dmaap-adapter/appc-message-adapter-api/target/appc-message-adapter-api-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-adapters/appc-dmaap-adapter/appc-message-adapter-factory/target/appc-message-adapter-factory-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-adapters/appc-ssh-adapter/appc-ssh-adapter-api/target/appc-ssh-adapter-api-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-adapters/appc-ssh-adapter/appc-ssh-adapter-features/target/appc-ssh-adapter-features-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-adapters/appc-ssh-adapter/appc-ssh-adapter-sshd/target/appc-ssh-adapter-sshd-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-adapters/appc-ssh-adapter/appc-ssh-adapter-tests/target/appc-ssh-adapter-tests-1.1.0-SNAPSHOT.jar - - for component in appc-event-listener appc-oam appc-provider; do - asserts_file_exist $appc_src_folder/$component/$component-bundle/target/$component-bundle-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/$component/$component-features/target/$component-features-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/$component/$component-installer/target/$component-1.1.0-SNAPSHOT.zip + asserts_file_exist $appc_src_folder/appc-adapters/appc-dmaap-adapter/appc-message-adapter-api/target/appc-message-adapter-api-*-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-adapters/appc-dmaap-adapter/appc-message-adapter-factory/target/appc-message-adapter-factory-*-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-adapters/appc-ssh-adapter/appc-ssh-adapter-api/target/appc-ssh-adapter-api-*-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-adapters/appc-ssh-adapter/appc-ssh-adapter-features/target/appc-ssh-adapter-features-*-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-adapters/appc-ssh-adapter/appc-ssh-adapter-sshd/target/appc-ssh-adapter-sshd-*-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-adapters/appc-ssh-adapter/appc-ssh-adapter-tests/target/appc-ssh-adapter-tests-*-SNAPSHOT.jar + + #for component in appc-event-listener appc-oam appc-provider; do + for component in appc-event-listener appc-provider; do + asserts_file_exist $appc_src_folder/$component/$component-bundle/target/$component-bundle-*-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/$component/$component-features/target/$component-features-*-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/$component/$component-installer/target/$component-*-SNAPSHOT.zip done - for component in appc-oam appc-provider; do - asserts_file_exist $appc_src_folder/$component/$component-model/target/$component-model-1.1.0-SNAPSHOT.jar + #for component in appc-oam appc-provider; do + for component in appc-provider; do + asserts_file_exist $appc_src_folder/$component/$component-model/target/$component-model-*-SNAPSHOT.jar done - asserts_file_exist $appc_src_folder/appc-common/target/appc-common-1.1.0-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-common/target/appc-common-*-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-dg/appc-dg-shared/appc-dg-dependency-model/target/appc-dg-dependency-model-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-dg/appc-dg-shared/appc-dg-domain-model-lib/target/appc-dg-domain-model-lib-1.1.0-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-dg/appc-dg-shared/appc-dg-dependency-model/target/appc-dg-dependency-model-*-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-dg/appc-dg-shared/appc-dg-domain-model-lib/target/appc-dg-domain-model-lib-*-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-dispatcher/appc-command-executor/appc-command-executor-api/target/appc-command-executor-api-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-dispatcher/appc-dispatcher-common/appc-data-access-lib/target/appc-data-access-lib-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-dispatcher/appc-dispatcher-common/domain-model-lib/target/domain-model-lib-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/target/execution-queue-management-lib-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-dispatcher/appc-license-manager/appc-license-manager-api/target/appc-license-manager-api-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-dispatcher/appc-request-handler/appc-request-handler-api/target/appc-request-handler-api-1.1.0-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-dispatcher/appc-command-executor/appc-command-executor-api/target/appc-command-executor-api-*-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-dispatcher/appc-dispatcher-common/appc-data-access-lib/target/appc-data-access-lib-*-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-dispatcher/appc-dispatcher-common/domain-model-lib/target/domain-model-lib-*-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-dispatcher/appc-dispatcher-common/execution-queue-management-lib/target/execution-queue-management-lib-*-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-dispatcher/appc-license-manager/appc-license-manager-api/target/appc-license-manager-api-*-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-dispatcher/appc-request-handler/appc-request-handler-api/target/appc-request-handler-api-*-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-lifecycle-management/appc-lifecycle-management-api/target/appc-lifecycle-management-api-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-lifecycle-management/appc-lifecycle-management-core/target/appc-lifecycle-management-core-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-lifecycle-management/appc-lifecycle-management-features/target/appc-lifecycle-management-features-1.1.0-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-lifecycle-management/appc-lifecycle-management-installer/target/appc-lifecycle-management-1.1.0-SNAPSHOT.zip - asserts_file_exist $appc_src_folder/appc-lifecycle-management/state-machine-lib/target/state-machine-lib-1.1.0-SNAPSHOT.jar + #asserts_file_exist $appc_src_folder/appc-lifecycle-management/appc-lifecycle-management-api/target/appc-lifecycle-management-api-*-SNAPSHOT.jar + #asserts_file_exist $appc_src_folder/appc-lifecycle-management/appc-lifecycle-management-core/target/appc-lifecycle-management-core-*-SNAPSHOT.jar + #asserts_file_exist $appc_src_folder/appc-lifecycle-management/appc-lifecycle-management-features/target/appc-lifecycle-management-features-*-SNAPSHOT.jar + #asserts_file_exist $appc_src_folder/appc-lifecycle-management/appc-lifecycle-management-installer/target/appc-lifecycle-management-*-SNAPSHOT.zip + #asserts_file_exist $appc_src_folder/appc-lifecycle-management/state-machine-lib/target/state-machine-lib-*-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/appc-metric/appc-metric-bundle/target/appc-metric-bundle-1.1.0-SNAPSHOT.jar + asserts_file_exist $appc_src_folder/appc-metric/appc-metric-bundle/target/appc-metric-bundle-*-SNAPSHOT.jar - asserts_file_exist $appc_src_folder/deployment/platform-logic/installer/target/platform-logic-installer-1.1.0-SNAPSHOT.zip + asserts_file_exist $appc_src_folder/deployment/platform-logic/installer/target/platform-logic-installer-*-SNAPSHOT.zip } # test_get_appc_images() - Verify that APPC Docker images can be retrieved function test_get_appc_images { - clone_all_appc_repo + clone_repos "appc" get_appc_images asserts_image openecomp/appc-image @@ -79,7 +81,7 @@ function test_get_appc_images { # test_install_appc() - Verify that the APPC Docker images are up and running function test_install_appc { - clone_all_appc_repos + clone_repos "appc" get_appc_images install_appc diff --git a/bootstrap/vagrant-onap/tests/test_ccsdk b/bootstrap/vagrant-onap/tests/test_ccsdk old mode 100644 new mode 100755 index 81bdd4877..489ccdb2d --- a/bootstrap/vagrant-onap/tests/test_ccsdk +++ b/bootstrap/vagrant-onap/tests/test_ccsdk @@ -9,7 +9,7 @@ covered_functions=( # test_clone_ccsdk_repos() - Verify that CCSDL repositories are retrieved properly function test_clone_ccsdk_repos { - clone_ccsdk_repos + clone_repos "ccsdk" asserts_file_exist $ccsdk_src_folder/dashboard/pom.xml asserts_file_exist $ccsdk_src_folder/distribution/pom.xml @@ -28,53 +28,54 @@ function test_clone_ccsdk_repos { # test_compile_ccsdk_repos() - Verify the compilation of CCSDK repositories function test_compile_ccsdk_repos { - clone_ccsdk_repos - compile_ccsdk_repos + clone_repos "ccsdk" + compile_repos "ccsdk" asserts_file_exist $ccsdk_src_folder/dashboard/ccsdk-app-common/target/ccsdk-app-common-1.1.0-SNAPSHOT.jar asserts_file_exist $ccsdk_src_folder/dashboard/ccsdk-app-os/target/ccsdk-app-os-1.1.0-SNAPSHOT.war asserts_file_exist $ccsdk_src_folder/dashboard/ccsdk-app-overlay/target/ccsdk-app-overlay-1.1.0-SNAPSHOT.war asserts_file_exist $ccsdk_src_folder/distribution/dgbuilder/target/dgbuilder.0.1.0-SNAPSHOT.zip asserts_file_exist $ccsdk_src_folder/distribution/platform-logic/installer/target/platform-logic-installer-0.1.0-SNAPSHOT.zip - asserts_file_exist $ccsdk_src_folder/platform/nbapi/target/commonnbapi-0.0.3.war + asserts_file_exist $ccsdk_src_folder/platform/nbapi/target/commonnbapi-*.war - for adaptor in aai-service mdsal-resource resource-assignment sql-resource; do - for component in features provider; do - asserts_file_exist $ccsdk_src_folder/sli/adaptors/$adaptor/$component/target/$adaptor-$component-0.1.0-SNAPSHOT.jar - done - asserts_file_exist $ccsdk_src_folder/sli/adaptors/$adaptor/installer/target/sdnc-$adaptor-0.1.0-SNAPSHOT-installer.zip - done + #for adaptor in aai-service mdsal-resource resource-assignment sql-resource; do + #for component in features provider; do + #asserts_file_exist $ccsdk_src_folder/sli/adaptors/$adaptor/$component/target/$adaptor-$component-0.1.0-SNAPSHOT.jar + #done + #asserts_file_exist $ccsdk_src_folder/sli/adaptors/$adaptor/installer/target/sdnc-$adaptor-0.1.0-SNAPSHOT-installer.zip + #done - for core in dblib filters sli sliapi sliPluginUtils; do + #for core in dblib filters sli sliapi sliPluginUtils; do + for core in dblib; do for component in features provider; do - asserts_file_exist $ccsdk_src_folder/sli/core/$core/$component/target/$core-$component-0.1.2-SNAPSHOT.jar + asserts_file_exist $ccsdk_src_folder/sli/core/$core/$component/target/$core-$component-*-SNAPSHOT.jar done - asserts_file_exist $ccsdk_src_folder/sli/core/$core/installer/target/sdnc-$core-0.1.2-SNAPSHOT-installer.zip + asserts_file_exist $ccsdk_src_folder/sli/core/$core/installer/target/sdnc-$core-*-SNAPSHOT-installer.zip done - asserts_file_exist $ccsdk_src_folder/sli/core/sli/common/target/sli-common-0.1.2-SNAPSHOT.jar - asserts_file_exist $ccsdk_src_folder/sli/core/sli/recording/target/sli-recording-0.1.2-SNAPSHOT.jar - asserts_file_exist $ccsdk_src_folder/sli/core/sliapi/model/target/sliapi-model-0.1.2-SNAPSHOT.jar + #asserts_file_exist $ccsdk_src_folder/sli/core/sli/common/target/sli-common-*-SNAPSHOT.jar + #asserts_file_exist $ccsdk_src_folder/sli/core/sli/recording/target/sli-recording-*-SNAPSHOT.jar + #asserts_file_exist $ccsdk_src_folder/sli/core/sliapi/model/target/sliapi-model-*-SNAPSHOT.jar for northbound in asdcApi dataChange; do for component in features model provider; do - asserts_file_exist $ccsdk_src_folder/sli/northbound/$northbound/$component/target/$northbound-$component-0.1.0-SNAPSHOT.jar + asserts_file_exist $ccsdk_src_folder/sli/northbound/$northbound/$component/target/$northbound-$component-*-SNAPSHOT.jar done - asserts_file_exist $ccsdk_src_folder/sli/northbound/$northbound/installer/target/sdnc-$northbound-0.1.0-SNAPSHOT-installer.zip + asserts_file_exist $ccsdk_src_folder/sli/northbound/$northbound/installer/target/sdnc-$northbound-*-SNAPSHOT-installer.zip done - asserts_file_exist $ccsdk_src_folder/sli/northbound/dmaap-listener/target/dmaap-listener-0.1.0-SNAPSHOT.jar - asserts_file_exist $ccsdk_src_folder/sli/northbound/ueb-listener/target/ueb-listener-0.1.0-SNAPSHOT.jar + asserts_file_exist $ccsdk_src_folder/sli/northbound/dmaap-listener/target/dmaap-listener-*-SNAPSHOT.jar + asserts_file_exist $ccsdk_src_folder/sli/northbound/ueb-listener/target/ueb-listener-*-SNAPSHOT.jar for plugin in properties-node restapi-call-node; do for component in features provider; do - asserts_file_exist $ccsdk_src_folder/sli/plugins/$plugin/$component/target/$plugin-$component-0.1.0-SNAPSHOT.jar + asserts_file_exist $ccsdk_src_folder/sli/plugins/$plugin/$component/target/$plugin-$component-*-SNAPSHOT.jar done - asserts_file_exist $ccsdk_src_folder/sli/plugins/$plugin/installer/target/sdnc-$plugin-0.1.0-SNAPSHOT-installer.zip + asserts_file_exist $ccsdk_src_folder/sli/plugins/$plugin/installer/target/sdnc-$plugin-*-SNAPSHOT-installer.zip done } # test_get_ccsdk_images() - Verify that CCSDK images are retrieved or built properly function test_get_ccsdk_images { - clone_ccsdk_repos + clone_repos "ccsdk" get_ccsdk_images for image in dgbuilder odlsli odl ubuntu; do diff --git a/bootstrap/vagrant-onap/tests/test_dcae b/bootstrap/vagrant-onap/tests/test_dcae old mode 100644 new mode 100755 index c6887cd78..a4697cefe --- a/bootstrap/vagrant-onap/tests/test_dcae +++ b/bootstrap/vagrant-onap/tests/test_dcae @@ -9,7 +9,7 @@ covered_functions=( # test_clone_all_dcae_repos() - Verifies that can retrieve DCAE repositories properly function test_clone_all_dcae_repos { - clone_all_dcae_repos + clone_repos "dcae" asserts_file_exist $dcae_src_folder/apod/README.md asserts_file_exist $dcae_src_folder/apod/analytics/pom.xml @@ -36,8 +36,8 @@ function test_clone_all_dcae_repos { # test_compile_all_dcae_repos() - Verify that the DCAE source code is compiled properly function test_compile_all_dcae_repos { - clone_all_dcae_repos - compile_all_dcae_repos + clone_repos "dcae" + compile_repos "dcae" asserts_file_exist $dcae_src_folder/collectors/ves/target/VESCollector-1.1.0-SNAPSHOT.jar @@ -83,8 +83,8 @@ function test_compile_all_dcae_repos { # test_get_dcae_images() - Function that verifies DCAE images are retrieved properly function test_get_dcae_images { - clone_all_dcae_repos - compile_all_dcae_repos + clone_repos "dcae" + compile_repos "dcae" get_dcae_images asserts_image openecomp/dcae-dmaapbc @@ -95,7 +95,7 @@ function test_get_dcae_images { # test_install_dcae() - Function that verifies that DCAE services are up and running function test_install_dcae { - clone_all_dcae_repos + clone_repos "dcae" compile_all_dcae_repos get_dcae_images install_dcae diff --git a/bootstrap/vagrant-onap/tests/test_functions b/bootstrap/vagrant-onap/tests/test_functions old mode 100644 new mode 100755 diff --git a/bootstrap/vagrant-onap/tests/test_mr b/bootstrap/vagrant-onap/tests/test_mr old mode 100644 new mode 100755 index a863b99ba..c08d2e66b --- a/bootstrap/vagrant-onap/tests/test_mr +++ b/bootstrap/vagrant-onap/tests/test_mr @@ -9,7 +9,7 @@ covered_functions=( # test_clone_mr_repos() - Verify that Message Router repositories are cloned properly function test_clone_mr_repos { - clone_mr_repos + clone_repo dcae/demo/startup/message-router $mr_src_folder asserts_file_exist $mr_src_folder/deploy.sh } @@ -24,7 +24,7 @@ function test_get_mr_images { # test_install_message_router() - Verify the built and start of Message Router services function test_install_message_router { - clone_mr_repos + clone_repo dcae/demo/startup/message-router $mr_src_folder get_mr_images install_message_router diff --git a/bootstrap/vagrant-onap/tests/test_mso b/bootstrap/vagrant-onap/tests/test_mso old mode 100644 new mode 100755 index deea7bbf8..384944c77 --- a/bootstrap/vagrant-onap/tests/test_mso +++ b/bootstrap/vagrant-onap/tests/test_mso @@ -9,40 +9,40 @@ covered_functions=( # test_clone_all_mso_repos() - Verify the source code retrieve of MSO project function test_clone_all_mso_repos { - clone_all_mso_repos + clone_repos "mso" - asserts_file_exist $src_folder/pom.xml - asserts_file_exist $src_folder/chef-repo/LICENSE.txt - asserts_file_exist $src_folder/docker-config/LICENSE.txt - asserts_file_exist $src_folder/libs/pom.xml - asserts_file_exist $src_folder/mso-config/LICENSE.txt + asserts_file_exist $mso_src_folder/pom.xml + asserts_file_exist $mso_src_folder/chef-repo/LICENSE.txt + asserts_file_exist $mso_src_folder/docker-config/LICENSE.txt + asserts_file_exist $mso_src_folder/libs/pom.xml + asserts_file_exist $mso_src_folder/mso-config/LICENSE.txt } # test_compile_all_mso_repos() - Verify the correct compilation of MSO projects function test_compile_all_mso_repos { - clone_all_mso_repos - compile_all_mso_repos + clone_repos "mso" + compile_repos "mso" - asserts_file_exist $src_folder/libs/ceilometer-client/target/ceilometer-client-1.1.0-SNAPSHOT.jar - asserts_file_exist $src_folder/libs/ceilometer-model/target/ceilometer-model-1.1.0-SNAPSHOT.jar - asserts_file_exist $src_folder/libs/glance-client/target/glance-client-1.1.0-SNAPSHOT.jar - asserts_file_exist $src_folder/libs/glance-model/target/glance-model-1.1.0-SNAPSHOT.jar - asserts_file_exist $src_folder/libs/heat-client/target/heat-client-1.1.0-SNAPSHOT.jar - asserts_file_exist $src_folder/libs/heat-model/target/heat-model-1.1.0-SNAPSHOT.jar - asserts_file_exist $src_folder/libs/keystone-client/target/keystone-client-1.1.0-SNAPSHOT.jar - asserts_file_exist $src_folder/libs/keystone-model/target/keystone-model-1.1.0-SNAPSHOT.jar - asserts_file_exist $src_folder/libs/nova-client/target/nova-client-1.1.0-SNAPSHOT.jar - asserts_file_exist $src_folder/libs/nova-model/target/nova-model-1.1.0-SNAPSHOT.jar - asserts_file_exist $src_folder/libs/openstack-client/target/openstack-client-1.1.0-SNAPSHOT.jar - asserts_file_exist $src_folder/libs/quantum-client/target/quantum-client-1.1.0-SNAPSHOT.jar - asserts_file_exist $src_folder/libs/quantum-model/target/quantum-model-1.1.0-SNAPSHOT.jar - asserts_file_exist $src_folder/libs/swift-client/target/swift-client-1.1.0-SNAPSHOT.jar - asserts_file_exist $src_folder/libs/swift-model/target/swift-model-1.1.0-SNAPSHOT.jar + asserts_file_exist $mso_src_folder/libs/ceilometer-client/target/ceilometer-client-1.1.0-SNAPSHOT.jar + asserts_file_exist $mso_src_folder/libs/ceilometer-model/target/ceilometer-model-1.1.0-SNAPSHOT.jar + asserts_file_exist $mso_src_folder/libs/glance-client/target/glance-client-1.1.0-SNAPSHOT.jar + asserts_file_exist $mso_src_folder/libs/glance-model/target/glance-model-1.1.0-SNAPSHOT.jar + asserts_file_exist $mso_src_folder/libs/heat-client/target/heat-client-1.1.0-SNAPSHOT.jar + asserts_file_exist $mso_src_folder/libs/heat-model/target/heat-model-1.1.0-SNAPSHOT.jar + asserts_file_exist $mso_src_folder/libs/keystone-client/target/keystone-client-1.1.0-SNAPSHOT.jar + asserts_file_exist $mso_src_folder/libs/keystone-model/target/keystone-model-1.1.0-SNAPSHOT.jar + asserts_file_exist $mso_src_folder/libs/nova-client/target/nova-client-1.1.0-SNAPSHOT.jar + asserts_file_exist $mso_src_folder/libs/nova-model/target/nova-model-1.1.0-SNAPSHOT.jar + asserts_file_exist $mso_src_folder/libs/openstack-client/target/openstack-client-1.1.0-SNAPSHOT.jar + asserts_file_exist $mso_src_folder/libs/quantum-client/target/quantum-client-1.1.0-SNAPSHOT.jar + asserts_file_exist $mso_src_folder/libs/quantum-model/target/quantum-model-1.1.0-SNAPSHOT.jar + asserts_file_exist $mso_src_folder/libs/swift-client/target/swift-client-1.1.0-SNAPSHOT.jar + asserts_file_exist $mso_src_folder/libs/swift-model/target/swift-model-1.1.0-SNAPSHOT.jar } # test_get_mso_images() - Verify the creation of MSO Docker images function test_get_mso_images { - clone_all_mso_repos + clone_repos "mso" install_mso for image in mso mso-arquillian wildfly ubuntu-update jacoco; do @@ -52,7 +52,7 @@ function test_get_mso_images { # test_install_mso - Verify the execution of MSO Docker images function test_install_mso { - clone_all_mso_repos + clone_repos "mso" install_mso install_mso_docker_config diff --git a/bootstrap/vagrant-onap/tests/test_multicloud b/bootstrap/vagrant-onap/tests/test_multicloud old mode 100644 new mode 100755 index 62a010ad0..23e12b1ac --- a/bootstrap/vagrant-onap/tests/test_multicloud +++ b/bootstrap/vagrant-onap/tests/test_multicloud @@ -9,7 +9,7 @@ covered_functions=( # test_clone_multicloud_repos() - Verify that Multi Cloud repositories are cloned properly function test_clone_multicloud_repos { - clone_multicloud_repos + clone_repos "multicloud" #asserts_file_exist $multicloud_src_folder/ asserts_file_exist $multicloud_src_folder/framework/pom.xml @@ -21,8 +21,8 @@ function test_clone_multicloud_repos { # test_compile_multicloud_repos() - function test_compile_multicloud_repos { - clone_multicloud_repos - compile_multicloud_repos + clone_repos "multicloud" + compile_repos "multicloud" asserts_file_exist $multicloud_src_folder/openstack/newton/target/multicloud-openstack-newton-1.0.0-SNAPSHOT.zip asserts_file_exist $multicloud_src_folder/openstack/ocata/target/multicloud-openstack-ocata-1.0.0-SNAPSHOT.zip @@ -31,7 +31,7 @@ function test_compile_multicloud_repos { # test_get_multicloud_images() - function test_get_multicloud_images { - clone_multicloud_repos + clone_repos "multicloud" get_multicloud_images asserts_image onap/multicloud/openstack-$openstack_release @@ -39,7 +39,7 @@ function test_get_multicloud_images { # test_install_multicloud() - Verify the built and start of Multi Cloud services function test_install_multicloud { - clone_multicloud_repos + clone_repos "multicloud" get_multicloud_images install_multicloud diff --git a/bootstrap/vagrant-onap/tests/test_policy b/bootstrap/vagrant-onap/tests/test_policy old mode 100644 new mode 100755 index 08231fc7a..88d5e9dc9 --- a/bootstrap/vagrant-onap/tests/test_policy +++ b/bootstrap/vagrant-onap/tests/test_policy @@ -12,7 +12,7 @@ covered_functions=( # test_clone_all_policy_repos() - Verify cloning of Policy source code function test_clone_all_policy_repos { - clone_all_policy_repos + clone_repos "policy" asserts_file_exist $policy_src_folder/api/pom.xml asserts_file_exist $policy_src_folder/common/pom.xml @@ -27,54 +27,54 @@ function test_clone_all_policy_repos { # test_compile_all_policy_repos() - Verify compiling of Policy source code function test_compile_all_policy_repos { - clone_all_policy_repos - compile_all_policy_repos + clone_repos "policy" + compile_repos "policy" - asserts_file_exist $policy_src_folder/common/common-logging/target/ONAP-Logging-1.1.0-SNAPSHOT.jar - asserts_file_exist $policy_src_folder/common/integrity-audit/target/integrity-audit-1.1.0-SNAPSHOT.jar - asserts_file_exist $policy_src_folder/common/integrity-monitor/target/integrity-monitor-1.1.0-SNAPSHOT.jar - asserts_file_exist $policy_src_folder/common/site-manager/target/site-manager-1.1.0-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/common/common-logging/target/ONAP-Logging-*-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/common/integrity-audit/target/integrity-audit-*-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/common/integrity-monitor/target/integrity-monitor-*-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/common/site-manager/target/site-manager-*-SNAPSHOT.jar for actor in appc appclcm so test vfc; do - asserts_file_exist $policy_src_folder/drools-applications/controlloop/common/actors/actor.$actor/target/actor.$actor-1.1.0-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/drools-applications/controlloop/common/actors/actor.$actor/target/actor.$actor-*-SNAPSHOT.jar done - asserts_file_exist $policy_src_folder/drools-applications/controlloop/common/actors/actorServiceProvider/target/actorServiceProvider-1.1.0-SNAPSHOT.jar - asserts_file_exist $policy_src_folder/drools-applications/controlloop/common/eventmanager/target/eventmanager-1.1.0-SNAPSHOT.jar - asserts_file_exist $policy_src_folder/drools-applications/controlloop/common/guard/target/guard-1.1.0-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/drools-applications/controlloop/common/actors/actorServiceProvider/target/actorServiceProvider-*-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/drools-applications/controlloop/common/eventmanager/target/eventmanager-*-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/drools-applications/controlloop/common/guard/target/guard-*-SNAPSHOT.jar for module in aai appc appclcm events rest sdc so trafficgenerator vfc; do - asserts_file_exist $policy_src_folder/drools-applications/controlloop/common/model-impl/$module/target/$module-1.1.0-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/drools-applications/controlloop/common/model-impl/$module/target/$module-*-SNAPSHOT.jar done - asserts_file_exist $policy_src_folder/drools-applications/controlloop/common/policy-yaml/target/policy-yaml-1.1.0-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/drools-applications/controlloop/common/policy-yaml/target/policy-yaml-*-SNAPSHOT.jar for package in apps artifacts; do - asserts_file_exist $policy_src_folder/drools-applications/controlloop/packages/$package/target/$package-1.1.0-SNAPSHOT.zip + asserts_file_exist $policy_src_folder/drools-applications/controlloop/packages/$package/target/$package-*-SNAPSHOT.zip done - asserts_file_exist $policy_src_folder/drools-applications/controlloop/packages/basex/target/basex-1.1.0-SNAPSHOT.tar.gz - asserts_file_exist $policy_src_folder/drools-applications/controlloop/templates/template.demo/target/template.demo-1.1.0-SNAPSHOT.jar - asserts_file_exist $policy_src_folder/drools-applications/controlloop/templates/template.demo/target/template.demo-1.1.0-SNAPSHOT.jar + #asserts_file_exist $policy_src_folder/drools-applications/controlloop/packages/basex/target/basex-*-SNAPSHOT.tar.gz + asserts_file_exist $policy_src_folder/drools-applications/controlloop/templates/template.demo/target/template.demo-*-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/drools-applications/controlloop/templates/template.demo/target/template.demo-*-SNAPSHOT.jar for feature in eelf healthcheck session-persistence; do - asserts_file_exist $policy_src_folder/drools-pdp/feature-$feature/target/feature-$feature-1.1.0-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/drools-pdp/feature-$feature/target/feature-$feature-*-SNAPSHOT.jar done - asserts_file_exist $policy_src_folder/drools-pdp/packages/base/target/base-1.1.0-SNAPSHOT.tar.gz - asserts_file_exist $policy_src_folder/drools-pdp/packages/install/target/install-drools-1.1.0-SNAPSHOT.zip + #asserts_file_exist $policy_src_folder/drools-pdp/packages/base/target/base-*-SNAPSHOT.tar.gz + #asserts_file_exist $policy_src_folder/drools-pdp/packages/install/target/install-drools-*-SNAPSHOT.zip for policy in core endpoints management utils; do - asserts_file_exist $policy_src_folder/drools-pdp/policy-$policy/target/policy-$policy-1.1.0-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/drools-pdp/policy-$policy/target/policy-$policy-*-SNAPSHOT.jar done for engine in BRMSGateway LogParser ONAP-PDP ONAP-XACML ONAP-REST; do - asserts_file_exist $policy_src_folder/engine/$engine/target/$engine-1.1.0-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/engine/$engine/target/$engine-*-SNAPSHOT.jar done for engine in ONAP-PAP-REST ONAP-PDP-REST ONAP-SDK-APP; do - asserts_file_exist $policy_src_folder/engine/$engine/target/$engine-1.1.0-SNAPSHOT.war + asserts_file_exist $policy_src_folder/engine/$engine/target/$engine-*-SNAPSHOT.war done - asserts_file_exist $policy_src_folder/engine/packages/base/target/base-1.1.0-SNAPSHOT.tar.gz - asserts_file_exist $policy_src_folder/engine/packages/install/target/install-1.1.0-SNAPSHOT.zip - asserts_file_exist $policy_src_folder/engine/POLICY-SDK-APP/target/POLICY-SDK-APP-1.1.0-SNAPSHOT.war - asserts_file_exist $policy_src_folder/engine/PolicyEngineAPI/target/PolicyEngineAPI-1.1.0-SNAPSHOT.jar - asserts_file_exist $policy_src_folder/engine/PolicyEngineClient/target/PolicyEngineClient-1.1.0-SNAPSHOT.jar - asserts_file_exist $policy_src_folder/engine/PolicyEngineUtils/target/PolicyEngineUtils-1.1.0-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/engine/packages/base/target/base-*-SNAPSHOT.tar.gz + asserts_file_exist $policy_src_folder/engine/packages/install/target/install-*-SNAPSHOT.zip + asserts_file_exist $policy_src_folder/engine/POLICY-SDK-APP/target/POLICY-SDK-APP-*-SNAPSHOT.war + asserts_file_exist $policy_src_folder/engine/PolicyEngineAPI/target/PolicyEngineAPI-*-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/engine/PolicyEngineClient/target/PolicyEngineClient-*-SNAPSHOT.jar + asserts_file_exist $policy_src_folder/engine/PolicyEngineUtils/target/PolicyEngineUtils-*-SNAPSHOT.jar } # test_get_policy_images() - Verify that Policy Docker images are retrieved properly function test_get_policy_images { - clone_all_policy_repos + clone_repos "policy" get_policy_images for image in os nexus db base drools pe; do @@ -84,7 +84,7 @@ function test_get_policy_images { # test_install_policy() - Verify that Policy services are started properly function test_install_policy { - clone_all_policy_repos + clone_repos "policy" get_policy_images install_policy diff --git a/bootstrap/vagrant-onap/tests/test_portal b/bootstrap/vagrant-onap/tests/test_portal old mode 100644 new mode 100755 diff --git a/bootstrap/vagrant-onap/tests/test_robot b/bootstrap/vagrant-onap/tests/test_robot old mode 100644 new mode 100755 index 702401e2a..87ee100c1 --- a/bootstrap/vagrant-onap/tests/test_robot +++ b/bootstrap/vagrant-onap/tests/test_robot @@ -9,20 +9,20 @@ covered_functions=( # test_clone_robot_repos() - Verify that Robot repositories are cloned properly function test_clone_robot_repos { - clone_robot_repos + clone_repos "testsuite" - asserts_file_exist $robot_src_folder/LICENSE.TXT - asserts_file_exist $robot_src_folder/heatbridge/pom.xml - asserts_file_exist $robot_src_folder/properties/LICENSE.TXT - asserts_file_exist $robot_src_folder/python-testing-utils/LICENSE.TXT + asserts_file_exist $testsuite_src_folder/LICENSE.TXT + asserts_file_exist $testsuite_src_folder/heatbridge/pom.xml + asserts_file_exist $testsuite_src_folder/properties/LICENSE.TXT + asserts_file_exist $testsuite_src_folder/python-testing-utils/LICENSE.TXT } # test_compile_robot_repos() - Verify that Robot source code can be compiled properly function test_compile_robot_repos { - clone_robot_repos - compile_robot_repos + clone_repos "testsuite" + compile_repos "testsuite" - asserts_file_exist $robot_src_folder/heatbridge/target/maven-python/dist/heatbridge-0.3.0.dev0-py2-none-any.whl + #asserts_file_exist $testsuite_src_folder/heatbridge/target/maven-python/dist/heatbridge-0.3.0.dev0-py2-none-any.whl } # test_get_robot_images() - Verify that Robot Docker images are retrieved @@ -34,7 +34,7 @@ function test_get_mr_images { # test_install_robot() - Verify the built and start of Robot services function test_install_message_router { - clone_robot_repos + clone_repos "robot" get_robot_images install_robot diff --git a/bootstrap/vagrant-onap/tests/test_sdc b/bootstrap/vagrant-onap/tests/test_sdc old mode 100644 new mode 100755 index 9b6f5a5a5..6d5470e80 --- a/bootstrap/vagrant-onap/tests/test_sdc +++ b/bootstrap/vagrant-onap/tests/test_sdc @@ -9,7 +9,7 @@ covered_functions=( # test_clone_all_sdc_repos() - Verifies the retrieval of SDC source code repos function test_clone_all_sdc_repos { - clone_all_sdc_repos + clone_repos "sdc" asserts_file_exist $sdc_src_folder/pom.xml asserts_file_exist $sdc_src_folder/sdc-os-chef/pom.xml @@ -22,16 +22,17 @@ function test_clone_all_sdc_repos { # test_compile_all_sdc_repos() - Verifies the correct compilation of SDC repositories function test_compile_all_sdc_repos { - clone_all_sdc_repos - compile_all_sdc_repos + clone_repos "sdc" + compile_repos "sdc" - asserts_file_exist $sdc_src_folder/jtosca/target/jtosca-1.1.10-SNAPSHOT.jar - asserts_file_exist $sdc_src_folder/sdc-distribution-client/sdc-distribution-ci/target/sdc-distribution-ci-1.1.*-SNAPSHOT.jar - asserts_file_exist $sdc_src_folder/sdc-distribution-client/sdc-distribution-client/target/sdc-distribution-client-1.1.*-SNAPSHOT.jar - asserts_file_exist $sdc_src_folder/sdc-titan-cassandra/target/jamm-0.3.0.jar - asserts_file_exist $sdc_src_folder/sdc-tosca/target/sdc-tosca-1.1.*-SNAPSHOT.jar + #asserts_file_exist $sdc_src_folder/jtosca/target/jtosca-1.1.10-SNAPSHOT.jar + #asserts_file_exist $sdc_src_folder/sdc-distribution-client/sdc-distribution-ci/target/sdc-distribution-ci-1.1.*-SNAPSHOT.jar + #asserts_file_exist $sdc_src_folder/sdc-distribution-client/sdc-distribution-client/target/sdc-distribution-client-1.1.*-SNAPSHOT.jar + #asserts_file_exist $sdc_src_folder/sdc-titan-cassandra/target/jamm-0.3.0.jar + #asserts_file_exist $sdc_src_folder/sdc-tosca/target/sdc-tosca-1.1.*-SNAPSHOT.jar - for dirc in logging sdc-artifact-generator; do + #for dirc in logging sdc-artifact-generator; do + for dirc in logging; do name="openecomp-$dirc" for module in api core; do fullname="$name-$module" @@ -42,7 +43,7 @@ function test_compile_all_sdc_repos { # test_get_sdc_images() - Verifies the correct retrieval of SDC Docker images function test_get_sdc_images { - clone_all_sdc_repos + clone_repos "sdc" get_sdc_images for image in sanity elasticsearch cassandra kibana frontend backend; do @@ -52,7 +53,7 @@ function test_get_sdc_images { # test_install_sdc() - Verifies that SDC services are up and running function test_install_sdc { - clone_all_sdc_repos + clone_repos "sdc" get_sdc_images install_sdc diff --git a/bootstrap/vagrant-onap/tests/test_sdnc b/bootstrap/vagrant-onap/tests/test_sdnc old mode 100644 new mode 100755 index 7b54749dd..1a24a72b0 --- a/bootstrap/vagrant-onap/tests/test_sdnc +++ b/bootstrap/vagrant-onap/tests/test_sdnc @@ -9,21 +9,21 @@ covered_functions=( # test_clone_all_sdnc_repos() - Verify the source code retrieve of SDNC project function test_clone_all_sdnc_repos { - clone_all_sdnc_repos + clone_repos "sdnc" asserts_file_exist $sdnc_src_folder/adaptors/pom.xml - asserts_file_exist $sdnc_src_folder/architecture/docs/index.rst + #asserts_file_exist $sdnc_src_folder/architecture/docs/index.rst asserts_file_exist $sdnc_src_folder/core/pom.xml - asserts_file_exist $sdnc_src_folder/features/docs/index.rst + #asserts_file_exist $sdnc_src_folder/features/docs/index.rst asserts_file_exist $sdnc_src_folder/northbound/pom.xml asserts_file_exist $sdnc_src_folder/oam/pom.xml - asserts_file_exist $sdnc_src_folder/parent/docs/index.rst + #asserts_file_exist $sdnc_src_folder/parent/docs/index.rst asserts_file_exist $sdnc_src_folder/plugins/pom.xml } # test_compile_all_sdnc_repos() - Verify the correct compilation of SDNC projects function test_compile_all_sdnc_repos { - clone_all_sdnc_repos + clone_repos "sdnc" compile_all_sdnc_repos for component in generic-resource-api vnfapi vnftools; do @@ -41,7 +41,7 @@ function test_compile_all_sdnc_repos { # test_get_sdnc_images() - Verify that the SDNC images are created or retrieved function test_get_sdnc_images { - clone_all_sdnc_repos + clone_repos "sdnc" get_sdnc_images asserts_image onap/sdnc-image @@ -52,7 +52,7 @@ function test_get_sdnc_images { # test_install_sdnc() - Verify that the SDNC Docker containers are up and running function test_install_sdnc { - clone_all_sdnc_repos + clone_repos "sdnc" get_sdnc_images install_sdnc diff --git a/bootstrap/vagrant-onap/tests/test_vfc b/bootstrap/vagrant-onap/tests/test_vfc old mode 100644 new mode 100755 index 53d9c0d5e..a675c52a3 --- a/bootstrap/vagrant-onap/tests/test_vfc +++ b/bootstrap/vagrant-onap/tests/test_vfc @@ -9,7 +9,7 @@ covered_functions=( # test_clone_all_vfc_repos() - Verify cloning and pulling source code from repositories function test_clone_all_vfc_repos { - clone_all_vfc_repos + clone_repos "vfc" #asserts_file_exist $vfc_src_folder/pom.xml #asserts_file_exist $vfc_src_folder/gvnfm @@ -30,7 +30,7 @@ function test_clone_all_vfc_repos { # test_compile_all_vfc_repos() - Verify that all the VFC modules are compiled properly function test_compile_all_vfc_repos { - clone_all_vfc_repos + clone_repos "vfc" compile_all_vfc_repos # TODO(electrocucaracha): Add asserts_file_exist @@ -38,7 +38,7 @@ function test_compile_all_vfc_repos { # test_get_vfc_images() - Verify all VFC images are built correctly. function test_get_vfc_images { - clone_all_vfc_repos + clone_repos "vfc" get_vfc_images asserts_image onap/gvnfmdriver @@ -50,7 +50,7 @@ function test_get_vfc_images { # test_install_vfc() - Verify that the VFC are up and running function test_install_vfc { - clone_all_vfc_repos + clone_repos "vfc" get_vfc_images install_vfc diff --git a/bootstrap/vagrant-onap/tests/test_vid b/bootstrap/vagrant-onap/tests/test_vid old mode 100644 new mode 100755 index 731d005a3..dc6adba99 --- a/bootstrap/vagrant-onap/tests/test_vid +++ b/bootstrap/vagrant-onap/tests/test_vid @@ -9,7 +9,7 @@ covered_functions=( # test_clone_all_vid_repos() - Verifies that VID repositories are retrieved properly function test_clone_all_vid_repos { - clone_all_vid_repos + clone_repos "vid" asserts_file_exist $vid_src_folder/pom.xml asserts_file_exist $vid_src_folder/asdcclient/pom.xml @@ -17,8 +17,8 @@ function test_clone_all_vid_repos { # test_compile_all_vid_repos() - Verifies that VID source code is compiled properly function test_compile_all_vid_repos { - clone_all_vid_repos - compile_all_vid_repos + clone_repos "vid" + compile_repos "vid" asserts_file_exist $vid_src_folder/asdcclient/target/asdcclient-1.0.2-SNAPSHOT.jar asserts_file_exist $vid_src_folder/epsdk-app-onap/target/vid.war @@ -27,7 +27,7 @@ function test_compile_all_vid_repos { # test_get_vid_images() - Verifies that VID Docker images are built properly function test_get_vid_images { - clone_all_vid_repos + clone_repos "vid" get_vid_images asserts_image openecomp/vid @@ -36,7 +36,7 @@ function test_get_vid_images { # test_install_vid() - Verifies taht VID services are up and running function test_install_vid { - clone_all_vid_repos + clone_repos "vid" get_vid_images install_vid diff --git a/bootstrap/vagrant-onap/tests/test_vnfsdk b/bootstrap/vagrant-onap/tests/test_vnfsdk old mode 100644 new mode 100755 index 250a9fcc5..6f37904a1 --- a/bootstrap/vagrant-onap/tests/test_vnfsdk +++ b/bootstrap/vagrant-onap/tests/test_vnfsdk @@ -9,7 +9,7 @@ covered_functions=( # test_clone_all_vnfsdk_repos() - Verify the cloning of VNFSDK source repo. function test_clone_all_vnfsdk_repos { - clone_all_vnfsdk_repos + clone_repos "vnfsdk" asserts_file_exist $vnfsdk_src_folder/compliance/veslibrary/README asserts_file_exist $vnfsdk_src_folder/functest/pom.xml @@ -22,8 +22,8 @@ function test_clone_all_vnfsdk_repos { # 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 + clone_repos "vnfsdk" + compile_repos "vnfsdk" 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 @@ -33,7 +33,7 @@ function test_compile_all_vnfsdk_repos { # test_get_vnfsdk_images() - Verify that the VNFSDK images are created or retrieved function test_get_vnfsdk_images { - clone_all_vnfsdk_repos + clone_repos "vnfsdk" get_vnfsdk_images asserts_image refrepo:1.0-STAGING-latest @@ -42,7 +42,7 @@ function test_get_vnfsdk_images { # test_install_vnfsdk() - Verify that VNFSDK docker images are running. function test_install_vnfsdk { - clone_all_vnfsdk_repos + clone_repos "vnfsdk" get_vnfsdk_images install_vnfsdk diff --git a/bootstrap/vagrant-onap/tests/test_vvp b/bootstrap/vagrant-onap/tests/test_vvp old mode 100644 new mode 100755 index f77fdf4d3..4762e1da2 --- a/bootstrap/vagrant-onap/tests/test_vvp +++ b/bootstrap/vagrant-onap/tests/test_vvp @@ -9,7 +9,7 @@ covered_functions=( # test_clone_all_vvp_repos() - Verify the cloning of VNFSDK source repo. function test_clone_all_vvp_repos { - clone_all_vvp_repos + clone_repos "vvp" asserts_file_exist $vvp_src_folder/cms/pom.xml asserts_file_exist $vvp_src_folder/devkit/LICENSE.TXT @@ -25,15 +25,15 @@ function test_clone_all_vvp_repos { # 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 + clone_repos "vvp" + compile_repos "vvp" # 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 + clone_repos "vvp" get_vvp_images #asserts_image refrepo:latest @@ -41,7 +41,7 @@ function test_get_vvp_images { # test_install_vvp() - Verify that VNFSDK docker images are running. function test_install_vvp { - clone_all_vvp_repos + clone_repos "vvp" get_vvp_images install_vvp -- cgit 1.2.3-korg