The update_repo function allows to fetch repository metadata. This
function can take some time during the initial provisioning time.
This change reduce the number of calls to that function.
Change-Id: I2a0b0f13f7a3e6b37f0c0316ae9730a3ed840238
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-Id: INT-324
# install_packages() - Install a list of packages
function install_packages {
local package=$@
- update_repos
apt-get install -y -qq $package
}
fi
install_package software-properties-common
add-apt-repository -y ppa:openjdk-r/ppa
+ update_repos
# Remove Java 7
uninstall_packages default-jre openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless
install_java
install_package software-properties-common
add-apt-repository -y ppa:andrei-pozolotin/maven3
+ update_repos
install_package maven3
# Remove Java 7
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable"
+ update_repos
install_package docker-ce
_configure_docker_settings
#!/bin/bash
source /var/onap_tests/asserts
+source /var/onap/commons
# main() - Starting point for Unit Tests
function main {
local covered_functions=("$@")
+ update_repos
len=${#covered_functions[@]}
echo "1..$len"
for i in ${!covered_functions[@]}; do
source /var/onap/functions
+update_repos
create_configuration_files
install_dev_tools
configure_bind