Adding more smoke tests

This commit is contained in:
aya 2024-11-28 15:32:10 +02:00
parent f424a42aa7
commit bc0679c4f6
4 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@ from src.steps.filter import StepsFilter
@pytest.mark.usefixtures("setup_main_relay_node", "setup_main_filter_node")
class TestFilterPing(StepsFilter):
@pytest.mark.smoke
def test_filter_ping_on_subscribed_peer(self, subscribe_main_nodes):
self.ping_filter_subscriptions(str(uuid4()))

View File

@ -18,6 +18,7 @@ logger = get_custom_logger(__name__)
class TestRelayRLN(StepsRLN, StepsRelay):
SAMPLE_INPUTS_RLN = SAMPLE_INPUTS + SAMPLE_INPUTS + SAMPLE_INPUTS
@pytest.mark.smoke
def test_valid_payloads_lightpush_at_spam_rate(self, pytestconfig):
message_limit = 1
epoch_sec = 1
@ -58,6 +59,7 @@ class TestRelayRLN(StepsRLN, StepsRelay):
if i == message_limit - 1:
break
@pytest.mark.smoke
def test_valid_payloads_at_spam_rate(self, pytestconfig):
message_limit = 20
epoch_sec = 600

View File

@ -59,6 +59,7 @@ class TestRunningNodes(StepsStore):
except Exception as ex:
assert "failed to negotiate protocol: protocols not supported" in str(ex) or "PEER_DIAL_FAILURE" in str(ex)
@pytest.mark.smoke
def test_store_lightpushed_message(self):
self.setup_first_publishing_node(store="true", relay="true", lightpush="true")
self.setup_second_publishing_node(store="false", relay="true")
@ -67,6 +68,7 @@ class TestRunningNodes(StepsStore):
self.publish_message(via="lightpush", sender=self.store_node1)
self.check_published_message_is_stored(page_size=5, ascending="true")
@pytest.mark.smoke
def test_store_with_filter(self):
self.setup_first_publishing_node(store="true", relay="true", filter="true")
self.setup_first_store_node(store="false", relay="false", filter="true")

View File

@ -68,6 +68,7 @@ class TestTopics(StepsStore):
)
assert len(store_response["messages"]) == 0, "Message count mismatch"
@pytest.mark.smoke
def test_store_with_both_pubsub_topic_and_content_topic(self):
for node in self.store_nodes:
for index, content_topic in enumerate(CONTENT_TOPICS_DIFFERENT_SHARDS):