syncloud-lib 343__tar.gz → 344__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-343/syncloud_lib.egg-info → syncloud_lib-344}/PKG-INFO +1 -1
- {syncloud_lib-343 → syncloud_lib-344/syncloud_lib.egg-info}/PKG-INFO +1 -1
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/integration/conftest.py +12 -5
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/integration/selenium_wrapper.py +6 -5
- syncloud_lib-344/version +1 -0
- syncloud_lib-343/version +0 -1
- {syncloud_lib-343 → syncloud_lib-344}/LICENSE +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/MANIFEST.in +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/setup.cfg +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/setup.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloud_lib.egg-info/SOURCES.txt +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloud_lib.egg-info/dependency_links.txt +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloud_lib.egg-info/requires.txt +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloud_lib.egg-info/top_level.txt +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/__init__.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/application/__init__.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/application/config.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/application/connection.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/application/paths.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/application/ports.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/application/service.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/application/storage.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/application/urls.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/application/users.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/error.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/fs.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/http.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/integration/__init__.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/integration/device.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/integration/hosts.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/integration/installer.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/integration/loop.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/integration/screenshots.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/integration/ssh.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/json/__init__.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/json/convertible.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/linux.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/syncloudlib/logger.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/test/application/test_connection.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/test/application/test_paths.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/test/application/test_service.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/test/application/test_storage.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/test/application/test_urls.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/test/integration/test_hosts.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/test/integration/test_installer.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/test/integration/test_loop.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/test/integration/test_ssh.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/test/json/test_convertible.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/test/test_fs.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/test/test_linux.py +0 -0
- {syncloud_lib-343 → syncloud_lib-344}/test/test_logger.py +0 -0
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import logging
|
|
2
2
|
import os
|
|
3
|
+
import platform
|
|
3
4
|
from os.path import join, exists
|
|
5
|
+
|
|
6
|
+
import pytest
|
|
4
7
|
from selenium import webdriver
|
|
5
8
|
|
|
6
|
-
from syncloudlib.integration.installer import get_data_dir, get_app_dir, get_service_prefix, get_ssh_env_vars, get_snap_data_dir
|
|
7
9
|
from syncloudlib.integration.device import Device
|
|
10
|
+
from syncloudlib.integration.installer import get_data_dir, get_app_dir, get_service_prefix, get_ssh_env_vars, \
|
|
11
|
+
get_snap_data_dir
|
|
8
12
|
from syncloudlib.integration.selenium_wrapper import SeleniumWrapper
|
|
9
|
-
|
|
13
|
+
|
|
10
14
|
log = logging.getLogger()
|
|
11
15
|
|
|
12
16
|
arch_go_to_debian={
|
|
@@ -34,7 +38,7 @@ def pytest_addoption(parser):
|
|
|
34
38
|
parser.addoption("--redirect-user", action="store", default="redirect-user-notset")
|
|
35
39
|
parser.addoption("--redirect-password", action="store", default="redirect-password-notset")
|
|
36
40
|
parser.addoption("--distro", action="store", default="distro")
|
|
37
|
-
parser.addoption("--arch", action="store"
|
|
41
|
+
parser.addoption("--arch", action="store")
|
|
38
42
|
parser.addoption("--ver", action="store")
|
|
39
43
|
|
|
40
44
|
|
|
@@ -127,7 +131,10 @@ def distro(request):
|
|
|
127
131
|
|
|
128
132
|
@pytest.fixture(scope='session')
|
|
129
133
|
def arch(request):
|
|
130
|
-
|
|
134
|
+
arch = request.config.getoption("--arch")
|
|
135
|
+
if arch:
|
|
136
|
+
return arch
|
|
137
|
+
return arch_cpu_to_go[platform.machine()]
|
|
131
138
|
|
|
132
139
|
|
|
133
140
|
@pytest.fixture(scope='session')
|
|
@@ -6,7 +6,8 @@ from syncloudlib.integration.screenshots import screenshots
|
|
|
6
6
|
from selenium.webdriver.support.ui import WebDriverWait
|
|
7
7
|
from selenium.webdriver.common.by import By
|
|
8
8
|
from selenium.webdriver.support import expected_conditions
|
|
9
|
-
|
|
9
|
+
import logging
|
|
10
|
+
log = logging.getLogger()
|
|
10
11
|
|
|
11
12
|
class SeleniumWrapper:
|
|
12
13
|
def __init__(self, driver, ui_mode, screenshot_dir, app_domain, timeout, browser):
|
|
@@ -101,19 +102,19 @@ class SeleniumWrapper:
|
|
|
101
102
|
return
|
|
102
103
|
retry += 1
|
|
103
104
|
time.sleep(1)
|
|
104
|
-
|
|
105
|
+
log.debug('retrying screenshot {0}'.format(retry))
|
|
105
106
|
|
|
106
107
|
def open_app(self, path=''):
|
|
107
108
|
self.driver.get("https://{0}{1}".format(self.app_domain, path))
|
|
108
109
|
|
|
109
110
|
def log(self):
|
|
110
111
|
if self.browser != "chrome":
|
|
111
|
-
|
|
112
|
+
log.debug("browser logs are only supported in chrome")
|
|
112
113
|
return
|
|
113
114
|
|
|
114
|
-
|
|
115
|
+
log.debug("browser log")
|
|
115
116
|
for entry in self.driver.get_log('browser'):
|
|
116
|
-
|
|
117
|
+
log.debug(entry)
|
|
117
118
|
|
|
118
119
|
@retry(exceptions=Exception, tries=10, delay=1, backoff=2)
|
|
119
120
|
def element_by_js(self, js):
|
syncloud_lib-344/version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
344
|
syncloud_lib-343/version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
343
|
|
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
|