From 046892dd98d609e73de47d0ff78ab22dd9e51a53 Mon Sep 17 00:00:00 2001 From: Anastasiya Semenkevich Date: Fri, 12 Jul 2024 17:35:31 +0300 Subject: [PATCH] chore: temp remove the wrong test case reference --- test/e2e/fixtures/testrail.py | 8 +++++--- test/e2e/tests/communities/test_communities_channels.py | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/e2e/fixtures/testrail.py b/test/e2e/fixtures/testrail.py index 0887c863d8..7fd327977f 100644 --- a/test/e2e/fixtures/testrail.py +++ b/test/e2e/fixtures/testrail.py @@ -10,7 +10,7 @@ import configs LOG = logging.getLogger(__name__) -testrail_api = None +global testrail_api test_run_id = None PASS = 1 @@ -40,14 +40,15 @@ def init_testrail_api(request): auth=(configs.testrail.USR, configs.testrail.PSW), ) - if response.status_code != 200: - LOG.info('TestRail report skipped because of Testrail server error') + if response.status_code in [400, 403, 429, 500]: + LOG.info(f'Could not login to test rail, got the following response {response}') return test_cases = get_test_cases_in_session(request) test_run = get_test_run(configs.testrail.RUN_NAME) if not test_run: test_case_ids = list(set([tc_id.id for tc_id in test_cases])) + LOG.debug(f'test_case_ids = {test_case_ids}') test_run = create_test_run(configs.testrail.RUN_NAME, test_case_ids) global test_run_id @@ -180,6 +181,7 @@ def get_test_run(name: str) -> typing.Optional[dict]: project_id=configs.testrail.PROJECT_ID, is_completed=False ) + for test_run in test_runs['runs']: if test_run['name'] == name: return test_run diff --git a/test/e2e/tests/communities/test_communities_channels.py b/test/e2e/tests/communities/test_communities_channels.py index 9670f2c688..30a1140542 100644 --- a/test/e2e/tests/communities/test_communities_channels.py +++ b/test/e2e/tests/communities/test_communities_channels.py @@ -123,7 +123,7 @@ def test_member_role_cannot_add_edit_and_delete_channels(main_screen: MainWindow @allure.testcase('https://ethstatus.testrail.net/index.php?/cases/edit/737079', 'Member not holding permission cannot see channel (view-only permission)') -@pytest.mark.case(737079) +# @pytest.mark.case(737079) # FIXME need to migrate all references to new test rail project first @pytest.mark.parametrize('user_data_one, user_data_two, asset, amount, channel_description', [ (configs.testpath.TEST_USER_DATA / 'squisher', configs.testpath.TEST_USER_DATA / 'athletic', 'ETH', '10', 'description')