holado 0.5.2__py3-none-any.whl → 0.6.0__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 (41) hide show
  1. {holado-0.5.2.dist-info → holado-0.6.0.dist-info}/METADATA +4 -2
  2. {holado-0.5.2.dist-info → holado-0.6.0.dist-info}/RECORD +41 -25
  3. holado_db/tools/db/clients/base/db_client.py +3 -2
  4. holado_docker/sdk/docker/docker_client.py +64 -22
  5. holado_docker/tests/behave/steps/__init__.py +1 -1
  6. holado_docker/tests/behave/steps/tools/docker_controller/client_steps.py +94 -0
  7. holado_docker/tools/docker_controller/client/rest/docker_controller_client.py +48 -0
  8. holado_docker/tools/docker_controller/docker_controller_manager.py +44 -0
  9. holado_docker/tools/docker_controller/server/Dockerfile +68 -0
  10. holado_docker/tools/docker_controller/server/grpc/README +2 -0
  11. holado_docker/tools/{docker_controler/docker_controler_client.py → docker_controller/server/grpc/docker_controller_client.py} +1 -1
  12. holado_docker/tools/{docker_controler/docker_controler_server.py → docker_controller/server/grpc/docker_controller_server.py} +3 -3
  13. holado_docker/tools/docker_controller/server/requirements.txt +3 -0
  14. holado_docker/tools/docker_controller/server/rest/api/__init__.py +41 -0
  15. holado_docker/tools/docker_controller/server/rest/api/container.py +55 -0
  16. holado_docker/tools/docker_controller/server/rest/initialize_holado.py +72 -0
  17. holado_docker/tools/docker_controller/server/rest/openapi.yaml +134 -0
  18. holado_docker/tools/docker_controller/server/rest/run.py +28 -0
  19. holado_docker/tools/docker_controller/server/run_docker_controller_in_docker.sh +101 -0
  20. holado_grpc/TODO +8 -0
  21. holado_helper/docker/run_holado_test_nonreg_in_docker.sh +2 -2
  22. holado_helper/docker/run_terminal_in_docker-with_docker_control.sh +1 -1
  23. holado_helper/docker/run_terminal_in_docker.sh +1 -1
  24. holado_python/standard_library/ssl/resources/certificates/tcpbin.crt +16 -16
  25. holado_python/standard_library/ssl/resources/certificates/tcpbin.key +26 -26
  26. holado_rest/api/rest/rest_client.py +2 -1
  27. holado_rest/api/rest/rest_manager.py +9 -3
  28. holado_rest/tests/behave/steps/private/api/rest_steps.py +0 -1
  29. holado_swagger/swagger_hub/mockserver/mockserver_manager.py +3 -2
  30. holado_test/tests/behave/steps/scenario/scenario_steps.py +14 -1
  31. test_holado/features/Test/test_docker_controller.feature +13 -0
  32. test_holado/features/Test/test_parameter.feature +15 -0
  33. test_holado/tools/connexion/api_rest/openapi.yaml +16 -0
  34. holado_docker/tests/behave/steps/tools/docker_steps.py → test_holado/tools/connexion/api_rest/run.py +5 -19
  35. {holado-0.5.2.dist-info → holado-0.6.0.dist-info}/WHEEL +0 -0
  36. {holado-0.5.2.dist-info → holado-0.6.0.dist-info}/licenses/LICENSE +0 -0
  37. /holado_docker/tools/{docker_controler → docker_controller/server/grpc}/__init__.py +0 -0
  38. /holado_docker/tools/{docker_controler → docker_controller/server/grpc}/proto/compile_proto.py +0 -0
  39. /holado_docker/tools/{docker_controler → docker_controller/server/grpc}/proto/definitions/docker_controler.proto +0 -0
  40. /holado_docker/tools/{docker_controler → docker_controller/server/grpc}/proto/generated/docker_controler_pb2.py +0 -0
  41. /holado_docker/tools/{docker_controler → docker_controller/server/grpc}/proto/generated/docker_controler_pb2_grpc.py +0 -0
@@ -81,7 +81,20 @@ def step_impl(context, var_name):
81
81
 
82
82
  __get_variable_manager().register_variable(var_name, res)
83
83
 
84
-
84
+ @Given(r"(?P<var_name>{Variable}) = defined user data (?P<user_data_name>{Str})(?: \(default: (?P<default_value>{Any})\))?")
85
+ def step_impl(context, var_name, user_data_name, default_value):
86
+ var_name = StepTools.evaluate_variable_name(var_name)
87
+ user_data_name = StepTools.evaluate_scenario_parameter(user_data_name)
88
+ default_value = StepTools.evaluate_scenario_parameter(default_value)
89
+
90
+ if user_data_name in context.config.userdata:
91
+ res = context.config.userdata[user_data_name]
92
+ else:
93
+ res = default_value
94
+
95
+ __get_variable_manager().register_variable(var_name, res)
96
+
97
+
85
98
 
86
99
 
87
100
 
@@ -0,0 +1,13 @@
1
+ @testing_solution
2
+ @docker_controller
3
+ Feature: Test Docker Controller client
4
+
5
+ Scenario: List containers
6
+
7
+ Given CLIENT = new Docker Controller client
8
+ | Name | Value |
9
+ | 'url' | 'http://localhost:8000' |
10
+
11
+ Given RESULT = list containers (Docker Controller client: CLIENT)
12
+
13
+
@@ -0,0 +1,15 @@
1
+ @testing_solution
2
+ @behave_parameter
3
+ Feature: Test behave parameter
4
+
5
+ Scenario: Parameter with -D argument
6
+
7
+ Given PARAM = defined user data 'A_PARAMETER_NAME'
8
+ Then PARAM == None
9
+
10
+ Given PARAM = defined user data 'A_PARAMETER_NAME' (default: 100)
11
+ Then PARAM == 100
12
+
13
+ Given PARAM = defined user data 'param' (default: 100)
14
+
15
+
@@ -0,0 +1,16 @@
1
+ openapi: "3.0.0"
2
+ info:
3
+ title: Test tool
4
+ version: 0.0.1
5
+ paths:
6
+ /ping:
7
+ get:
8
+ operationId: run.ping
9
+ responses:
10
+ '200':
11
+ description: "Ping"
12
+ content:
13
+ text/plain:
14
+ schema:
15
+ type: string
16
+
@@ -1,5 +1,3 @@
1
- # -*- coding: utf-8 -*-
2
-
3
1
  #################################################
4
2
  # HolAdo (Holistic Automation do)
5
3
  #
@@ -12,22 +10,10 @@
12
10
  # 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.
13
11
  #################################################
14
12
 
13
+ import connexion
15
14
 
16
- from holado.common.context.session_context import SessionContext
17
- from holado_test.behave.behave import * # @UnusedWildImport
18
- import logging
19
-
20
- logger = logging.getLogger(__name__)
21
-
22
-
23
- def __get_scenario_context():
24
- return SessionContext.instance().get_scenario_context()
25
-
26
- def __get_text_interpreter():
27
- return __get_scenario_context().get_text_interpreter()
28
-
29
- def __get_variable_manager():
30
- return __get_scenario_context().get_variable_manager()
31
-
32
-
15
+ def ping():
16
+ return True
33
17
 
18
+ app = connexion.FlaskApp(__name__)
19
+ app.add_api('openapi.yaml', resolver_error=501)
File without changes