From 8e50f1c2198216b13dfb96f0888d3170db09f614 Mon Sep 17 00:00:00 2001 From: Michal Mielewczyk Date: Tue, 26 May 2020 09:09:01 -0400 Subject: [PATCH] test api: allow to install particular CAS version Signed-off-by: Michal Mielewczyk --- test/functional/api/cas/installer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/functional/api/cas/installer.py b/test/functional/api/cas/installer.py index 8731b13..4cb6394 100644 --- a/test/functional/api/cas/installer.py +++ b/test/functional/api/cas/installer.py @@ -58,13 +58,13 @@ def install_opencas(): TestRun.LOGGER.info(output.stdout) -def set_up_opencas(): +def set_up_opencas(version=None): rsync_opencas_sources() _clean_opencas_repo() if version: - git.checkout_cas_version() + git.checkout_cas_version(version) build_opencas() @@ -84,10 +84,10 @@ def uninstall_opencas(): raise CmdException("There was an error during uninstall process", output) -def reinstall_opencas(): +def reinstall_opencas(version=None): if check_if_installed(): uninstall_opencas() - set_up_opencas() + set_up_opencas(version) def check_if_installed():