sh-4.4$ iqe tests plugin relations_api -k test_tup /iqe_venv/lib/python3.11/site-packages/iqe/base/settings/_find_files.py:70: IQEDeprecationWarning: DEPRECATED: LOCAL conf path None not used warnings.warn(f"LOCAL conf path {local_conf_path} not used", IQEDeprecationWarning) Plugin path: /iqe_venv/lib/python3.11/site-packages/iqe_relations_api /iqe_venv/lib/python3.11/site-packages/iqe/base/settings/_find_files.py:70: IQEDeprecationWarning: DEPRECATED: LOCAL conf path None not used warnings.warn(f"LOCAL conf path {local_conf_path} not used", IQEDeprecationWarning) ---------------------------------------------------------------------------------------------------------------------------------------------------------------- live log sessionstart ---------------------------------------------------------------------------------------------------------------------------------------------------------------- 2024-09-23 18:11:19 INFO Attempting to authenticate with vault: https://vault.ci.ext.devshift.net/ 2024-09-23 18:11:19 INFO loaded cdapp configs from 'cdenvconfig.json' 2024-09-23 18:11:19 INFO fetching frontendenvironment for env_name 'env-ephemeral-dpjgkf' 2024-09-23 18:11:19 INFO ensuring default user is created in ephemeral environment... 2024-09-23 18:11:19 INFO getting/creating user: username: ephemeral-user, acctno: 0369233, orgid: 3340851 2024-09-23 18:11:19 INFO loaded cdapp configs from 'cdenvconfig.json' 2024-09-23 18:11:19 INFO fetching all secrets for namespace 'ephemeral-dpjgkf' 2024-09-23 18:11:20 INFO fetching frontendenvironment for env_name 'env-ephemeral-dpjgkf' ⛔ ERROR: Could not run "pip search iqe" to precheck package versions /iqe_venv/lib/python3.11/site-packages/urllib3/connectionpool.py:1099: InsecureRequestWarning: Unverified HTTPS request is being made to host 'issues.redhat.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings warnings.warn( /iqe_venv/lib/python3.11/site-packages/urllib3/connectionpool.py:1099: InsecureRequestWarning: Unverified HTTPS request is being made to host 'issues.redhat.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings warnings.warn( 2024-09-23 18:11:29 INFO JIRA blocker connected, using 'https://issues.redhat.com' ================================================================================================================================================================= test session starts ================================================================================================================================================================= platform linux -- Python 3.11.9, pytest-8.3.2, pluggy-1.5.0 Default Application hostname: ee-q5ici2ac.apps.crc-eph.r9lp.p1.openshiftapps.com Default Application path: / Default Application username: ephemeral-user IQE Plugin under test: relations_api rootdir: /iqe_venv testpaths: /iqe_venv/lib/python3.11/site-packages/iqe_relations_api plugins: Faker-26.3.0, anyio-4.4.0, hypothesis-6.111.0, iqe-core-24.8.13.0, iqe-metadata-linting-24.8.6.0, iqe-mq-plugin-24.5.29.0, iqe-rbac-plugin-24.7.16.0, iqe-report_portal-plugin-2024.8.12.1, iqe-requirements-2022.7.1.0, cov-5.0.0, html-4.1.1, ibutsu-2.2.4, lazy-fixture-0.6.3, pytest_manual_marker-2.0.0.0, metadata-3.1.1, mock-3.14.0, report-parameters-0.6.0, reportportal-5.4.1, subtests-0.7.0, xdist-3.6.1, schemathesis-3.33.3, iqe-relations-api-plugin-24.9.3.0 collected 7 items / 3 deselected / 4 selected lib/python3.11/site-packages/iqe_relations_api/tests/api_tests/test_tuples.py::test_api_tuples_creation ------------------------------------------------------------------------------------------------------------------------------------------------------------------- live log setup -------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2024-09-23 18:11:30 INFO Attempting to authenticate with vault: https://vault.ci.ext.devshift.net/ 2024-09-23 18:11:30 WARNING endpoint for app relations and component relations not found in ClowdApp configurations 2024-09-23 18:11:30 INFO Setting auth_type to jwt 2024-09-23 18:11:30 INFO Setting jwt_grant_type to password 2024-09-23 18:11:30 INFO Created RESTPluginService client for https://ee-q5ici2ac.apps.crc-eph.r9lp.p1.openshiftapps.com:443/api/authz with the following attributes: ['client', 'kessel_check_service_api', 'kessel_lookup_service_api', 'kessel_relations_health_service_api', 'kessel_tuple_service_api', 'package'] FAILED [ 25%] lib/python3.11/site-packages/iqe_relations_api/tests/api_tests/test_tuples.py::test_api_tuples_creation_duplicated FAILED [ 50%] lib/python3.11/site-packages/iqe_relations_api/tests/grpc_tests/test_tuples.py::test_grpc_tuples_creation ------------------------------------------------------------------------------------------------------------------------------------------------------------------- live log setup -------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2024-09-23 18:11:30 WARNING endpoint for app relations and component relations not found in ClowdApp configurations FAILED [ 75%] lib/python3.11/site-packages/iqe_relations_api/tests/grpc_tests/test_tuples.py::test_grpc_tuples_creation_duplicated FAILED [100%]Saved results archive to 8981c88f-a0c2-4762-902a-e4913a31745b.tar.gz Ibutsu server: https://ibutsu-api.insights.corp.redhat.com/ --------------------------------------------------------------------------------------------------------------------------------------------------------------- live log sessionfinish ---------------------------------------------------------------------------------------------------------------------------------------------------------------- 2024-09-23 18:11:30 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/run/8981c88f-a0c2-4762-902a-e4913a31745b 2024-09-23 18:11:30 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/run/8981c88f-a0c2-4762-902a-e4913a31745b 2024-09-23 18:11:30 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/run/8981c88f-a0c2-4762-902a-e4913a31745b 2024-09-23 18:11:30 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/run 2024-09-23 18:11:30 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/run 2024-09-23 18:11:30 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/run 2024-09-23 18:11:30 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/result 2024-09-23 18:11:30 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/result 2024-09-23 18:11:30 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/result 2024-09-23 18:11:30 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/result 2024-09-23 18:11:30 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/result 2024-09-23 18:11:30 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/result 2024-09-23 18:11:30 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/result 2024-09-23 18:11:30 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/result 2024-09-23 18:11:30 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/result 2024-09-23 18:11:30 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/result 2024-09-23 18:11:30 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/result 2024-09-23 18:11:30 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/result 2024-09-23 18:11:30 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/artifact 2024-09-23 18:11:30 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/run/8981c88f-a0c2-4762-902a-e4913a31745b 2024-09-23 18:11:30 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/run/8981c88f-a0c2-4762-902a-e4913a31745b 2024-09-23 18:11:30 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/run/8981c88f-a0c2-4762-902a-e4913a31745b 2024-09-23 18:11:30 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/run 2024-09-23 18:11:30 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/run 2024-09-23 18:11:30 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NameResolutionError(": Failed to resolve 'ibutsu-api.insights.corp.redhat.com' ([Errno -2] Name or service not known)")': /api/run ====================================================================================================================================================================== FAILURES ======================================================================================================================================================================= ______________________________________________________________________________________________________________________________________________________________ test_api_tuples_creation _______________________________________________________________________________________________________________________________________________________________ tuples_api = , tuples_api_member_sample = ._tuples_api_member_sample at 0x7fd62cb97e20> def test_api_tuples_creation(tuples_api, tuples_api_member_sample): """ TC-SI-C-3: Tuple Service - Test the tuples creation with Valid JSON payload To verify if the insertion of a new relationship correctly processes a valid JSON payload and returns the expected response. metadata: requirements: RELATIONS-API-CREATION-CHECK importance: critical assignee: vbelchio negative: false """ > resp = tuples_api.kessel_tuple_service_create_tuples(tuples_api_member_sample()) lib/python3.11/site-packages/iqe_relations_api/tests/api_tests/test_tuples.py:20: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ lib/python3.11/site-packages/pydantic/validate_call_decorator.py:60: in wrapper_function return validate_call_wrapper(*args, **kwargs) lib/python3.11/site-packages/pydantic/_internal/_validate_call.py:96: in __call__ res = self.__pydantic_validator__.validate_python(pydantic_core.ArgsKwargs(args, kwargs)) lib/python3.11/site-packages/iqe_relations_api_api/api/kessel_tuple_service_api.py:102: in kessel_tuple_service_create_tuples return self.api_client.response_deserialize( lib/python3.11/site-packages/iqe_relations_api_api/api_client.py:322: in response_deserialize raise ApiException.from_response( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = @classmethod def from_response( cls, *, http_resp, body: Optional[str], data: Optional[Any], ) -> Self: if http_resp.status == 400: > raise BadRequestException(http_resp=http_resp, body=body, data=data) E iqe_relations_api_api.exceptions.BadRequestException: (400) E Reason: Bad Request E HTTP response headers: HTTPHeaderDict({'content-length': '239', 'content-type': 'application/json', 'date': 'Mon, 23 Sep 2024 18:11:30 GMT', 'server': 'Caddy', 'set-cookie': 'a265fdc1b0be751351cec59d59f4b589=7ee881877ff52beaff39edfabf06dc31; path=/; HttpOnly; Secure; SameSite=None'}) E HTTP response body: {"code":400, "reason":"ERROR_REASON_SCHEMA_PARSE_ERROR", "message":"error creating tuples: rpc error: code = InvalidArgument desc = parse error in `schema`, line 1, column 1: Unexpected token at root level: TokenTypePeriod", "metadata":{}} lib/python3.11/site-packages/iqe_relations_api_api/exceptions.py:142: BadRequestException ----------------------------------------------------------------------------------------------------------------------------------------------------------------- Captured log setup ------------------------------------------------------------------------------------------------------------------------------------------------------------------ 2024-09-23 18:11:30 INFO Attempting to authenticate with vault: https://vault.ci.ext.devshift.net/ 2024-09-23 18:11:30 WARNING endpoint for app relations and component relations not found in ClowdApp configurations 2024-09-23 18:11:30 INFO Setting auth_type to jwt 2024-09-23 18:11:30 INFO Setting jwt_grant_type to password 2024-09-23 18:11:30 INFO Created RESTPluginService client for https://ee-q5ici2ac.apps.crc-eph.r9lp.p1.openshiftapps.com:443/api/authz with the following attributes: ['client', 'kessel_check_service_api', 'kessel_lookup_service_api', 'kessel_relations_health_service_api', 'kessel_tuple_service_api', 'package'] _________________________________________________________________________________________________________________________________________________________ test_api_tuples_creation_duplicated _________________________________________________________________________________________________________________________________________________________ tuples_api = , tuples_api_member_sample = ._tuples_api_member_sample at 0x7fd62cb97e20> def test_api_tuples_creation_duplicated(tuples_api, tuples_api_member_sample): """ TC-SI-C-4: Tuple Service - Test the tuples duplicated creation with 'upsert' field set to False To verify if the insertion of an existent tuple handles a request where the 'upsert' field is set to False and returns the appropriate error response. metadata: requirements: RELATIONS-API-CREATION-CHECK importance: critical assignee: vbelchio negative: true """ expected_code = 409 with pytest.raises(ApiException) as ae: tuples_api.kessel_tuple_service_create_tuples(tuples_api_member_sample(upsert=False)) > assert ae.value.status == expected_code E assert 400 == 409 E + where 400 = BadRequestException().status E + where BadRequestException() = .value lib/python3.11/site-packages/iqe_relations_api/tests/api_tests/test_tuples.py:41: AssertionError ______________________________________________________________________________________________________________________________________________________________ test_grpc_tuples_creation ______________________________________________________________________________________________________________________________________________________________ tuples_grpc = , tuples_grpc_member_sample = ._tuples_grpc_member_sample at 0x7fd62c8ce480> def test_grpc_tuples_creation(tuples_grpc, tuples_grpc_member_sample): """ TC-SI-C-3: Test the tuples creation with Valid JSON payload To verify if the insertion of a new relationship correctly processes a valid JSON payload and returns the expected response. metadata: requirements: RELATIONS-API-CREATION-CHECK importance: critical assignee: vbelchio negative: false """ > resp = tuples_grpc.CreateTuples(tuples_grpc_member_sample()) lib/python3.11/site-packages/iqe_relations_api/tests/grpc_tests/test_tuples.py:20: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ lib64/python3.11/site-packages/grpc/_channel.py:1181: in __call__ return _end_unary_response_blocking(state, call, False, None) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ state = , call = , with_call = False, deadline = None def _end_unary_response_blocking( state: _RPCState, call: cygrpc.SegregatedCall, with_call: bool, deadline: Optional[float], ) -> Union[ResponseType, Tuple[ResponseType, grpc.Call]]: if state.code is grpc.StatusCode.OK: if with_call: rendezvous = _MultiThreadedRendezvous(state, call, None, deadline) return state.response, rendezvous else: return state.response else: > raise _InactiveRpcError(state) # pytype: disable=not-instantiable E grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with: E status = StatusCode.UNAVAILABLE E details = "DNS resolution failed for None:9000: C-ares status is not ARES_SUCCESS qtype=A name=None is_balancer=0: Domain name not found" E debug_error_string = "UNKNOWN:Error received from peer {created_time:"2024-09-23T18:11:30.487415567+00:00", grpc_status:14, grpc_message:"DNS resolution failed for None:9000: C-ares status is not ARES_SUCCESS qtype=A name=None is_balancer=0: Domain name not found"}" E > lib64/python3.11/site-packages/grpc/_channel.py:1006: _InactiveRpcError ----------------------------------------------------------------------------------------------------------------------------------------------------------------- Captured log setup ------------------------------------------------------------------------------------------------------------------------------------------------------------------ 2024-09-23 18:11:30 WARNING endpoint for app relations and component relations not found in ClowdApp configurations ________________________________________________________________________________________________________________________________________________________ test_grpc_tuples_creation_duplicated _________________________________________________________________________________________________________________________________________________________ tuples_grpc = , tuples_grpc_member_sample = ._tuples_grpc_member_sample at 0x7fd62c8ce480> def test_grpc_tuples_creation_duplicated(tuples_grpc, tuples_grpc_member_sample): """ TC-SI-C-4: Test the tuples duplicated creation with 'upsert' field set to False To verify if the insertion of an existent tuple handles a request where the 'upsert' field is set to False and returns the appropriate error response. metadata: requirements: RELATIONS-API-CREATION-CHECK importance: critical assignee: vbelchio negative: true """ with pytest.raises(grpc.RpcError) as ae: tuples_grpc.CreateTuples(tuples_grpc_member_sample(upsert=False)) error = GRPCError(ae.value) > assert error.code == grpc.StatusCode.ALREADY_EXISTS E AssertionError: assert == E + where = .code E + and = .ALREADY_EXISTS E + where = grpc.StatusCode lib/python3.11/site-packages/iqe_relations_api/tests/grpc_tests/test_tuples.py:40: AssertionError ================================================================================================================================================================== warnings summary =================================================================================================================================================================== lib/python3.11/site-packages/pytest_report_parameters.py:60 /iqe_venv/lib/python3.11/site-packages/pytest_report_parameters.py:60: PytestDeprecationWarning: The hookimpl AddPropertiesToJunitPlugin.pytest_runtest_logreport uses old-style configuration options (marks or attributes). Please use the pytest.hookimpl(tryfirst=True) decorator instead to configure the hooks. See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers @pytest.mark.tryfirst lib/python3.11/site-packages/iqe_relations_api/tests/api_tests/test_tuples.py::test_api_tuples_creation /iqe_venv/lib/python3.11/site-packages/iqe/base/settings/_find_files.py:70: IQEDeprecationWarning: DEPRECATED: LOCAL conf path None not used warnings.warn(f"LOCAL conf path {local_conf_path} not used", IQEDeprecationWarning) lib/python3.11/site-packages/iqe_relations_api/tests/api_tests/test_tuples.py::test_api_tuples_creation /iqe_venv/lib/python3.11/site-packages/iqe_jwt/src/oidc_auth.py:169: DeprecationWarning: HTTP Basic authentication is deprecated. Use an alternative grant type instead. See: https://issues.redhat.com/browse/IQE-2122 warnings.warn( lib/python3.11/site-packages/pytest_ibutsu/pytest_plugin.py:297 /iqe_venv/lib/python3.11/site-packages/pytest_ibutsu/pytest_plugin.py:297: DeprecationWarning: _ibutsu["metadata"] will be deprecated in pytest-ibutsu 3.0. Please use a corresponding TestRun field. merge_dicts(self.run["metadata"], self.run.metadata) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =============================================================================================================================================================== short test summary info =============================================================================================================================================================== FAILED lib/python3.11/site-packages/iqe_relations_api/tests/api_tests/test_tuples.py::test_api_tuples_creation - iqe_relations_api_api.exceptions.BadRequestException: (400) FAILED lib/python3.11/site-packages/iqe_relations_api/tests/api_tests/test_tuples.py::test_api_tuples_creation_duplicated - assert 400 == 409 FAILED lib/python3.11/site-packages/iqe_relations_api/tests/grpc_tests/test_tuples.py::test_grpc_tuples_creation - grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with: FAILED lib/python3.11/site-packages/iqe_relations_api/tests/grpc_tests/test_tuples.py::test_grpc_tuples_creation_duplicated - AssertionError: assert == ===================================================================================================================================================== 4 failed, 3 deselected, 4 warnings in 1.37s ===================================================================================================================================================== There is a test failing in your suite. To debug it: See https://consoledot.pages.redhat.com/docs/dev/operating-your-app/testing-iqe/smoke-more.html#_testing_code_changes_to_a_smoke_test for more details on how to deploy to ephemeral environments and debug your tests