mirror of
https://github.com/logos-messaging/logos-messaging-interop-tests.git
synced 2026-01-04 06:53:07 +00:00
Expand smoke tests with more topic related tests (#118)
This commit is contained in:
parent
d2121cef90
commit
5bdbd7dae0
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user