syncloud-lib 338__tar.gz → 340__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-338/syncloud_lib.egg-info → syncloud_lib-340}/PKG-INFO +1 -1
- {syncloud_lib-338 → syncloud_lib-340/syncloud_lib.egg-info}/PKG-INFO +1 -1
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/http.py +5 -3
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/integration/hosts.py +3 -1
- syncloud_lib-340/version +1 -0
- syncloud_lib-338/version +0 -1
- {syncloud_lib-338 → syncloud_lib-340}/LICENSE +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/MANIFEST.in +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/setup.cfg +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/setup.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloud_lib.egg-info/SOURCES.txt +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloud_lib.egg-info/dependency_links.txt +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloud_lib.egg-info/requires.txt +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloud_lib.egg-info/top_level.txt +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/__init__.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/application/__init__.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/application/config.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/application/connection.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/application/paths.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/application/ports.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/application/service.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/application/storage.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/application/urls.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/application/users.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/error.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/fs.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/integration/__init__.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/integration/conftest.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/integration/device.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/integration/installer.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/integration/loop.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/integration/screenshots.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/integration/selenium_wrapper.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/integration/ssh.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/json/__init__.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/json/convertible.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/linux.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/syncloudlib/logger.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/test/application/test_connection.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/test/application/test_paths.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/test/application/test_service.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/test/application/test_storage.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/test/application/test_urls.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/test/integration/test_hosts.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/test/integration/test_installer.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/test/integration/test_loop.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/test/integration/test_ssh.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/test/json/test_convertible.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/test/test_fs.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/test/test_linux.py +0 -0
- {syncloud_lib-338 → syncloud_lib-340}/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')
|
|
@@ -2,10 +2,12 @@ import socket
|
|
|
2
2
|
import logging
|
|
3
3
|
log = logging.getLogger()
|
|
4
4
|
|
|
5
|
-
def add_host_alias(app,
|
|
5
|
+
def add_host_alias(app, host, domain, hosts_file='/etc/hosts'):
|
|
6
6
|
ip = socket.gethostbyname(host)
|
|
7
7
|
with open(hosts_file, "a") as hosts:
|
|
8
8
|
log.info("adding hosts: {0} {1}".format(ip, domain))
|
|
9
9
|
hosts.write("{0} {1}\n".format(ip, domain))
|
|
10
10
|
log.info("adding hosts: {0} {1}.{2}".format(ip, app, domain))
|
|
11
11
|
hosts.write("{0} {1}.{2}\n".format(ip, app, domain))
|
|
12
|
+
log.info("adding hosts: {0} auth.{1}".format(ip, domain))
|
|
13
|
+
hosts.write("{0} auth.{1}\n".format(ip, domain))
|
syncloud_lib-340/version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
340
|
syncloud_lib-338/version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
338
|
|
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
|
|
File without changes
|