codemie-test-harness 0.1.148__py3-none-any.whl → 0.1.149__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 codemie-test-harness might be problematic. Click here for more details.
- codemie_test_harness/tests/assistant/tools/datamanagement/test_assistant_with_data_management_tools.py +2 -1
- codemie_test_harness/tests/conftest.py +20 -16
- codemie_test_harness/tests/workflow/assistant_tools/data_management/test_workflow_with_assistant_with_data_management_tools.py +3 -1
- codemie_test_harness/tests/workflow/virtual_assistant_tools/data_management/test_workflow_with_data_management_tools.py +3 -1
- {codemie_test_harness-0.1.148.dist-info → codemie_test_harness-0.1.149.dist-info}/METADATA +2 -2
- {codemie_test_harness-0.1.148.dist-info → codemie_test_harness-0.1.149.dist-info}/RECORD +8 -8
- {codemie_test_harness-0.1.148.dist-info → codemie_test_harness-0.1.149.dist-info}/WHEEL +0 -0
- {codemie_test_harness-0.1.148.dist-info → codemie_test_harness-0.1.149.dist-info}/entry_points.txt +0 -0
|
@@ -4,6 +4,7 @@ import uuid
|
|
|
4
4
|
import pytest
|
|
5
5
|
from codemie_sdk.models.integration import CredentialTypes
|
|
6
6
|
|
|
7
|
+
from codemie_test_harness.tests.enums.integrations import DataBaseDialect
|
|
7
8
|
from codemie_test_harness.tests.enums.tools import (
|
|
8
9
|
Toolkit,
|
|
9
10
|
DataManagementTool,
|
|
@@ -46,7 +47,7 @@ def test_create_assistant_with_elastic_tool(
|
|
|
46
47
|
@pytest.mark.parametrize(
|
|
47
48
|
"db_dialect",
|
|
48
49
|
sql_tools_test_data,
|
|
49
|
-
ids=[
|
|
50
|
+
ids=[DataBaseDialect.MY_SQL, DataBaseDialect.POSTGRES, DataBaseDialect.MS_SQL],
|
|
50
51
|
)
|
|
51
52
|
@pytest.mark.testcase("EPMCDME-6132")
|
|
52
53
|
@pytest.mark.skipif(
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import subprocess
|
|
3
3
|
import uuid
|
|
4
|
+
import atexit
|
|
4
5
|
from time import sleep
|
|
5
6
|
from typing import List, Optional
|
|
6
7
|
from pathlib import Path
|
|
@@ -56,6 +57,25 @@ from codemie_test_harness.tests.utils.yaml_utils import (
|
|
|
56
57
|
logger = setup_logger(__name__)
|
|
57
58
|
|
|
58
59
|
|
|
60
|
+
def force_finish_rp_launch():
|
|
61
|
+
from reportportal_client._internal.local import current
|
|
62
|
+
|
|
63
|
+
client = current()
|
|
64
|
+
if client and hasattr(client, "finish_launch") and hasattr(client, "launch_uuid"):
|
|
65
|
+
if (
|
|
66
|
+
client.launch_uuid
|
|
67
|
+
and hasattr(client, "use_own_launch")
|
|
68
|
+
and client.use_own_launch
|
|
69
|
+
):
|
|
70
|
+
from datetime import datetime, timezone
|
|
71
|
+
|
|
72
|
+
end_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%S.%fZ")
|
|
73
|
+
client.finish_launch(end_time)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
atexit.register(force_finish_rp_launch)
|
|
77
|
+
|
|
78
|
+
|
|
59
79
|
def pytest_configure(config):
|
|
60
80
|
"""Pytest hook that runs before test collection starts.
|
|
61
81
|
|
|
@@ -93,22 +113,6 @@ def pytest_configure(config):
|
|
|
93
113
|
)
|
|
94
114
|
|
|
95
115
|
|
|
96
|
-
def pytest_unconfigure(config):
|
|
97
|
-
"""Called before test process is exited - cleanup ReportPortal and other resources."""
|
|
98
|
-
from reportportal_client._internal.local import current
|
|
99
|
-
from datetime import datetime, timezone
|
|
100
|
-
|
|
101
|
-
client = current()
|
|
102
|
-
if client and hasattr(client, "finish_launch") and hasattr(client, "launch_uuid"):
|
|
103
|
-
if (
|
|
104
|
-
client.launch_uuid
|
|
105
|
-
and hasattr(client, "use_own_launch")
|
|
106
|
-
and client.use_own_launch
|
|
107
|
-
):
|
|
108
|
-
end_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%S.%fZ")
|
|
109
|
-
client.finish_launch(end_time)
|
|
110
|
-
|
|
111
|
-
|
|
112
116
|
@pytest.fixture(scope="session")
|
|
113
117
|
def client():
|
|
114
118
|
return get_client()
|
|
@@ -3,6 +3,8 @@ import os
|
|
|
3
3
|
import pytest
|
|
4
4
|
|
|
5
5
|
from codemie_sdk.models.integration import CredentialTypes
|
|
6
|
+
|
|
7
|
+
from codemie_test_harness.tests.enums.integrations import DataBaseDialect
|
|
6
8
|
from codemie_test_harness.tests.enums.tools import DataManagementTool, Toolkit
|
|
7
9
|
from codemie_test_harness.tests.test_data.data_management_tools_test_data import (
|
|
8
10
|
ELASTIC_TOOL_TASK,
|
|
@@ -46,7 +48,7 @@ def test_workflow_with_assistant_with_elastic_tools(
|
|
|
46
48
|
@pytest.mark.parametrize(
|
|
47
49
|
"db_dialect",
|
|
48
50
|
sql_tools_test_data,
|
|
49
|
-
ids=[
|
|
51
|
+
ids=[DataBaseDialect.MY_SQL, DataBaseDialect.POSTGRES, DataBaseDialect.MS_SQL],
|
|
50
52
|
)
|
|
51
53
|
@pytest.mark.skipif(
|
|
52
54
|
os.getenv("ENV") == "local", reason="Skipping this test on local environment"
|
|
@@ -3,6 +3,8 @@ import os
|
|
|
3
3
|
import pytest
|
|
4
4
|
|
|
5
5
|
from codemie_sdk.models.integration import CredentialTypes
|
|
6
|
+
|
|
7
|
+
from codemie_test_harness.tests.enums.integrations import DataBaseDialect
|
|
6
8
|
from codemie_test_harness.tests.enums.tools import DataManagementTool
|
|
7
9
|
from codemie_test_harness.tests.test_data.data_management_tools_test_data import (
|
|
8
10
|
ELASTIC_TOOL_TASK,
|
|
@@ -51,7 +53,7 @@ def test_workflow_with_elastic_tools(
|
|
|
51
53
|
@pytest.mark.parametrize(
|
|
52
54
|
"db_dialect",
|
|
53
55
|
sql_tools_test_data,
|
|
54
|
-
ids=[
|
|
56
|
+
ids=[DataBaseDialect.MY_SQL, DataBaseDialect.POSTGRES, DataBaseDialect.MS_SQL],
|
|
55
57
|
)
|
|
56
58
|
@pytest.mark.skipif(
|
|
57
59
|
os.getenv("ENV") == "local", reason="Skipping this test on local environment"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: codemie-test-harness
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.149
|
|
4
4
|
Summary: Autotest for CodeMie backend and UI
|
|
5
5
|
Author: Anton Yeromin
|
|
6
6
|
Author-email: anton_yeromin@epam.com
|
|
@@ -13,7 +13,7 @@ Requires-Dist: aws-assume-role-lib (>=2.10.0,<3.0.0)
|
|
|
13
13
|
Requires-Dist: boto3 (>=1.39.8,<2.0.0)
|
|
14
14
|
Requires-Dist: click (>=8.1.7,<9.0.0)
|
|
15
15
|
Requires-Dist: codemie-plugins (>=0.1.123,<0.2.0)
|
|
16
|
-
Requires-Dist: codemie-sdk-python (==0.1.
|
|
16
|
+
Requires-Dist: codemie-sdk-python (==0.1.149)
|
|
17
17
|
Requires-Dist: pytest (>=8.4.1,<9.0.0)
|
|
18
18
|
Requires-Dist: pytest-playwright (>=0.7.0,<0.8.0)
|
|
19
19
|
Requires-Dist: pytest-reportportal (>=5.5.2,<6.0.0)
|
|
@@ -34,7 +34,7 @@ codemie_test_harness/tests/assistant/tools/cloud/test_cloud_tools.py,sha256=mymG
|
|
|
34
34
|
codemie_test_harness/tests/assistant/tools/codebase/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
35
|
codemie_test_harness/tests/assistant/tools/codebase/test_codebase_tools.py,sha256=KbQqf9fQGN1sPM7nKTkIsq07NpYClSm7O1wAp3rGQJg,1624
|
|
36
36
|
codemie_test_harness/tests/assistant/tools/datamanagement/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
|
-
codemie_test_harness/tests/assistant/tools/datamanagement/test_assistant_with_data_management_tools.py,sha256=
|
|
37
|
+
codemie_test_harness/tests/assistant/tools/datamanagement/test_assistant_with_data_management_tools.py,sha256=DQ13-x2hduqakOIayvCpgKaq95D60FhFdTs1VjIe3A8,2683
|
|
38
38
|
codemie_test_harness/tests/assistant/tools/filemanagement/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
39
39
|
codemie_test_harness/tests/assistant/tools/filemanagement/test_assistant_with_file_management_tools.py,sha256=CrnJMvfQS3qPxpklaYBonof3W1J729wt1UefaM4tL3g,3826
|
|
40
40
|
codemie_test_harness/tests/assistant/tools/git/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -57,7 +57,7 @@ codemie_test_harness/tests/assistant/tools/servicenow/__init__.py,sha256=47DEQpj
|
|
|
57
57
|
codemie_test_harness/tests/assistant/tools/servicenow/test_servicenow_tools.py,sha256=JV_n6COaCsd0_rxQBJvvLZfPdo8BsCbG8Ti-UpzFvfQ,644
|
|
58
58
|
codemie_test_harness/tests/assistant/tools/vcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
59
59
|
codemie_test_harness/tests/assistant/tools/vcs/test_assistant_with_vcs_tools.py,sha256=5-QybLWmYSqHG4Sqr-IN-vNcStV4skSwCJQN44Nfats,922
|
|
60
|
-
codemie_test_harness/tests/conftest.py,sha256=
|
|
60
|
+
codemie_test_harness/tests/conftest.py,sha256=8B0Jf0xoX2pt64WQY4h0p7eKfReypRWpftZ50jSDdG0,28966
|
|
61
61
|
codemie_test_harness/tests/conversations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
62
62
|
codemie_test_harness/tests/conversations/test_conversations_endpoints.py,sha256=SQraRVrjjE4mYTs4EuGzMrO96DuOuKTiYQ4ZRBhHx70,3913
|
|
63
63
|
codemie_test_harness/tests/e2e/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -250,7 +250,7 @@ codemie_test_harness/tests/workflow/assistant_tools/cloud/test_workflow_with_ass
|
|
|
250
250
|
codemie_test_harness/tests/workflow/assistant_tools/codebase/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
251
251
|
codemie_test_harness/tests/workflow/assistant_tools/codebase/test_worfklow_with_assistant_codebase_tools.py,sha256=d_4CJbikU5QzeRjwk0GyY0HE_iI_ojSG0gNCss2SVHQ,1962
|
|
252
252
|
codemie_test_harness/tests/workflow/assistant_tools/data_management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
253
|
-
codemie_test_harness/tests/workflow/assistant_tools/data_management/test_workflow_with_assistant_with_data_management_tools.py,sha256=
|
|
253
|
+
codemie_test_harness/tests/workflow/assistant_tools/data_management/test_workflow_with_assistant_with_data_management_tools.py,sha256=jDpCLegJDi8D_iMtoPu5K7ooa-sqBOwqyh-91lT-wzE,2957
|
|
254
254
|
codemie_test_harness/tests/workflow/assistant_tools/default_integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
255
255
|
codemie_test_harness/tests/workflow/assistant_tools/default_integrations/test_default_integrations_for_tool.py,sha256=05YTrr9IqR9gR-jPVdNNzbSiwWbK7yHOUunPttRwoTk,8153
|
|
256
256
|
codemie_test_harness/tests/workflow/assistant_tools/default_integrations/test_default_integrations_for_tool_kit.py,sha256=QmgFweqg-pSQs29O4jnanVlUZjoVejqbO35oqV2MGzk,8419
|
|
@@ -310,7 +310,7 @@ codemie_test_harness/tests/workflow/virtual_assistant_tools/cloud/test_workflow_
|
|
|
310
310
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/codebase/__init__.py,sha256=kCzJLR44IfB9ZncaLNOtyUqlzvyOG3BXclsDFS5MaQg,46
|
|
311
311
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/codebase/test_workflow_with_codebase_tools.py,sha256=xDuIH03ZEsnbUTp3Rz775mcXZPKrTvXbCQXpDNypWIk,3091
|
|
312
312
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/data_management/__init__.py,sha256=Vk3MBJAVfJA8uxRJdY3aH_5lCWkTBcE_l9xw5FzUt7I,53
|
|
313
|
-
codemie_test_harness/tests/workflow/virtual_assistant_tools/data_management/test_workflow_with_data_management_tools.py,sha256=
|
|
313
|
+
codemie_test_harness/tests/workflow/virtual_assistant_tools/data_management/test_workflow_with_data_management_tools.py,sha256=Znpd8WsAfsemSgAGaOBz2Ou2x31USdga3n5NIkDHt_U,3245
|
|
314
314
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/default_integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
315
315
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/default_integrations/test_default_integrations_for_tool.py,sha256=mQKv_R98aiUXlPWhQruPBLPtin4gvBq8aykOvQOLRxc,8091
|
|
316
316
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/default_integrations/test_default_integrations_for_tool_kit.py,sha256=gC0Qj98ekHtKRRiNgtZTkb2k8TJJ5_ZVzvUQ_9r6k6c,8377
|
|
@@ -336,7 +336,7 @@ codemie_test_harness/tests/workflow/virtual_assistant_tools/servicenow/__init__.
|
|
|
336
336
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/servicenow/test_workflow_with_servicenow_tools.py,sha256=Cxe5Yuy9JE_IEsnQOThpVIZQqpfLuHfDkF6JwLngDc8,890
|
|
337
337
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/vcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
338
338
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/vcs/test_workflow_with_vcs_tools.py,sha256=tm0NvUf_UtzLPTYJWykYpsNoxoVs-Eh80guDmRwImwg,1106
|
|
339
|
-
codemie_test_harness-0.1.
|
|
340
|
-
codemie_test_harness-0.1.
|
|
341
|
-
codemie_test_harness-0.1.
|
|
342
|
-
codemie_test_harness-0.1.
|
|
339
|
+
codemie_test_harness-0.1.149.dist-info/METADATA,sha256=OI6YmvBvp-IxM9jGPP-TzNi50E-WmAOagHFD7b9nHFg,8998
|
|
340
|
+
codemie_test_harness-0.1.149.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
341
|
+
codemie_test_harness-0.1.149.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
|
|
342
|
+
codemie_test_harness-0.1.149.dist-info/RECORD,,
|
|
File without changes
|
{codemie_test_harness-0.1.148.dist-info → codemie_test_harness-0.1.149.dist-info}/entry_points.txt
RENAMED
|
File without changes
|