codemie-test-harness 0.1.138__py3-none-any.whl → 0.1.139__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/__init__.py +3 -0
- codemie_test_harness/tests/utils/__init__.py +0 -12
- codemie_test_harness/tests/utils/provider_utils.py +2 -3
- codemie_test_harness/tests/utils/workflow_utils.py +2 -3
- codemie_test_harness/tests/workflow/config_validation/test_config_validation.py +1 -1
- {codemie_test_harness-0.1.138.dist-info → codemie_test_harness-0.1.139.dist-info}/METADATA +2 -2
- {codemie_test_harness-0.1.138.dist-info → codemie_test_harness-0.1.139.dist-info}/RECORD +9 -9
- {codemie_test_harness-0.1.138.dist-info → codemie_test_harness-0.1.139.dist-info}/WHEEL +0 -0
- {codemie_test_harness-0.1.138.dist-info → codemie_test_harness-0.1.139.dist-info}/entry_points.txt +0 -0
|
@@ -39,6 +39,9 @@ PROJECT = os.getenv("PROJECT_NAME", "codemie")
|
|
|
39
39
|
TEST_USER = os.getenv("TEST_USER_FULL_NAME", "Test User")
|
|
40
40
|
GITHUB_URL = os.getenv("GITHUB_URL", "https://github.com")
|
|
41
41
|
|
|
42
|
+
API_DOMAIN = os.getenv("CODEMIE_API_DOMAIN")
|
|
43
|
+
VERIFY_SSL = os.getenv("VERIFY_SSL", "").lower() == "true"
|
|
44
|
+
|
|
42
45
|
autotest_entity_prefix = (
|
|
43
46
|
f"{''.join(random.choice(string.ascii_lowercase) for _ in range(3))}_"
|
|
44
47
|
)
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
from pathlib import Path
|
|
3
|
-
|
|
4
|
-
from dotenv import load_dotenv
|
|
5
|
-
from codemie_test_harness.cli.runner import resolve_tests_path_and_root
|
|
6
|
-
|
|
7
|
-
_, root_dir = resolve_tests_path_and_root()
|
|
8
|
-
env_path = Path(root_dir) / ".env"
|
|
9
|
-
load_dotenv(env_path)
|
|
10
|
-
|
|
11
|
-
api_domain = os.getenv("CODEMIE_API_DOMAIN")
|
|
12
|
-
verify_ssl = os.getenv("VERIFY_SSL", "").lower() == "true"
|
|
@@ -6,8 +6,7 @@ from typing import Optional, Dict, Any
|
|
|
6
6
|
import requests
|
|
7
7
|
from codemie_sdk import CodeMieClient
|
|
8
8
|
|
|
9
|
-
from codemie_test_harness.tests import autotest_entity_prefix
|
|
10
|
-
from codemie_test_harness.tests.utils import api_domain, verify_ssl
|
|
9
|
+
from codemie_test_harness.tests import autotest_entity_prefix, API_DOMAIN, VERIFY_SSL
|
|
11
10
|
from codemie_test_harness.tests.utils.base_utils import (
|
|
12
11
|
BaseUtils,
|
|
13
12
|
get_random_name,
|
|
@@ -24,7 +23,7 @@ class ProviderUtils(BaseUtils):
|
|
|
24
23
|
"""Initialize the provides service."""
|
|
25
24
|
|
|
26
25
|
super().__init__(client)
|
|
27
|
-
self._api = RequestHandler(
|
|
26
|
+
self._api = RequestHandler(API_DOMAIN, self.client.token, VERIFY_SSL)
|
|
28
27
|
|
|
29
28
|
@staticmethod
|
|
30
29
|
def provider_request_json():
|
|
@@ -5,8 +5,7 @@ from codemie_sdk.models.workflow import (
|
|
|
5
5
|
WorkflowUpdateRequest,
|
|
6
6
|
WorkflowMode,
|
|
7
7
|
)
|
|
8
|
-
from codemie_test_harness.tests import PROJECT
|
|
9
|
-
from codemie_test_harness.tests.utils import api_domain, verify_ssl
|
|
8
|
+
from codemie_test_harness.tests import PROJECT, API_DOMAIN, VERIFY_SSL
|
|
10
9
|
from codemie_test_harness.tests.utils.base_utils import (
|
|
11
10
|
BaseUtils,
|
|
12
11
|
get_random_name,
|
|
@@ -40,7 +39,7 @@ class WorkflowUtils(BaseUtils):
|
|
|
40
39
|
Raw response from '/v1/workflows' endpoint
|
|
41
40
|
"""
|
|
42
41
|
|
|
43
|
-
request_handler = RequestHandler(
|
|
42
|
+
request_handler = RequestHandler(API_DOMAIN, self.client.token, VERIFY_SSL)
|
|
44
43
|
|
|
45
44
|
return request_handler.post(
|
|
46
45
|
workflow_endpoint, dict, json_data=request.model_dump()
|
|
@@ -85,7 +85,7 @@ INVALID_CONFIG_PATH = "test_data/workflow/invalid_config/"
|
|
|
85
85
|
@pytest.mark.parametrize(
|
|
86
86
|
"file_name, expected_errors",
|
|
87
87
|
VALIDATION_TEST_DATA,
|
|
88
|
-
ids=[f"{row[
|
|
88
|
+
ids=[f"{row[0]}" for row in VALIDATION_TEST_DATA],
|
|
89
89
|
)
|
|
90
90
|
@pytest.mark.testcase("EPMCDME-5458")
|
|
91
91
|
@pytest.mark.regression
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: codemie-test-harness
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.139
|
|
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.139)
|
|
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)
|
|
@@ -9,7 +9,7 @@ codemie_test_harness/cli/constants.py,sha256=956_apPJ4MjhnKo1ZtDooXCd2N89J3vyAB-
|
|
|
9
9
|
codemie_test_harness/cli/runner.py,sha256=5VAL4noqiKrGjo5oYVJKzt4QNmkZFTe1Mw6Mll9uGfc,2349
|
|
10
10
|
codemie_test_harness/cli/utils.py,sha256=NlRa8VFbXTbD74jfUaSqbccGNu2R1dUIg8d5SyDTmIM,1136
|
|
11
11
|
codemie_test_harness/pytest.ini,sha256=Sxr-zVHZ9hJt2Ks0x7xxjh_SA-KhD-vRrDWAfDd9QKs,192
|
|
12
|
-
codemie_test_harness/tests/__init__.py,sha256=
|
|
12
|
+
codemie_test_harness/tests/__init__.py,sha256=pVv8urVVN2gfi07RzOu-a96EPEEOH-rtRCqBtjnmbRk,1421
|
|
13
13
|
codemie_test_harness/tests/assistant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
codemie_test_harness/tests/assistant/datasource/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
15
|
codemie_test_harness/tests/assistant/datasource/test_code_datasource.py,sha256=NZmw3efv_FBkyi-1FnkQjNknlg34w4PEFv0rodUvCFw,2599
|
|
@@ -207,7 +207,7 @@ codemie_test_harness/tests/ui/test_workflow_details.py,sha256=PkLMhvQSd3XOYZMj8Q
|
|
|
207
207
|
codemie_test_harness/tests/ui/test_workflow_executions_page.py,sha256=9GMFNKtIO3AN8bnaM8XIcoR79X09_vLTF4tbMJ-ebCw,11644
|
|
208
208
|
codemie_test_harness/tests/ui/test_workflow_templates.py,sha256=A6eaR-7M5VXoPlUJfKIAzqdxVquC1WnzwzMpOg74dwc,4558
|
|
209
209
|
codemie_test_harness/tests/ui/test_workflows.py,sha256=_UQT9soqxV68aqFt0V3KJ3iJFA55kzE891EJIER9kk8,3464
|
|
210
|
-
codemie_test_harness/tests/utils/__init__.py,sha256=
|
|
210
|
+
codemie_test_harness/tests/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
211
211
|
codemie_test_harness/tests/utils/assistant_utils.py,sha256=jy3dFF4ZiT22Wippl1a5jIEAAyJ71P0ss8AIHPefz6k,6511
|
|
212
212
|
codemie_test_harness/tests/utils/aws_parameters_store.py,sha256=uwhvrk4qYYWLILS082SFAqQaGmhrW6aPmmJo-dPTN84,20637
|
|
213
213
|
codemie_test_harness/tests/utils/base_utils.py,sha256=tfishCUxO3iEuasWOifoF9_fXspm4uIHS26Ryqu-NxA,5998
|
|
@@ -222,12 +222,12 @@ codemie_test_harness/tests/utils/json_utils.py,sha256=PWO4Ixxgta_zkdq-8umcP9qwDS
|
|
|
222
222
|
codemie_test_harness/tests/utils/llm_utils.py,sha256=JPAlMYh-wQH4any5HWdpQOejCbhjqJCsztRU_fUq-SU,257
|
|
223
223
|
codemie_test_harness/tests/utils/logger_util.py,sha256=6Kca4pLxyTYnUgm2i3j19DdZSH6XUSGXPjHtExx33QU,828
|
|
224
224
|
codemie_test_harness/tests/utils/notification_utils.py,sha256=8HWgkTjcMDOoXq_8vzKVx8iSoVb4jSlx2_xJvRxa3V0,3480
|
|
225
|
-
codemie_test_harness/tests/utils/provider_utils.py,sha256=
|
|
225
|
+
codemie_test_harness/tests/utils/provider_utils.py,sha256=sgLLVv8j6fzVl6MNESlXTGsHa2WCZYTzlMJepcT3r7o,5117
|
|
226
226
|
codemie_test_harness/tests/utils/pytest_utils.py,sha256=k-mEjX2qpnh37sqKpJqYhZT6BV9974y_KaAhv8Xj9GI,284
|
|
227
227
|
codemie_test_harness/tests/utils/search_utils.py,sha256=SrXiB2d9wiI5ka9bgg0CD73GOX_1mqi2Hz5FBm5DsEU,1435
|
|
228
228
|
codemie_test_harness/tests/utils/similarity_check.py,sha256=1U66NGh6esISKABodtVobE2WnuFt0f6vcK3qUri6ZqU,1485
|
|
229
229
|
codemie_test_harness/tests/utils/user_utils.py,sha256=zJNrmL3Fb7iGuaVRobUMwJ2Og6NqEPcM_9lw60m18T8,242
|
|
230
|
-
codemie_test_harness/tests/utils/workflow_utils.py,sha256=
|
|
230
|
+
codemie_test_harness/tests/utils/workflow_utils.py,sha256=9y2C3r6pg2uVa4w2byoEJ0m0oH__Y3m1pcrnsHgHEnM,6002
|
|
231
231
|
codemie_test_harness/tests/utils/yaml_utils.py,sha256=y9fUf4u4G4SoCktPOwaC5x71iaDKhktbz_XUfI9kNis,1661
|
|
232
232
|
codemie_test_harness/tests/workflow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
233
233
|
codemie_test_harness/tests/workflow/assistant_tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -267,7 +267,7 @@ codemie_test_harness/tests/workflow/assistant_tools/servicenow/test_workflow_wit
|
|
|
267
267
|
codemie_test_harness/tests/workflow/assistant_tools/vcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
268
268
|
codemie_test_harness/tests/workflow/assistant_tools/vcs/workflow_with_assistant_vcs_tools.py,sha256=6mw0m4n74VZDFdlI8KFjXB5AyTwf6SxqSZal_3pmPa8,1020
|
|
269
269
|
codemie_test_harness/tests/workflow/config_validation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
270
|
-
codemie_test_harness/tests/workflow/config_validation/test_config_validation.py,sha256=
|
|
270
|
+
codemie_test_harness/tests/workflow/config_validation/test_config_validation.py,sha256=Dm5WHovYufO2FSP_aUUPI8j-Jx3S7GolcDgUBTl29es,4005
|
|
271
271
|
codemie_test_harness/tests/workflow/direct_tools_calling/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
272
272
|
codemie_test_harness/tests/workflow/direct_tools_calling/default_integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
273
273
|
codemie_test_harness/tests/workflow/direct_tools_calling/default_integrations/test_default_integrations_for_tool.py,sha256=uWhdAnVqk-WrSB9QrHZyJLIQPvLhHayfEL1OZugU00A,8232
|
|
@@ -323,7 +323,7 @@ codemie_test_harness/tests/workflow/virtual_assistant_tools/servicenow/__init__.
|
|
|
323
323
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/servicenow/test_workflow_with_servicenow_tools.py,sha256=Cxe5Yuy9JE_IEsnQOThpVIZQqpfLuHfDkF6JwLngDc8,890
|
|
324
324
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/vcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
325
325
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/vcs/test_workflow_with_vcs_tools.py,sha256=tm0NvUf_UtzLPTYJWykYpsNoxoVs-Eh80guDmRwImwg,1106
|
|
326
|
-
codemie_test_harness-0.1.
|
|
327
|
-
codemie_test_harness-0.1.
|
|
328
|
-
codemie_test_harness-0.1.
|
|
329
|
-
codemie_test_harness-0.1.
|
|
326
|
+
codemie_test_harness-0.1.139.dist-info/METADATA,sha256=R95gOa5AsUmCJd27ebgIuDsYAyl2y0o1yHCB7mzSbE4,8998
|
|
327
|
+
codemie_test_harness-0.1.139.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
328
|
+
codemie_test_harness-0.1.139.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
|
|
329
|
+
codemie_test_harness-0.1.139.dist-info/RECORD,,
|
|
File without changes
|
{codemie_test_harness-0.1.138.dist-info → codemie_test_harness-0.1.139.dist-info}/entry_points.txt
RENAMED
|
File without changes
|