From cc8bae75c1b87988bfa33ca91a11c57d9a03d3b0 Mon Sep 17 00:00:00 2001 From: fbarbu15 Date: Thu, 5 Sep 2024 14:58:46 +0300 Subject: [PATCH] test logs template (#70) --- tests/logs/__init__.py | 0 tests/logs/test_logs.py | 11 +++++++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/logs/__init__.py create mode 100644 tests/logs/test_logs.py diff --git a/tests/logs/__init__.py b/tests/logs/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/logs/test_logs.py b/tests/logs/test_logs.py new file mode 100644 index 0000000000..22f144137c --- /dev/null +++ b/tests/logs/test_logs.py @@ -0,0 +1,11 @@ +from src.libs.custom_logger import get_custom_logger +from src.steps.relay import StepsRelay + +logger = get_custom_logger(__name__) + + +class TestLogs(StepsRelay): + def test_metadata_protocol_mounted_also_on_non_1_clusters(self, setup_main_relay_nodes): + for node in self.main_nodes: + metadata_protocol = "Created WakuMetadata protocol" if node.is_nwaku() else "metadata protocol started" + assert node.search_waku_log_for_string(metadata_protocol), "Metadata protocol not mounted"