test: single node registration

This commit is contained in:
Roman 2026-03-20 17:50:16 +08:00
parent 1b33621adf
commit e629cc8cc0
No known key found for this signature in database
GPG Key ID: 583BDF43C238B83E
2 changed files with 5 additions and 2 deletions

View File

@ -14,14 +14,14 @@ def get_env_var(var_name, default=None):
# Configuration constants. Need to be upercase to appear in reports
DEFAULT_NWAKU = "wakuorg/nwaku:latest"
DEFAULT_NWAKU = "wakuorg/nwaku:wakunode2-v0.37.2-rc.0"
STRESS_ENABLED = False
NODE_1 = get_env_var("NODE_1", DEFAULT_NWAKU)
NODE_2 = get_env_var("NODE_2", DEFAULT_NWAKU)
ADDITIONAL_NODES = get_env_var("ADDITIONAL_NODES", f"{DEFAULT_NWAKU},{DEFAULT_NWAKU},{DEFAULT_NWAKU}")
# more nodes need to follow the NODE_X pattern
DOCKER_LOG_DIR = get_env_var("DOCKER_LOG_DIR", "./log/docker")
NETWORK_NAME = get_env_var("NETWORK_NAME", "waku")
NETWORK_NAME = get_env_var("NETWORK_NAME", "tests-functional_default")
SUBNET = get_env_var("SUBNET", "172.18.0.0/16")
IP_RANGE = get_env_var("IP_RANGE", "172.18.0.0/24")
GATEWAY = get_env_var("GATEWAY", "172.18.0.1")

View File

@ -17,6 +17,9 @@ logger = get_custom_logger(__name__)
class TestRelayRLN(StepsRLN, StepsRelay):
SAMPLE_INPUTS_RLN = SAMPLE_INPUTS + SAMPLE_INPUTS + SAMPLE_INPUTS
def test_single_node_registration(self, pytestconfig):
pytestconfig.cache.set("keystore-prefixes", self.register_rln_relay_nodes(1, []))
@pytest.mark.smoke
def test_valid_payloads_lightpush_at_spam_rate(self, pytestconfig):
message_limit = 1