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.

Files changed (30) hide show
  1. holado/__init__.py +61 -23
  2. holado/common/context/service_manager.py +10 -2
  3. holado/common/context/session_context.py +43 -12
  4. holado/common/handlers/object.py +12 -4
  5. holado/holado_config.py +1 -0
  6. {holado-0.2.3.dist-info → holado-0.2.5.dist-info}/METADATA +1 -1
  7. {holado-0.2.3.dist-info → holado-0.2.5.dist-info}/RECORD +30 -30
  8. holado_ais/ais/ais_messages.py +140 -139
  9. holado_core/common/tools/path_manager.py +8 -4
  10. holado_grpc/api/rpc/grpc_client.py +122 -118
  11. holado_helper/docker/logging.conf +3 -1
  12. holado_helper/docker/run_holado_test_nonreg_in_docker.sh +28 -28
  13. holado_helper/docker/run_terminal_in_docker-with_docker_control.sh +27 -27
  14. holado_helper/docker/run_terminal_in_docker.sh +26 -26
  15. holado_helper/script/initialize_script.py +5 -5
  16. holado_logging/__init__.py +7 -9
  17. holado_logging/common/logging/holado_logger.py +2 -2
  18. holado_logging/common/logging/log_config.py +152 -127
  19. holado_logging/common/logging/log_manager.py +20 -19
  20. holado_multitask/multitasking/multitask_manager.py +1 -1
  21. holado_multitask/multithreading/thread.py +8 -4
  22. holado_protobuf/__init__.py +1 -1
  23. holado_protobuf/ipc/protobuf/protobuf_messages.py +821 -818
  24. holado_rabbitmq/tools/rabbitmq/rabbitmq_client.py +1 -2
  25. holado_test/behave/independant_runner.py +3 -5
  26. holado_test/scenario/step_tools.py +2 -0
  27. test_holado/environment.py +1 -1
  28. test_holado/logging.conf +3 -1
  29. {holado-0.2.3.dist-info → holado-0.2.5.dist-info}/WHEEL +0 -0
  30. {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
- # Wait 7 days
61
- Given DELAY = ${7 * 24 * 3600}
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}'")
@@ -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, logging_config_file=os.path.join(here, 'logging.conf'), log_level=logging.INFO, log_on_console=True)
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
@@ -1,7 +1,9 @@
1
- [logger_root]
1
+ [holado]
2
2
  #level=INFO
3
3
  level=DEBUG
4
4
  #level=TRACE
5
+ log_on_console=False
6
+ log_in_file=True
5
7
 
6
8
  [loggers_levels]
7
9
  holado=INFO
File without changes