Expand smoke tests with more topic related tests (#118)

This commit is contained in:
AYAHASSAN287 2025-05-21 14:58:53 +03:00 committed by GitHub
parent d2121cef90
commit 5bdbd7dae0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -67,6 +67,7 @@ class TestRelayAutosharding(StepsSharding):
self.subscribe_main_relay_nodes(content_topics=[content_topic])
self.check_published_message_reaches_relay_peer(content_topic=content_topic)
@pytest.mark.smoke
@pytest.mark.parametrize("content_topic_list", [CONTENT_TOPICS_SHARD_0, CONTENT_TOPICS_DIFFERENT_SHARDS])
def test_unsubscribe_from_some_content_topics(self, content_topic_list):
self.setup_main_relay_nodes(cluster_id=self.auto_cluster, content_topic=self.test_content_topic)
@ -79,6 +80,7 @@ class TestRelayAutosharding(StepsSharding):
for content_topic in content_topic_list[3:]:
self.check_published_message_reaches_relay_peer(content_topic=content_topic)
@pytest.mark.smoke
def test_unsubscribe_from_all_content_topics(self):
self.setup_main_relay_nodes(cluster_id=self.auto_cluster, content_topic=self.test_content_topic)
self.subscribe_main_relay_nodes(content_topics=CONTENT_TOPICS_DIFFERENT_SHARDS)
@ -98,6 +100,7 @@ class TestRelayAutosharding(StepsSharding):
for content_topic in CONTENT_TOPICS_DIFFERENT_SHARDS:
self.check_published_message_doesnt_reach_relay_peer(content_topic=content_topic)
@pytest.mark.smoke
def test_resubscribe_to_unsubscribed_content_topics(self):
self.setup_main_relay_nodes(cluster_id=self.auto_cluster, content_topic=self.test_content_topic)
self.subscribe_main_relay_nodes(content_topics=CONTENT_TOPICS_DIFFERENT_SHARDS)

View File

@ -50,6 +50,7 @@ class TestRelayStaticSharding(StepsSharding):
self.subscribe_main_relay_nodes(pubsub_topics=[pubsub_topic])
self.check_published_message_reaches_relay_peer(pubsub_topic=pubsub_topic)
@pytest.mark.smoke
def test_unsubscribe_from_some_pubsub_topics(self):
self.setup_main_relay_nodes(cluster_id=self.auto_cluster, pubsub_topic=PUBSUB_TOPICS_SAME_CLUSTER)
self.subscribe_main_relay_nodes(pubsub_topics=PUBSUB_TOPICS_SAME_CLUSTER)
@ -61,6 +62,7 @@ class TestRelayStaticSharding(StepsSharding):
for pubsub_topic in PUBSUB_TOPICS_SAME_CLUSTER[3:]:
self.check_published_message_reaches_relay_peer(pubsub_topic=pubsub_topic)
@pytest.mark.smoke
@pytest.mark.xfail("go-waku" in NODE_2, reason="Bug reported: https://github.com/waku-org/go-waku/issues/1034")
def test_unsubscribe_from_all_pubsub_topics(self):
self.setup_main_relay_nodes(cluster_id=self.auto_cluster, pubsub_topic=PUBSUB_TOPICS_SAME_CLUSTER)