codemie-test-harness 0.1.148__py3-none-any.whl → 0.1.150__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.

@@ -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=[f"{row}" for row in sql_tools_test_data],
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,26 @@ 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
+ sleep(300)
73
+ end_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%S.%fZ")
74
+ client.finish_launch(end_time)
75
+
76
+
77
+ atexit.register(force_finish_rp_launch)
78
+
79
+
59
80
  def pytest_configure(config):
60
81
  """Pytest hook that runs before test collection starts.
61
82
 
@@ -93,22 +114,6 @@ def pytest_configure(config):
93
114
  )
94
115
 
95
116
 
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
117
  @pytest.fixture(scope="session")
113
118
  def client():
114
119
  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=[f"{row}" for row in sql_tools_test_data],
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"
@@ -13,7 +13,7 @@ from codemie_test_harness.tests.utils.base_utils import get_random_name
13
13
 
14
14
 
15
15
  @pytest.mark.regression
16
- @pytest.mark.skip(reason="Need to investigate codemie-tools for fix")
16
+ # @pytest.mark.skip(reason="Need to investigate codemie-tools for fix")
17
17
  def test_workflow_with_keycloak_tool_direct(
18
18
  keycloak_integration, workflow_utils, workflow_with_tool, similarity_check
19
19
  ):
@@ -51,7 +51,7 @@ def test_workflow_with_keycloak_tool_with_hardcoded_args(
51
51
 
52
52
 
53
53
  @pytest.mark.regression
54
- @pytest.mark.skip(reason="Need to investigate codemie-tools for fix")
54
+ # @pytest.mark.skip(reason="Need to investigate codemie-tools for fix")
55
55
  def test_workflow_with_keycloak_tool_with_overriding_args(
56
56
  keycloak_integration, workflow_utils, workflow_with_tool, similarity_check
57
57
  ):
@@ -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=[f"{row}" for row in sql_tools_test_data],
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.148
3
+ Version: 0.1.150
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.148)
16
+ Requires-Dist: codemie-sdk-python (==0.1.150)
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=I8SMMWt0ci6vF1mIbd_pYJF--zGiy8L7rutwwz7tMAw,2576
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=BRq0QKY9OHpqUGe6D-sfckCS8EW6vdHn8iDcb3qYOsk,28994
60
+ codemie_test_harness/tests/conftest.py,sha256=B5EQtPnYqppoXjoGN6g71tCro9v1LxO1p9NRET1MA_8,28989
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=jBTVA13jvHxa4a926PD5Ljlf4FSHvptjMVdE_6MUFoY,2849
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
@@ -282,7 +282,7 @@ codemie_test_harness/tests/workflow/direct_tools_calling/__init__.py,sha256=47DE
282
282
  codemie_test_harness/tests/workflow/direct_tools_calling/default_integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
283
283
  codemie_test_harness/tests/workflow/direct_tools_calling/default_integrations/test_default_integrations_for_tool.py,sha256=uWhdAnVqk-WrSB9QrHZyJLIQPvLhHayfEL1OZugU00A,8232
284
284
  codemie_test_harness/tests/workflow/direct_tools_calling/default_integrations/test_default_integrations_for_tool_kit.py,sha256=kbCExIw1BBgNjmLNPpwJMncyNvA2Lq3xZQoTVr6K9QI,8437
285
- codemie_test_harness/tests/workflow/direct_tools_calling/test_workflow_with_access_management_tool.py,sha256=HtAYfbVhIAmVY200avGS4_ziNR0geKAx8U35Vtf9ICE,2507
285
+ codemie_test_harness/tests/workflow/direct_tools_calling/test_workflow_with_access_management_tool.py,sha256=mVXsx4afM_r0yWccocFO0N8LUW0sXu3NTpPsvEIUuOs,2511
286
286
  codemie_test_harness/tests/workflow/direct_tools_calling/test_workflow_with_ado_test_plan_tools.py,sha256=UUSgyhE7GKAkyCQMUm7Y2VkQkiR7-Fr5robBpLvoH-M,2685
287
287
  codemie_test_harness/tests/workflow/direct_tools_calling/test_workflow_with_ado_wiki_tools.py,sha256=FOQEqm0u4UvRAfjJFo2API-qySGy4sqKD-hwE1Lm6Js,2744
288
288
  codemie_test_harness/tests/workflow/direct_tools_calling/test_workflow_with_ado_work_item_tools.py,sha256=4h3z3tUTqBLZPjDQCbnW2CkoGX0gEjZlDkYbLHSilZA,2799
@@ -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=IXPDzG3ZCpTPi-HjD5h72NQbgdb8a1gRIi9929P6W0M,3137
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.148.dist-info/METADATA,sha256=2y0snuPrG9cFdIjTDfnL5Z71Nhaq026a-Kjei0P-36k,8998
340
- codemie_test_harness-0.1.148.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
341
- codemie_test_harness-0.1.148.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
342
- codemie_test_harness-0.1.148.dist-info/RECORD,,
339
+ codemie_test_harness-0.1.150.dist-info/METADATA,sha256=wu8LbnG3S8dv_N6f3z6duYW63mL0adZXpdUGXHOjrZ8,8998
340
+ codemie_test_harness-0.1.150.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
341
+ codemie_test_harness-0.1.150.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
342
+ codemie_test_harness-0.1.150.dist-info/RECORD,,