syncloud-lib 337__tar.gz → 339__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {syncloud_lib-337/syncloud_lib.egg-info → syncloud_lib-339}/PKG-INFO +1 -1
- {syncloud_lib-337 → syncloud_lib-339/syncloud_lib.egg-info}/PKG-INFO +1 -1
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/http.py +5 -3
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/integration/hosts.py +0 -1
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/integration/ssh.py +0 -1
- syncloud_lib-339/version +1 -0
- syncloud_lib-337/version +0 -1
- {syncloud_lib-337 → syncloud_lib-339}/LICENSE +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/MANIFEST.in +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/setup.cfg +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/setup.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloud_lib.egg-info/SOURCES.txt +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloud_lib.egg-info/dependency_links.txt +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloud_lib.egg-info/requires.txt +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloud_lib.egg-info/top_level.txt +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/__init__.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/application/__init__.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/application/config.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/application/connection.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/application/paths.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/application/ports.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/application/service.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/application/storage.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/application/urls.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/application/users.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/error.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/fs.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/integration/__init__.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/integration/conftest.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/integration/device.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/integration/installer.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/integration/loop.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/integration/screenshots.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/integration/selenium_wrapper.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/json/__init__.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/json/convertible.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/linux.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/syncloudlib/logger.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/test/application/test_connection.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/test/application/test_paths.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/test/application/test_service.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/test/application/test_storage.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/test/application/test_urls.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/test/integration/test_hosts.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/test/integration/test_installer.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/test/integration/test_loop.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/test/integration/test_ssh.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/test/json/test_convertible.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/test/test_fs.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/test/test_linux.py +0 -0
- {syncloud_lib-337 → syncloud_lib-339}/test/test_logger.py +0 -0
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import time
|
|
2
|
+
import logging
|
|
3
|
+
log = logging.getLogger()
|
|
2
4
|
|
|
3
5
|
|
|
4
6
|
def wait_for_rest(web_session, url, code, attempts=10):
|
|
@@ -16,13 +18,13 @@ def wait_for_response(web_session, url, resp_predicate, attempts=10):
|
|
|
16
18
|
while attempt < attempt_limit:
|
|
17
19
|
try:
|
|
18
20
|
response = web_session.get(url, verify=False)
|
|
19
|
-
|
|
21
|
+
log.info('code: {0}'.format(response.status_code))
|
|
20
22
|
if resp_predicate(response):
|
|
21
23
|
return
|
|
22
24
|
except Exception as e:
|
|
23
|
-
|
|
25
|
+
log.info(str(e))
|
|
24
26
|
time.sleep(10)
|
|
25
27
|
attempt = attempt + 1
|
|
26
28
|
if response and response.text:
|
|
27
|
-
|
|
29
|
+
log.info(response.text)
|
|
28
30
|
raise Exception('exhausted')
|
syncloud_lib-339/version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
339
|
syncloud_lib-337/version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
337
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|