holado 0.2.3__py3-none-any.whl → 0.2.5__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 holado might be problematic. Click here for more details.
- holado/__init__.py +61 -23
- holado/common/context/service_manager.py +10 -2
- holado/common/context/session_context.py +43 -12
- holado/common/handlers/object.py +12 -4
- holado/holado_config.py +1 -0
- {holado-0.2.3.dist-info → holado-0.2.5.dist-info}/METADATA +1 -1
- {holado-0.2.3.dist-info → holado-0.2.5.dist-info}/RECORD +30 -30
- holado_ais/ais/ais_messages.py +140 -139
- holado_core/common/tools/path_manager.py +8 -4
- holado_grpc/api/rpc/grpc_client.py +122 -118
- holado_helper/docker/logging.conf +3 -1
- holado_helper/docker/run_holado_test_nonreg_in_docker.sh +28 -28
- holado_helper/docker/run_terminal_in_docker-with_docker_control.sh +27 -27
- holado_helper/docker/run_terminal_in_docker.sh +26 -26
- holado_helper/script/initialize_script.py +5 -5
- holado_logging/__init__.py +7 -9
- holado_logging/common/logging/holado_logger.py +2 -2
- holado_logging/common/logging/log_config.py +152 -127
- holado_logging/common/logging/log_manager.py +20 -19
- holado_multitask/multitasking/multitask_manager.py +1 -1
- holado_multitask/multithreading/thread.py +8 -4
- holado_protobuf/__init__.py +1 -1
- holado_protobuf/ipc/protobuf/protobuf_messages.py +821 -818
- holado_rabbitmq/tools/rabbitmq/rabbitmq_client.py +1 -2
- holado_test/behave/independant_runner.py +3 -5
- holado_test/scenario/step_tools.py +2 -0
- test_holado/environment.py +1 -1
- test_holado/logging.conf +3 -1
- {holado-0.2.3.dist-info → holado-0.2.5.dist-info}/WHEEL +0 -0
- {holado-0.2.3.dist-info → holado-0.2.5.dist-info}/licenses/LICENSE +0 -0
|
@@ -27,7 +27,6 @@ from holado_core.common.exceptions.verify_exception import VerifyException
|
|
|
27
27
|
import abc
|
|
28
28
|
from holado_multitask.multithreading.loopfunctionthreaded import LoopFunctionThreaded
|
|
29
29
|
from holado_multitask.multitasking.multitask_manager import MultitaskManager
|
|
30
|
-
from pika.exceptions import ConnectionWrongStateError
|
|
31
30
|
from holado.common.tools.gc_manager import GcManager
|
|
32
31
|
|
|
33
32
|
|
|
@@ -35,7 +34,7 @@ logger = logging.getLogger(__name__)
|
|
|
35
34
|
|
|
36
35
|
try:
|
|
37
36
|
import pika # @UnresolvedImport @UnusedImport
|
|
38
|
-
from pika.exceptions import StreamLostError
|
|
37
|
+
from pika.exceptions import ConnectionWrongStateError, StreamLostError
|
|
39
38
|
with_pika = True
|
|
40
39
|
except Exception as exc:
|
|
41
40
|
if Tools.do_log(logger, logging.DEBUG):
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
import logging
|
|
15
15
|
from behave.runner import Runner
|
|
16
16
|
from behave.parser import parse_feature
|
|
17
|
+
from holado.holado_config import Config
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
logger = logging.getLogger(__name__)
|
|
@@ -55,12 +56,9 @@ class IndependantRunner(Runner):
|
|
|
55
56
|
feature_text = \
|
|
56
57
|
"""
|
|
57
58
|
Feature: Fake
|
|
58
|
-
|
|
59
59
|
Scenario: Fake
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
When wait DELAY seconds
|
|
63
|
-
"""
|
|
60
|
+
When wait {runner_session_timeout} seconds
|
|
61
|
+
""".format(runner_session_timeout=Config.session_timeout_seconds)
|
|
64
62
|
feature = parse_feature(feature_text)
|
|
65
63
|
|
|
66
64
|
return super().run_model([feature])
|
|
@@ -426,6 +426,8 @@ class StepTools(object):
|
|
|
426
426
|
new_type = {'pattern':pattern, 'function':func}
|
|
427
427
|
if type_name in cls.__registered_types:
|
|
428
428
|
logger.warning(f"Overriding step parameter type '{type_name}': {cls.__registered_types[type_name]['pattern']} -> {new_type['pattern']}")
|
|
429
|
+
import traceback
|
|
430
|
+
logging.warning("".join(traceback.format_list(traceback.extract_stack())))
|
|
429
431
|
cls.__registered_types[type_name] = new_type
|
|
430
432
|
if Tools.do_log(logger, logging.TRACE): # @UndefinedVariable
|
|
431
433
|
logger.trace(f"Registered step parameter type '{type_name}'")
|
test_holado/environment.py
CHANGED
|
@@ -31,7 +31,7 @@ import holado
|
|
|
31
31
|
# - log_on_console is True for initialization phase, it will be set to False when root log file will be defined
|
|
32
32
|
# - logging config file
|
|
33
33
|
from test_holado.test_holado_session_context import TestHoladoSessionContext
|
|
34
|
-
holado.initialize(TSessionContext=TestHoladoSessionContext,
|
|
34
|
+
holado.initialize(TSessionContext=TestHoladoSessionContext, logging_config_file_path=os.path.join(here, 'logging.conf'), log_level=logging.INFO, log_on_console=True)
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
test_holado/logging.conf
CHANGED
|
File without changes
|
|
File without changes
|