From be31aa4f4ba53f8f680930acae656f67e2c2406d Mon Sep 17 00:00:00 2001 From: Ilyas Niyazov Date: Thu, 25 Jul 2024 14:45:39 +0300 Subject: [PATCH] [#274] Change mark log analyzer --- pytest.ini | 3 ++- pytest_tests/testsuites/special/test_logs.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pytest.ini b/pytest.ini index 5e16469..19fb64f 100644 --- a/pytest.ini +++ b/pytest.ini @@ -67,4 +67,5 @@ markers = replication: replication tests static_session_container: tests for a static session in a container shard: shard management tests - logs_after_session: tests after a session with logs \ No newline at end of file + logs_after_session: tests after a session with logs + session_logs: check logs messages diff --git a/pytest_tests/testsuites/special/test_logs.py b/pytest_tests/testsuites/special/test_logs.py index 63bb36f..b58b9d4 100644 --- a/pytest_tests/testsuites/special/test_logs.py +++ b/pytest_tests/testsuites/special/test_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(