e2e_tests.test_pmtud package

Submodules

e2e_tests.test_pmtud.test_pmtud module

e2e_tests.test_pmtud.test_pmtud.poll_for_interface_mtu(system: SystemActions, interface_name: str, expected_mtu: int, timeout: int = 30) bool

Poll for interface MTU to match expected value using RetryHandler.

Parameters:
  • system – The system fixture

  • interface_name – Name of the network interface to check

  • expected_mtu – The expected MTU value

  • timeout – Maximum time to wait in seconds

Returns:

True if MTU matches within timeout

Return type:

bool

Raises:

RuntimeError – If MTU doesn’t match within timeout

e2e_tests.test_pmtud.test_pmtud.test_pmtud(warp: WarpActions, system: SystemActions)

Test that PMTUD is enabled via MDM config and tunnel MTU is set correctly.

This test: 1. Connects to WARP with PMTUD enabled via MDM (MASQUE protocol) 2. Verifies the tunnel interface MTU matches expected value (1300 bytes)

e2e_tests.test_pmtud.test_pmtud.test_pmtud_with_moving_mtu(warp: WarpActions, system: SystemActions, test_cleanup: CleanupQueue)

Test that verifies tunnel MTU adjusts when main interface MTU is changed.

This test: 1. Connects to WARP 2. Finds the main network interface 3. Gets the current MTU and registers cleanup to restore it 4. Sets a custom MTU on the main interface 5. Verifies the tunnel MTU adjusts accordingly 6. Tests with a second MTU value to verify dynamic adjustment

The original MTU is automatically restored via the test_cleanup fixture.