syncloud-lib 361__tar.gz → 363__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-361/syncloud_lib.egg-info → syncloud_lib-363}/PKG-INFO +1 -1
- {syncloud_lib-361 → syncloud_lib-363/syncloud_lib.egg-info}/PKG-INFO +1 -1
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/integration/device.py +3 -6
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/integration/selenium_wrapper.py +0 -2
- syncloud_lib-363/version +1 -0
- syncloud_lib-361/version +0 -1
- {syncloud_lib-361 → syncloud_lib-363}/LICENSE +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/MANIFEST.in +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/requirements.txt +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/setup.cfg +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/setup.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloud_lib.egg-info/SOURCES.txt +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloud_lib.egg-info/dependency_links.txt +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloud_lib.egg-info/requires.txt +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloud_lib.egg-info/top_level.txt +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/__init__.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/application/__init__.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/application/config.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/application/connection.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/application/paths.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/application/ports.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/application/service.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/application/storage.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/application/urls.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/application/users.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/error.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/fs.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/http.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/integration/__init__.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/integration/conftest.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/integration/hosts.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/integration/installer.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/integration/loop.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/integration/screenshots.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/integration/ssh.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/json/__init__.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/json/convertible.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/linux.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/syncloudlib/logger.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/test/application/test_connection.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/test/application/test_paths.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/test/application/test_service.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/test/application/test_storage.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/test/application/test_urls.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/test/integration/test_hosts.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/test/integration/test_installer.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/test/integration/test_loop.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/test/integration/test_ssh.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/test/json/test_convertible.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/test/test_fs.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/test/test_linux.py +0 -0
- {syncloud_lib-361 → syncloud_lib-363}/test/test_logger.py +0 -0
|
@@ -25,8 +25,6 @@ class Device:
|
|
|
25
25
|
def activate(self, channel="stable"):
|
|
26
26
|
ip = socket.gethostbyname(self.domain)
|
|
27
27
|
run_ssh(self.domain, 'echo "{0} auth.{1}" >> /etc/hosts'.format(ip, self.domain), password=self.ssh_password, retries=10)
|
|
28
|
-
#run_ssh(self.domain, '/snap/platform/current/bin/upgrade-snapd.sh {0}'.format(channel), password=self.ssh_password, retries=10)
|
|
29
|
-
#run_ssh(self.domain, 'snap refresh platform --channel={0}'.format(channel), password=self.ssh_password, retries=10)
|
|
30
28
|
|
|
31
29
|
wait_for_rest(requests.session(), "https://{0}/rest/id".format(self.domain), 200, 10)
|
|
32
30
|
|
|
@@ -44,8 +42,6 @@ class Device:
|
|
|
44
42
|
def activate_custom(self, channel="stable"):
|
|
45
43
|
ip = socket.gethostbyname(self.domain)
|
|
46
44
|
run_ssh(self.domain, 'echo "{0} auth.{1}" >> /etc/hosts'.format(ip, self.domain), password=self.ssh_password, retries=10)
|
|
47
|
-
#run_ssh(self.domain, '/snap/platform/current/bin/upgrade-snapd.sh {0}'.format(channel), password=self.ssh_password, retries=10)
|
|
48
|
-
#run_ssh(self.domain, 'snap refresh platform --channel={0}'.format(channel), password=self.ssh_password, retries=10)
|
|
49
45
|
|
|
50
46
|
wait_for_rest(requests.session(), "https://{0}/rest/id".format(self.domain), 200, 10)
|
|
51
47
|
response = requests.post('https://{0}/rest/activate/custom'.format(self.domain),
|
|
@@ -62,7 +58,7 @@ class Device:
|
|
|
62
58
|
|
|
63
59
|
def login(self, retries=5):
|
|
64
60
|
session = requests.session()
|
|
65
|
-
session.mount('https://{0}'.format(self.domain), HTTPAdapter(max_retries=retries))
|
|
61
|
+
session.mount('https://{0}'.format(self.domain), HTTPAdapter(max_retries=retries))
|
|
66
62
|
retry = 0
|
|
67
63
|
while True:
|
|
68
64
|
try:
|
|
@@ -78,7 +74,8 @@ class Device:
|
|
|
78
74
|
print('retry {0} of {1}'.format(retry, retries))
|
|
79
75
|
retry += 1
|
|
80
76
|
if retry > retries:
|
|
81
|
-
|
|
77
|
+
print('login v1 failed, trying v2')
|
|
78
|
+
return self.login_v2(retries=retries)
|
|
82
79
|
|
|
83
80
|
def app_remove(self, app, attempts=200):
|
|
84
81
|
response = self.session.post('https://{0}/rest/app/remove'.format(self.domain), json={'app_id': app},
|
syncloud_lib-363/version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
363
|
syncloud_lib-361/version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
361
|
|
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
|
|
File without changes
|