From 8702c9dc88226671e2e0d3714912ba2fa99a7705 Mon Sep 17 00:00:00 2001 From: Ilyas Niyazov Date: Thu, 25 Jul 2024 14:45:39 +0300 Subject: [PATCH] [#273] Add new mark session_logs --- pytest.ini | 1 + pytest_tests/testsuites/special/test_frostfs_logs.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pytest.ini b/pytest.ini index 5f358ee0..0b26a229 100644 --- a/pytest.ini +++ b/pytest.ini @@ -67,3 +67,4 @@ markers = ec_replication: replication EC static_session_container: tests for a static session in a container shard: shard management tests + session_logs: check logs messages diff --git a/pytest_tests/testsuites/special/test_frostfs_logs.py b/pytest_tests/testsuites/special/test_frostfs_logs.py index 0f69c876..4f4acb50 100644 --- a/pytest_tests/testsuites/special/test_frostfs_logs.py +++ b/pytest_tests/testsuites/special/test_frostfs_logs.py @@ -20,8 +20,9 @@ def pytest_generate_tests(metafunc: pytest.Metafunc): ) -@pytest.mark.logs_after_session +@pytest.mark.session_logs class TestLogs: + @pytest.mark.logs_after_session @pytest.mark.order(1000) @allure.title("Check logs from frostfs-testcases with marks '{request.config.option.markexpr}' - search errors") def test_logs_search_errors(self, temp_directory: str, cluster: Cluster, session_start_time: datetime, request: pytest.FixtureRequest): -- 2.45.2