diff options
author | Samuli Silvius <s.silvius@partner.samsung.com> | 2019-05-23 12:50:57 +0300 |
---|---|---|
committer | Samuli Silvius <s.silvius@partner.samsung.com> | 2019-05-23 12:50:57 +0300 |
commit | bc83f936c1b369fc6291898ec88b6c6c17b2aa5d (patch) | |
tree | 595919d2d8cf5acca507d6f7b8135da1ac23c979 /kud/tests/_functions.sh | |
parent | 3eeb40cfe56366ca72e811bdfb6f2faf127f8a2f (diff) |
Install jq as an dependency for yq
Before using yq binary we need to install also its
dependency jq.
This commit is fixing jq installation in case it was
required as dependency for yq.
Also refactored a bit dependency installations of tests.
Issue-ID: MULTICLOUD-617
Change-Id: I0ea1143befa1cff809c231422b5cfb14fba1de4e
Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
Diffstat (limited to 'kud/tests/_functions.sh')
-rwxr-xr-x | kud/tests/_functions.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/kud/tests/_functions.sh b/kud/tests/_functions.sh index 5efb56fe..542443d6 100755 --- a/kud/tests/_functions.sh +++ b/kud/tests/_functions.sh @@ -31,29 +31,6 @@ function _get_ovn_central_address { echo "$(echo ${ansible_ifconfig#*>>} | tr '\n' ':')6641" } -# install_ovn_deps() - Install dependencies required for tests that require OVN -function install_ovn_deps { - if ! $(yq --version &>/dev/null); then - sudo -E pip install yq - fi - if ! $(ovn-nbctl --version &>/dev/null); then - source /etc/os-release || source /usr/lib/os-release - case ${ID,,} in - *suse) - ;; - ubuntu|debian) - sudo apt-get install -y apt-transport-https - echo "deb https://packages.wand.net.nz $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/wand.list - sudo curl https://packages.wand.net.nz/keyring.gpg -o /etc/apt/trusted.gpg.d/wand.gpg - sudo apt-get update - sudo apt install -y ovn-common - ;; - rhel|centos|fedora) - ;; - esac - fi -} - # init_network() - This function creates the OVN resouces required by the test function init_network { local fname=$1 |