diff --git a/pytest_tests/testsuites/conftest.py b/pytest_tests/testsuites/conftest.py index 0290b870..29850813 100644 --- a/pytest_tests/testsuites/conftest.py +++ b/pytest_tests/testsuites/conftest.py @@ -57,6 +57,7 @@ test_outcome = pytest.StashKey[str]() # pytest hook. Do not rename +@pytest.hookimpl(trylast=True) def pytest_collection_modifyitems(items: list[pytest.Item]): # Change order of tests based on @pytest.mark.order() marker def order(item: pytest.Item) -> int: diff --git a/pytest_tests/testsuites/metrics/test_container_metrics.py b/pytest_tests/testsuites/metrics/test_container_metrics.py index aaad2721..2477e1fe 100644 --- a/pytest_tests/testsuites/metrics/test_container_metrics.py +++ b/pytest_tests/testsuites/metrics/test_container_metrics.py @@ -220,7 +220,17 @@ class TestContainerMetrics(ClusterTestBase): self.tick_epoch() wait_for_container_deletion(default_wallet, container, shell=self.shell, endpoint=cluster.default_rpc_endpoint) - with reporter.step(f"Check metrics value in each nodes, should not be show any result"): + with reporter.step(f"Check metric {metric_name} in each nodes, should not be show any result"): futures = parallel(self.get_metrics_search_by_greps_parallel, cluster.cluster_nodes, command=metric_name, cid=container) metrics_results = [future.result() for future in futures if future.result() is not None] assert len(metrics_results) == 0, f"Metrics value is not empty in Prometheus, actual value in nodes: {metrics_results}" + + with reporter.step("Check metric 'frostfs_node_engine_container_size_bytes' in each nodes, should not be show any result"): + futures = parallel( + self.get_metrics_search_by_greps_parallel, + cluster.cluster_nodes, + command="frostfs_node_engine_container_size_bytes", + cid=container, + ) + metrics_results = [future.result() for future in futures if future.result() is not None] + assert len(metrics_results) == 0, f"Metrics value is not empty, actual value in nodes: {metrics_results}"