Skip to content

Commit

Permalink
Merge pull request #1128 from NordSecurity/test_disable_logs
Browse files Browse the repository at this point in the history
Temporarily disable logs to see if dns tests stop failing
  • Loading branch information
mathiaspeters authored Feb 19, 2025
2 parents 0c7b90f + 5e510fa commit c0ac4d5
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 2 deletions.
Empty file added .unreleased/test_disable_logs
Empty file.
6 changes: 6 additions & 0 deletions nat-lab/tests/test_direct_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ async def ping_timeout(connection, node):
await ping_between_all_nodes(env)


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.moose
@pytest.mark.asyncio
@pytest.mark.timeout(
Expand Down Expand Up @@ -421,6 +423,8 @@ async def test_direct_working_paths_stun_ipv6() -> None:
)


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.asyncio
async def test_direct_working_paths_with_skip_unresponsive_peers() -> None:
setup_params = _generate_setup_parameters([
Expand Down Expand Up @@ -533,6 +537,8 @@ async def test_direct_infinite_stun_loop() -> None:
assert len(stun_requests) < 20


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.asyncio
async def test_direct_working_paths_with_pausing_upnp_and_stun() -> None:
setup_params = _generate_setup_parameters([
Expand Down
2 changes: 2 additions & 0 deletions nat-lab/tests/test_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,8 @@ def all_cases(name: str) -> List[str]:
]


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.asyncio
async def test_dns_no_error_return_code() -> None:
async with AsyncExitStack() as exit_stack:
Expand Down
24 changes: 24 additions & 0 deletions nat-lab/tests/test_lana.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,8 @@ async def add_5ms_delay_to_connections(
)


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.moose
@pytest.mark.asyncio
@pytest.mark.parametrize("alpha_ip_stack,beta_ip_stack", IP_STACK_TEST_CONFIGS)
Expand Down Expand Up @@ -727,6 +729,8 @@ async def test_lana_with_same_meshnet(
assert res[0], res[1]


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.moose
@pytest.mark.asyncio
@pytest.mark.parametrize("alpha_ip_stack,beta_ip_stack", IP_STACK_TEST_CONFIGS)
Expand Down Expand Up @@ -910,6 +914,8 @@ async def test_lana_with_external_node(
assert alpha_events[0].fp != gamma_events[0].fp


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.moose
@pytest.mark.asyncio
@pytest.mark.parametrize("alpha_ip_stack,beta_ip_stack", IP_STACK_TEST_CONFIGS)
Expand Down Expand Up @@ -1090,6 +1096,8 @@ async def test_lana_all_external(
assert beta_events[0].fp != gamma_events[0].fp


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.moose
@pytest.mark.asyncio
@pytest.mark.parametrize("alpha_ip_stack,beta_ip_stack", IP_STACK_TEST_CONFIGS)
Expand Down Expand Up @@ -1279,6 +1287,8 @@ async def test_lana_with_vpn_connection(
assert res[0], res[1]


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.moose
@pytest.mark.asyncio
@pytest.mark.parametrize("alpha_ip_stack,beta_ip_stack", IP_STACK_TEST_CONFIGS)
Expand Down Expand Up @@ -1512,6 +1522,8 @@ async def test_lana_with_meshnet_exit_node(
)


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.moose
@pytest.mark.asyncio
@pytest.mark.parametrize("alpha_ip_stack,beta_ip_stack", IP_STACK_TEST_CONFIGS)
Expand Down Expand Up @@ -1913,6 +1925,8 @@ async def test_lana_with_disconnected_node(
assert await beta_conn_tracker.find_conntracker_violations() is None


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.moose
@pytest.mark.asyncio
@pytest.mark.parametrize("alpha_ip_stack,beta_ip_stack", IP_STACK_TEST_CONFIGS)
Expand Down Expand Up @@ -2016,6 +2030,8 @@ async def test_lana_with_second_node_joining_later_meshnet_id_can_change(
)


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.moose
@pytest.mark.asyncio
@pytest.mark.parametrize("alpha_ip_stack,beta_ip_stack", IP_STACK_TEST_CONFIGS)
Expand Down Expand Up @@ -2095,6 +2111,8 @@ async def test_lana_same_meshnet_id_is_reported_after_a_restart(
assert initial_beta_meshnet_id == second_beta_meshnet_id


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.moose
@pytest.mark.asyncio
@pytest.mark.parametrize(
Expand Down Expand Up @@ -2134,6 +2152,8 @@ async def test_lana_initial_heartbeat_no_trigger(
)


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.moose
@pytest.mark.asyncio
@pytest.mark.parametrize("initial_heartbeat_interval", [pytest.param(5)])
Expand Down Expand Up @@ -2173,6 +2193,8 @@ async def test_lana_initial_heartbeat_count_since_meshnet_start(
)


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.moose
@pytest.mark.asyncio
@pytest.mark.parametrize("initial_heartbeat_interval", [pytest.param(5)])
Expand Down Expand Up @@ -2214,6 +2236,8 @@ async def test_lana_initial_heartbeat_count_since_meshnet_restart(
)


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.moose
@pytest.mark.asyncio
async def test_lana_rtt_interval_controls_periodic_qos_collection():
Expand Down
2 changes: 2 additions & 0 deletions nat-lab/tests/test_network_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
DEFAULT_WAITING_TIME = 2


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.asyncio
@pytest.mark.parametrize(
"alpha_setup_params",
Expand Down
2 changes: 2 additions & 0 deletions nat-lab/tests/test_pinging.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ async def wait_for_conntracker() -> None:
)


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.asyncio
@pytest.mark.parametrize(
"alpha_setup_params",
Expand Down
4 changes: 4 additions & 0 deletions nat-lab/tests/test_pq.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ async def test_pq_vpn_connection(
)


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.parametrize(
"alpha_setup_params, public_ip",
[
Expand Down Expand Up @@ -513,6 +515,8 @@ async def test_pq_vpn_upgrade_from_non_pq(
assert preshared != EMPTY_PRESHARED_KEY_SLOT


# TODO(mathiaspeters): reenable
@pytest.mark.skip
# Regression test for LLT-5884
@pytest.mark.timeout(240)
@pytest.mark.parametrize(
Expand Down
2 changes: 2 additions & 0 deletions nat-lab/tests/test_telio_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
from utils.connection_util import ConnectionTag


# TODO(mathiaspeters): reenable
@pytest.mark.skip
@pytest.mark.asyncio
async def test_telio_tasks_with_all_features() -> None:
async with AsyncExitStack() as exit_stack:
Expand Down
5 changes: 3 additions & 2 deletions nat-lab/tests/uniffi/libtelio_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,9 @@ def __init__(self, daemon, logfile):
self._libtelio = None
self._event_cb = TelioEventCbImpl()
self._logger_cb = TelioLoggerCbImpl(logfile)
libtelio.add_timestamps_to_logs()
libtelio.set_global_logger(libtelio.TelioLogLevel.DEBUG, self._logger_cb)
# TODO(mathiaspeters): reenable logs
# libtelio.add_timestamps_to_logs()
# libtelio.set_global_logger(libtelio.TelioLogLevel.DEBUG, self._logger_cb)

def shutdown(self):
if self._libtelio is not None:
Expand Down

0 comments on commit c0ac4d5

Please sign in to comment.