From 5bdbd7dae08e18a64a1fe6fe7bc2524c8ad61e1e Mon Sep 17 00:00:00 2001 From: AYAHASSAN287 <49167455+AYAHASSAN287@users.noreply.github.com> Date: Wed, 21 May 2025 14:58:53 +0300 Subject: [PATCH] Expand smoke tests with more topic related tests (#118) --- tests/sharding/test_relay_auto_sharding.py | 3 +++ tests/sharding/test_relay_static_sharding.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/tests/sharding/test_relay_auto_sharding.py b/tests/sharding/test_relay_auto_sharding.py index 735e4907..bc26da46 100644 --- a/tests/sharding/test_relay_auto_sharding.py +++ b/tests/sharding/test_relay_auto_sharding.py @@ -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) diff --git a/tests/sharding/test_relay_static_sharding.py b/tests/sharding/test_relay_static_sharding.py index 586f6567..2b7bd320 100644 --- a/tests/sharding/test_relay_static_sharding.py +++ b/tests/sharding/test_relay_static_sharding.py @@ -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)