test logs template (#70)

This commit is contained in:
fbarbu15 2024-09-05 14:58:46 +03:00 committed by GitHub
parent 089b8eefce
commit cc8bae75c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

0
tests/logs/__init__.py Normal file
View File

11
tests/logs/test_logs.py Normal file
View File

@ -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"