Merge "Add VVP integration tests"
diff --git a/bootstrap/vagrant-onap/lib/_composed_functions b/bootstrap/vagrant-onap/lib/_composed_functions
index f464997..9f2d0a1 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 538ad2c..828d4d1 100755
--- a/bootstrap/vagrant-onap/lib/aai
+++ b/bootstrap/vagrant-onap/lib/aai
@@ -51,12 +51,6 @@
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 @@
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 181c73f..14ba3cf 100755
--- a/bootstrap/vagrant-onap/lib/appc
+++ b/bootstrap/vagrant-onap/lib/appc
@@ -6,20 +6,6 @@
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 @@
# 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 3502e01..9f00e9a 100755
--- a/bootstrap/vagrant-onap/lib/ccsdk
+++ b/bootstrap/vagrant-onap/lib/ccsdk
@@ -9,25 +9,9 @@
"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 @@
# 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 7ab32fd..67a43a0 100755
--- a/bootstrap/vagrant-onap/lib/dcae
+++ b/bootstrap/vagrant-onap/lib/dcae
@@ -59,27 +59,10 @@
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 @@
# 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 c4ed3c8..157c910 100755
--- a/bootstrap/vagrant-onap/lib/functions
+++ b/bootstrap/vagrant-onap/lib/functions
@@ -67,6 +67,19 @@
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 @@
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 55096cb..2ffe69e 100755
--- a/bootstrap/vagrant-onap/lib/mr
+++ b/bootstrap/vagrant-onap/lib/mr
@@ -4,11 +4,6 @@
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 @@
# 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 0f29b33..e99bff9 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 @@
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 @@
# 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 2f9e5d8..4031956 100755
--- a/bootstrap/vagrant-onap/lib/multicloud
+++ b/bootstrap/vagrant-onap/lib/multicloud
@@ -8,20 +8,6 @@
"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 @@
# 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 65a65a1..05ad320 100755
--- a/bootstrap/vagrant-onap/lib/policy
+++ b/bootstrap/vagrant-onap/lib/policy
@@ -7,20 +7,6 @@
"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 @@
# 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 6dcdf90..d9b8417 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 @@
# 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 88d1cc0..f99e8b2 100755
--- a/bootstrap/vagrant-onap/lib/sdc
+++ b/bootstrap/vagrant-onap/lib/sdc
@@ -45,20 +45,6 @@
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 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 a69ce18..05165b1 100755
--- a/bootstrap/vagrant-onap/lib/sdnc
+++ b/bootstrap/vagrant-onap/lib/sdnc
@@ -7,13 +7,6 @@
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 @@
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 @@
# 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 @@
# 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 a4517ff..a1f4bef 100755
--- a/bootstrap/vagrant-onap/lib/vfc
+++ b/bootstrap/vagrant-onap/lib/vfc
@@ -9,13 +9,6 @@
"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 @@
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 6fc7f35..6a358bf 100755
--- a/bootstrap/vagrant-onap/lib/vid
+++ b/bootstrap/vagrant-onap/lib/vid
@@ -5,20 +5,6 @@
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 @@
# 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 863bae0..020d437
--- 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 @@
# 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 24264cc..a924e7a
--- 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 @@
# 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 78c7f8b..b30632d
--- 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 @@
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 10777d6..d9a4869
--- a/bootstrap/vagrant-onap/tests/test_aai
+++ b/bootstrap/vagrant-onap/tests/test_aai
@@ -28,7 +28,7 @@
# 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 @@
# 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 @@
# 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 @@
# 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 @@
# 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 @@
# 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 2290f16..47efa69
--- a/bootstrap/vagrant-onap/tests/test_appc
+++ b/bootstrap/vagrant-onap/tests/test_appc
@@ -9,7 +9,7 @@
# 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 @@
# 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
+ 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
- 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
+ #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 @@
# 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 81bdd48..489ccdb
--- a/bootstrap/vagrant-onap/tests/test_ccsdk
+++ b/bootstrap/vagrant-onap/tests/test_ccsdk
@@ -9,7 +9,7 @@
# 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 @@
# 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 c6887cd..a4697ce
--- a/bootstrap/vagrant-onap/tests/test_dcae
+++ b/bootstrap/vagrant-onap/tests/test_dcae
@@ -9,7 +9,7 @@
# 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 @@
# 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 @@
# 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 @@
# 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 a863b99..c08d2e6
--- a/bootstrap/vagrant-onap/tests/test_mr
+++ b/bootstrap/vagrant-onap/tests/test_mr
@@ -9,7 +9,7 @@
# 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 @@
# 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 deea7bb..384944c
--- a/bootstrap/vagrant-onap/tests/test_mso
+++ b/bootstrap/vagrant-onap/tests/test_mso
@@ -9,40 +9,40 @@
# 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 @@
# 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 62a010a..23e12b1
--- a/bootstrap/vagrant-onap/tests/test_multicloud
+++ b/bootstrap/vagrant-onap/tests/test_multicloud
@@ -9,7 +9,7 @@
# 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 @@
# 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 @@
# 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 @@
# 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 08231fc..88d5e9d
--- a/bootstrap/vagrant-onap/tests/test_policy
+++ b/bootstrap/vagrant-onap/tests/test_policy
@@ -12,7 +12,7 @@
# 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 @@
# 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 @@
# 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 702401e..87ee100
--- a/bootstrap/vagrant-onap/tests/test_robot
+++ b/bootstrap/vagrant-onap/tests/test_robot
@@ -9,20 +9,20 @@
# 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 @@
# 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 9b6f5a5..6d5470e
--- a/bootstrap/vagrant-onap/tests/test_sdc
+++ b/bootstrap/vagrant-onap/tests/test_sdc
@@ -9,7 +9,7 @@
# 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 @@
# 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 @@
# 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 @@
# 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 7b54749..1a24a72
--- a/bootstrap/vagrant-onap/tests/test_sdnc
+++ b/bootstrap/vagrant-onap/tests/test_sdnc
@@ -9,21 +9,21 @@
# 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 @@
# 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 @@
# 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 53d9c0d..a675c52
--- a/bootstrap/vagrant-onap/tests/test_vfc
+++ b/bootstrap/vagrant-onap/tests/test_vfc
@@ -9,7 +9,7 @@
# 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 @@
# 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 @@
# 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 @@
# 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 731d005..dc6adba
--- a/bootstrap/vagrant-onap/tests/test_vid
+++ b/bootstrap/vagrant-onap/tests/test_vid
@@ -9,7 +9,7 @@
# 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 @@
# 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 @@
# 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 @@
# 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 250a9fc..6f37904
--- a/bootstrap/vagrant-onap/tests/test_vnfsdk
+++ b/bootstrap/vagrant-onap/tests/test_vnfsdk
@@ -9,7 +9,7 @@
# 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 @@
# 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 @@
# 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 @@
# 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 f77fdf4..4762e1d
--- a/bootstrap/vagrant-onap/tests/test_vvp
+++ b/bootstrap/vagrant-onap/tests/test_vvp
@@ -9,7 +9,7 @@
# 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 @@
# 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 @@
# 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
diff --git a/test/csit/tests/portal/testsuites/news_widget.zip b/test/csit/tests/portal/testsuites/news_widget.zip
new file mode 100644
index 0000000..17d4ce9
--- /dev/null
+++ b/test/csit/tests/portal/testsuites/news_widget.zip
Binary files differ
diff --git a/test/csit/tests/portal/testsuites/test1.robot b/test/csit/tests/portal/testsuites/test1.robot
index 70fdcf0..bbbe517 100644
--- a/test/csit/tests/portal/testsuites/test1.robot
+++ b/test/csit/tests/portal/testsuites/test1.robot
@@ -610,7 +610,7 @@
Portal Admin Create Widget for All users
[Documentation] Naviage to Create Widget menu tab
- ${WidgetAttachment}= Catenate ${PORTAL_ASSETS_DIRECTORY}//widget_news.zip
+ ${WidgetAttachment}= Catenate ${PORTAL_ASSETS_DIRECTORY}//news_widget.zip
Click Link xpath=//a[@title='Widget Onboarding']
Click Button xpath=//button[@ng-click='toggleSidebar()']
Click Button xpath=//button[@id='widget-onboarding-button-add']
@@ -650,7 +650,7 @@
Portal Admin Create Widget for Application Roles
[Documentation] Naviage to Create Widget menu tab
- ${WidgetAttachment}= Catenate ${PORTAL_ASSETS_DIRECTORY}//widget_news.zip
+ ${WidgetAttachment}= Catenate ${PORTAL_ASSETS_DIRECTORY}//news_widget.zip
Click Link xpath=//a[@title='Widget Onboarding']
Click Button xpath=//button[@ng-click='toggleSidebar()']
Click Button xpath=//button[@id='widget-onboarding-button-add']
diff --git a/test/csit/tests/portal/testsuites/widget_news.zip b/test/csit/tests/portal/testsuites/widget_news.zip
index 532cf61..5c3217b 100644
--- a/test/csit/tests/portal/testsuites/widget_news.zip
+++ b/test/csit/tests/portal/testsuites/widget_news.zip
Binary files differ
diff --git a/test/ete/scripts/deploy-onap.sh b/test/ete/scripts/deploy-onap.sh
index 9919fe7..fc73744 100755
--- a/test/ete/scripts/deploy-onap.sh
+++ b/test/ete/scripts/deploy-onap.sh
@@ -29,6 +29,7 @@
SENTINEL='Docker versions and branches'
+YAML_FILE=${ONAP_WORKDIR}/demo/heat/ONAP/onap_openstack.yaml
ENV_FILE=${WORKSPACE}/test/ete/labs/windriver/onap-openstack.env
cp ${ONAP_WORKDIR}/demo/heat/ONAP/onap_openstack.env ${WORKSPACE}/test/ete/labs/windriver/onap-openstack-demo.env
envsubst < ${WORKSPACE}/test/ete/labs/windriver/onap-openstack-template.env | sed -n "1,/${SENTINEL}/p" > ${ENV_FILE}
@@ -41,7 +42,11 @@
#diff ${WORKSPACE}/test/ete/labs/windriver/onap-openstack-template.env ${WORKSPACE}/test/ete/labs/windriver/onap-openstack.env
-openstack stack create -t ${ONAP_WORKDIR}/demo/heat/ONAP/onap_openstack.yaml -e ${WORKSPACE}/test/ete/labs/windriver/onap-openstack.env $STACK
+# reduce DCAE VM sizes
+sed -i 's|__dcaeos_flavor_id__:.*|__dcaeos_flavor_id__: { get_param: flavor_medium }|' ${YAML_FILE}
+sed -i 's|__dcaeos_flavor_id_cdap__:.*|__dcaeos_flavor_id_cdap__: { get_param: flavor_large }|' ${YAML_FILE}
+
+openstack stack create -t ${YAML_FILE} -e ${WORKSPACE}/test/ete/labs/windriver/onap-openstack.env $STACK
while [ "CREATE_IN_PROGRESS" == "$(openstack stack show -c stack_status -f value $STACK)" ]; do
sleep 20