pytest-bec-e2e 3.54.0__py3-none-any.whl → 3.54.1__py3-none-any.whl
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.
Potentially problematic release.
This version of pytest-bec-e2e might be problematic. Click here for more details.
- PKG-INFO +1 -1
- pyproject.toml +1 -1
- pytest_bec_e2e/plugin.py +6 -29
- {pytest_bec_e2e-3.54.0.dist-info → pytest_bec_e2e-3.54.1.dist-info}/METADATA +1 -1
- pytest_bec_e2e-3.54.1.dist-info/RECORD +9 -0
- pytest_bec_e2e-3.54.0.dist-info/RECORD +0 -9
- {pytest_bec_e2e-3.54.0.dist-info → pytest_bec_e2e-3.54.1.dist-info}/WHEEL +0 -0
- {pytest_bec_e2e-3.54.0.dist-info → pytest_bec_e2e-3.54.1.dist-info}/entry_points.txt +0 -0
PKG-INFO
CHANGED
pyproject.toml
CHANGED
pytest_bec_e2e/plugin.py
CHANGED
|
@@ -15,7 +15,7 @@ from bec_ipython_client import BECIPythonClient
|
|
|
15
15
|
from bec_lib.client import BECClient
|
|
16
16
|
from bec_lib.config_helper import ConfigHelper
|
|
17
17
|
from bec_lib.redis_connector import RedisConnector
|
|
18
|
-
from bec_lib.service_config import ServiceConfig
|
|
18
|
+
from bec_lib.service_config import ServiceConfig, ServiceConfigModel
|
|
19
19
|
from bec_lib.tests.utils import wait_for_empty_queue
|
|
20
20
|
|
|
21
21
|
|
|
@@ -35,27 +35,6 @@ bec_servers_scope = (
|
|
|
35
35
|
lambda fixture_name, config: config.getoption("--flush-redis") and "function" or "session"
|
|
36
36
|
)
|
|
37
37
|
|
|
38
|
-
services_config_template = """
|
|
39
|
-
redis:
|
|
40
|
-
host: %(redis_host)s
|
|
41
|
-
port: %(redis_port)s
|
|
42
|
-
mongodb:
|
|
43
|
-
host: "localhost"
|
|
44
|
-
port: 27017
|
|
45
|
-
scibec:
|
|
46
|
-
host: http://localhost
|
|
47
|
-
port: 3030
|
|
48
|
-
beamline: TestBeamline
|
|
49
|
-
service_config:
|
|
50
|
-
abort_on_ctrl_c: False
|
|
51
|
-
enforce_ACLs: False
|
|
52
|
-
file_writer:
|
|
53
|
-
plugin: default_NeXus_format
|
|
54
|
-
base_path: %(file_writer_base_path)s
|
|
55
|
-
log_writer:
|
|
56
|
-
base_path: %(file_writer_base_path)s
|
|
57
|
-
"""
|
|
58
|
-
|
|
59
38
|
|
|
60
39
|
def _check_path(file_path):
|
|
61
40
|
if os.path.exists(file_path):
|
|
@@ -165,15 +144,13 @@ def bec_servers(
|
|
|
165
144
|
# file_writer_path.mkdir(exist_ok=True)
|
|
166
145
|
# 3) services config
|
|
167
146
|
with open(bec_services_config_file_path, "w") as services_config_file:
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
"redis_host": redis_host,
|
|
172
|
-
"redis_port": redis_port,
|
|
173
|
-
"file_writer_base_path": file_writer_path,
|
|
174
|
-
}
|
|
147
|
+
service_config = ServiceConfigModel(
|
|
148
|
+
redis={"host": redis_host, "port": redis_port},
|
|
149
|
+
file_writer={"base_path": str(file_writer_path)},
|
|
175
150
|
)
|
|
176
151
|
|
|
152
|
+
services_config_file.write(service_config.model_dump_json(indent=4))
|
|
153
|
+
|
|
177
154
|
if _start_servers:
|
|
178
155
|
from bec_server.bec_server_utils.service_handler import ServiceHandler
|
|
179
156
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
.gitignore,sha256=UmJ0gTRAPp4EI1A6tb9Pi-k5uxDIb_NWJU9ye6AW-8Y,3306
|
|
2
|
+
PKG-INFO,sha256=iUC70iZBkNJpl7iLN3Oox7LWBuuHYqP_SqX9DjCU1Bo,526
|
|
3
|
+
pyproject.toml,sha256=dUiH7pBTXBNmT0Zztyec_BdWexMpsDJ1SzSfwnEcGS8,780
|
|
4
|
+
pytest_bec_e2e/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
pytest_bec_e2e/plugin.py,sha256=km5iSHjy3dzmGj3PnL0dOlEZAPo3l-vSu8Gn0vy36a4,7805
|
|
6
|
+
pytest_bec_e2e-3.54.1.dist-info/METADATA,sha256=iUC70iZBkNJpl7iLN3Oox7LWBuuHYqP_SqX9DjCU1Bo,526
|
|
7
|
+
pytest_bec_e2e-3.54.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8
|
+
pytest_bec_e2e-3.54.1.dist-info/entry_points.txt,sha256=FLvRZqsjOQkvTOuo9A2kiyG9vMBia2sXREgVHb35DXA,56
|
|
9
|
+
pytest_bec_e2e-3.54.1.dist-info/RECORD,,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
.gitignore,sha256=UmJ0gTRAPp4EI1A6tb9Pi-k5uxDIb_NWJU9ye6AW-8Y,3306
|
|
2
|
-
PKG-INFO,sha256=9i2xNEMnIbV_1qdX1Jm7NjDKF-GSmWlMdY1dy5iX66Y,526
|
|
3
|
-
pyproject.toml,sha256=SAkI9f7yl1gH194wX4cQ4_UpdrZVAR_qY-EFlF7zsTM,780
|
|
4
|
-
pytest_bec_e2e/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
pytest_bec_e2e/plugin.py,sha256=ukIzIC0ebt2YC1p7TCcDqxKNDfHmATXvtTfAwyxKILI,8196
|
|
6
|
-
pytest_bec_e2e-3.54.0.dist-info/METADATA,sha256=9i2xNEMnIbV_1qdX1Jm7NjDKF-GSmWlMdY1dy5iX66Y,526
|
|
7
|
-
pytest_bec_e2e-3.54.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
8
|
-
pytest_bec_e2e-3.54.0.dist-info/entry_points.txt,sha256=FLvRZqsjOQkvTOuo9A2kiyG9vMBia2sXREgVHb35DXA,56
|
|
9
|
-
pytest_bec_e2e-3.54.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|