Module: check_mk
Branch: master
Commit: 077c4d42e92b0cb600c7785266baccaa29d72cc1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=077c4d42e92b0c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 19 11:18:12 2018 +0100
Tests: Check version available for download only when not installed yet
Change-Id: I6450c8f86b1b77853448c692ad8e7e2606a33ab3
---
tests/testlib/__init__.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index d66da37..28966b5 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -179,9 +179,11 @@ class CMKVersion(object):
def _version_available(self):
+ if self.is_installed():
+ return True
+
response = requests.head(self.package_url(),
auth=self._get_cmk_download_credentials(), verify=False)
- available_on_server = response.status_code == 200
- return self.is_installed() or available_on_server
+ return response.status_code == 200
def install(self):