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.
- {holado-0.5.2.dist-info → holado-0.6.0.dist-info}/METADATA +4 -2
- {holado-0.5.2.dist-info → holado-0.6.0.dist-info}/RECORD +41 -25
- holado_db/tools/db/clients/base/db_client.py +3 -2
- holado_docker/sdk/docker/docker_client.py +64 -22
- holado_docker/tests/behave/steps/__init__.py +1 -1
- holado_docker/tests/behave/steps/tools/docker_controller/client_steps.py +94 -0
- holado_docker/tools/docker_controller/client/rest/docker_controller_client.py +48 -0
- holado_docker/tools/docker_controller/docker_controller_manager.py +44 -0
- holado_docker/tools/docker_controller/server/Dockerfile +68 -0
- holado_docker/tools/docker_controller/server/grpc/README +2 -0
- holado_docker/tools/{docker_controler/docker_controler_client.py → docker_controller/server/grpc/docker_controller_client.py} +1 -1
- holado_docker/tools/{docker_controler/docker_controler_server.py → docker_controller/server/grpc/docker_controller_server.py} +3 -3
- holado_docker/tools/docker_controller/server/requirements.txt +3 -0
- holado_docker/tools/docker_controller/server/rest/api/__init__.py +41 -0
- holado_docker/tools/docker_controller/server/rest/api/container.py +55 -0
- holado_docker/tools/docker_controller/server/rest/initialize_holado.py +72 -0
- holado_docker/tools/docker_controller/server/rest/openapi.yaml +134 -0
- holado_docker/tools/docker_controller/server/rest/run.py +28 -0
- holado_docker/tools/docker_controller/server/run_docker_controller_in_docker.sh +101 -0
- holado_grpc/TODO +8 -0
- holado_helper/docker/run_holado_test_nonreg_in_docker.sh +2 -2
- holado_helper/docker/run_terminal_in_docker-with_docker_control.sh +1 -1
- holado_helper/docker/run_terminal_in_docker.sh +1 -1
- holado_python/standard_library/ssl/resources/certificates/tcpbin.crt +16 -16
- holado_python/standard_library/ssl/resources/certificates/tcpbin.key +26 -26
- holado_rest/api/rest/rest_client.py +2 -1
- holado_rest/api/rest/rest_manager.py +9 -3
- holado_rest/tests/behave/steps/private/api/rest_steps.py +0 -1
- holado_swagger/swagger_hub/mockserver/mockserver_manager.py +3 -2
- holado_test/tests/behave/steps/scenario/scenario_steps.py +14 -1
- test_holado/features/Test/test_docker_controller.feature +13 -0
- test_holado/features/Test/test_parameter.feature +15 -0
- test_holado/tools/connexion/api_rest/openapi.yaml +16 -0
- holado_docker/tests/behave/steps/tools/docker_steps.py → test_holado/tools/connexion/api_rest/run.py +5 -19
- {holado-0.5.2.dist-info → holado-0.6.0.dist-info}/WHEEL +0 -0
- {holado-0.5.2.dist-info → holado-0.6.0.dist-info}/licenses/LICENSE +0 -0
- /holado_docker/tools/{docker_controler → docker_controller/server/grpc}/__init__.py +0 -0
- /holado_docker/tools/{docker_controler → docker_controller/server/grpc}/proto/compile_proto.py +0 -0
- /holado_docker/tools/{docker_controler → docker_controller/server/grpc}/proto/definitions/docker_controler.proto +0 -0
- /holado_docker/tools/{docker_controler → docker_controller/server/grpc}/proto/generated/docker_controler_pb2.py +0 -0
- /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
|
+
|
holado_docker/tests/behave/steps/tools/docker_steps.py → test_holado/tools/connexion/api_rest/run.py
RENAMED
|
@@ -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
|
-
|
|
17
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|
/holado_docker/tools/{docker_controler → docker_controller/server/grpc}/proto/compile_proto.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|