mirror of
https://github.com/logos-messaging/logos-messaging-interop-tests.git
synced 2026-01-03 06:23:12 +00:00
* github actions report summary * use env instead of inputs * multiple nodes tests * fix warm up * fix warm up * small fix after CI run * small fix after CI run 2 * add new multi-node test * self review * relay subscribe tests * small fix * new tests * fix typo
20 lines
992 B
Python
20 lines
992 B
Python
import pytest
|
|
from src.steps.relay import StepsRelay
|
|
|
|
|
|
@pytest.mark.usefixtures("setup_main_relay_nodes", "setup_optional_relay_nodes", "subscribe_main_relay_nodes")
|
|
class TestMultipleNodes(StepsRelay):
|
|
def test_first_node_to_start_publishes(self, subscribe_optional_relay_nodes, relay_warm_up):
|
|
self.check_published_message_reaches_peer()
|
|
|
|
def test_last_node_to_start_publishes(self, subscribe_optional_relay_nodes, relay_warm_up):
|
|
self.check_published_message_reaches_peer(sender=self.optional_nodes[-1])
|
|
|
|
def test_optional_nodes_not_subscribed_to_same_pubsub_topic(self):
|
|
self.wait_for_published_message_to_reach_peer(peer_list=self.main_nodes)
|
|
try:
|
|
self.check_published_message_reaches_peer(peer_list=self.optional_nodes)
|
|
raise AssertionError("Non subscribed nodes received the message!!")
|
|
except Exception as ex:
|
|
assert "Not Found" in str(ex), "Expected 404 Not Found when the message is not found"
|