holado 0.4.1__py3-none-any.whl → 0.4.2__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 (42) hide show
  1. holado/common/handlers/object.py +6 -0
  2. {holado-0.4.1.dist-info → holado-0.4.2.dist-info}/METADATA +2 -1
  3. {holado-0.4.1.dist-info → holado-0.4.2.dist-info}/RECORD +42 -21
  4. holado_core/tools/abstracts/blocking_command_service.py +9 -1
  5. holado_django/__init__.py +31 -0
  6. holado_django/server/HOWTO.txt +27 -0
  7. holado_django/server/django_projects/rest_api/db.sqlite3 +0 -0
  8. holado_django/server/django_projects/rest_api/manage.py +22 -0
  9. holado_django/server/django_projects/rest_api/rest_api/__init__.py +0 -0
  10. holado_django/server/django_projects/rest_api/rest_api/application/__init__.py +0 -0
  11. holado_django/server/django_projects/rest_api/rest_api/application/admin.py +3 -0
  12. holado_django/server/django_projects/rest_api/rest_api/application/apps.py +9 -0
  13. holado_django/server/django_projects/rest_api/rest_api/application/migrations/__init__.py +0 -0
  14. holado_django/server/django_projects/rest_api/rest_api/application/models.py +3 -0
  15. holado_django/server/django_projects/rest_api/rest_api/application/tests.py +3 -0
  16. holado_django/server/django_projects/rest_api/rest_api/application/views.py +6 -0
  17. holado_django/server/django_projects/rest_api/rest_api/asgi.py +16 -0
  18. holado_django/server/django_projects/rest_api/rest_api/settings.py +130 -0
  19. holado_django/server/django_projects/rest_api/rest_api/urls.py +35 -0
  20. holado_django/server/django_projects/rest_api/rest_api/wsgi.py +16 -0
  21. holado_django/server/django_server.py +110 -0
  22. holado_django/server/grpc_django_server.py +57 -0
  23. holado_django/tests/behave/steps/__init__.py +16 -0
  24. holado_django/tests/behave/steps/django_server_steps.py +83 -0
  25. holado_grpc/tests/behave/steps/private/api/grpc_steps.py +9 -9
  26. holado_multitask/multitasking/multitask_manager.py +36 -10
  27. holado_python/standard_library/ssl/resources/certificates/tcpbin.crt +16 -16
  28. holado_python/standard_library/ssl/resources/certificates/tcpbin.key +26 -26
  29. holado_rest/api/rest/TODO.txt +1 -1
  30. holado_rest/tests/behave/steps/private/api/rest_steps.py +11 -13
  31. holado_system/system/command/command.py +31 -9
  32. holado_system/system/global_system.py +3 -3
  33. test_holado/environment.py +6 -4
  34. test_holado/features/NonReg/api/REST.feature +7 -2
  35. test_holado/features/NonReg/api/gRPC.feature +0 -6
  36. test_holado/initialize_holado.py +62 -0
  37. test_holado/logging.conf +3 -0
  38. test_holado/tools/django/api_rest/db.sqlite3 +0 -0
  39. {holado-0.4.1.dist-info → holado-0.4.2.dist-info}/WHEEL +0 -0
  40. {holado-0.4.1.dist-info → holado-0.4.2.dist-info}/licenses/LICENSE +0 -0
  41. /holado_helper/holado_module_template/{test → tests}/behave/steps/__init__.py +0 -0
  42. /holado_helper/holado_module_template/{test → tests}/behave/steps/private/__init__.py +0 -0
@@ -2,8 +2,7 @@
2
2
  @rest
3
3
  Feature: Test REST module
4
4
 
5
- @go_nogo
6
- @need_update
5
+ #@need_update
7
6
  Scenario: Simple get
8
7
 
9
8
  ### PRECONDITIONS - BEGIN
@@ -18,4 +17,10 @@ Feature: Test REST module
18
17
 
19
18
  When RESULT = get '/users' (REST client: CLIENT)
20
19
  Then RESULT['results'] is list
20
+
21
+ Given TABLE = convert json RESULT['results'] to table with names as columns
22
+ Then table TABLE contains
23
+ | email | groups | url | username |
24
+ | N/A | N/A | N/A | 'admin' |
25
+
21
26
 
@@ -9,8 +9,6 @@ Feature: Test gRPC module
9
9
  Given begin preconditions
10
10
 
11
11
  Given SERVER = start internal gRPC server
12
- When wait 1 seconds
13
-
14
12
  Given CLIENT = new internal gRPC client on service 'account.UserController'
15
13
 
16
14
  Given end preconditions
@@ -33,8 +31,6 @@ Feature: Test gRPC module
33
31
  Given begin preconditions
34
32
 
35
33
  Given SERVER = start internal gRPC server
36
- When wait 1 seconds
37
-
38
34
  Given CLIENT = new internal gRPC client on service 'account.UserController'
39
35
 
40
36
  Given end preconditions
@@ -78,8 +74,6 @@ Feature: Test gRPC module
78
74
  Given begin preconditions
79
75
 
80
76
  Given SERVER = start internal gRPC server
81
- When wait 1 seconds
82
-
83
77
  Given CLIENT = new internal gRPC client on service 'account.UserController'
84
78
 
85
79
  Given end preconditions
@@ -0,0 +1,62 @@
1
+
2
+ #################################################
3
+ # HolAdo (Holistic Automation do)
4
+ #
5
+ # (C) Copyright 2021-2025 by Eric Klumpp
6
+ #
7
+ # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
8
+ #
9
+ # The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
10
+
11
+ # The Software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the Software.
12
+ #################################################
13
+
14
+
15
+ #################################################
16
+ # GOAL: Tools when using a clone of HolAdo project.
17
+ #
18
+ # This file contains methods usefull to initialize environments using a clone of HolAdo project.
19
+ #
20
+ # USAGE:
21
+ # - Copy this file in projects using HolAdo.
22
+ # - Define environment variable HOLADO_PATH with path to cloned HolAdo project.
23
+ # If HOLADO_PATH is defined, sources of cloned HolAdo project are used, else installed holado package is used.
24
+ #################################################
25
+
26
+
27
+
28
+ import os
29
+ import sys
30
+
31
+
32
+ def insert_sys_path(path, index=0):
33
+ """Insert a path in sys.path if it doesn't already exists.
34
+ """
35
+ if path not in sys.path:
36
+ sys.path.insert(index, path)
37
+
38
+ def insert_holado_source_paths(with_test_behave=True):
39
+ """Insert in sys.path all HolAdo source paths.
40
+ If environment variable HOLADO_PATH is defined with path to HolAdo project, following paths are inserted in sys.path:
41
+ - HOLADO_PATH/src: path to holado modules sources
42
+ - HOLADO_PATH/tests/behave (if with_test_behave==True): path to holado test sources, needed by testing solutions
43
+ """
44
+ holado_path = os.getenv('HOLADO_PATH')
45
+ if holado_path is None:
46
+ try:
47
+ import holado # @UnusedImport
48
+ except Exception as exc:
49
+ if "No module named" in str(exc):
50
+ raise Exception(f"If environment variable HOLADO_PATH is not defined with path to HolAdo project, 'holado' python package must be installed")
51
+ else:
52
+ raise exc
53
+ else:
54
+ # holado is installed, and all sources are already accessible
55
+ pass
56
+ else:
57
+ print(f"Using HolAdo project installed in '{holado_path}'")
58
+ insert_sys_path(os.path.join(holado_path, "src"))
59
+ if with_test_behave:
60
+ insert_sys_path(os.path.join(holado_path, "tests", "behave"))
61
+
62
+
test_holado/logging.conf CHANGED
@@ -3,7 +3,9 @@ level=INFO
3
3
  #level=DEBUG
4
4
  #level=TRACE
5
5
  log_on_console=False
6
+ #log_on_console=True
6
7
  log_in_file=True
8
+ #log_in_file=False
7
9
 
8
10
  [loggers_levels]
9
11
  holado=INFO
@@ -32,6 +34,7 @@ holado_s3.tools.s3.minio_client.trace=INFO
32
34
  #holado_scripting.common.tools.variable_manager=TRACE
33
35
  #holado_scripting.text.interpreter=TRACE
34
36
 
37
+ #holado_system=DEBUG
35
38
  #holado_test.behave.behave=DEBUG
36
39
 
37
40
  # External libraries
File without changes