e2e_tests.test_split_tunnel package

Submodules

e2e_tests.test_split_tunnel.test_split_tunnel module

class e2e_tests.test_split_tunnel.test_split_tunnel.SplitTunnelConfig(org_name, included_domains, excluded_domains)

Bases: NamedTuple

excluded_domains: list[str]

Alias for field number 2

included_domains: list[str]

Alias for field number 1

org_name: str

Alias for field number 0

class e2e_tests.test_split_tunnel.test_split_tunnel.TestSplitTunnel

Bases: object

test_basic_tunnel_include_exclude_functionality_consumer(warp: WarpActions)

Port of 0502/0503-split-tunnel_orange.ps1

This test validates the split-tunnel functionality of the WARP client in consumer mode. It ensures that:

1. When IPs for a specific domain are added to the tunnel exclusion list via the CLI, those domains are routed outside of the WARP tunnel. 2. Conversely, domains not added to the exclusion list are routed through the WARP tunnel.

Steps:
  1. Register and connect to the WARP service.

  2. Add the IPs of certain excluded domains to the tunnel exclusion list.

  3. Verify that traffic to those excluded domains is routed outside the WARP tunnel.

  4. Verify that traffic to included domains is routed inside the WARP tunnel.

5. Finally, remove the IPs from the tunnel exclusion list and verify that the excluded domains are now routed through the WARP tunnel.

test_basic_tunnel_include_exclude_functionality_enterprise(warp: WarpActions, split_tunnel: SplitTunnelConfig)

Port of split tunnel tests

This test validates the split-tunnel functionality of the WARP client in enterprise mode. It ensures that:

1. When IPs for a specific domain are added to the tunnel exclusion list via the CLI, those domains are routed outside of the WARP tunnel. 2. Conversely, domains not added to the exclusion list are routed through the WARP tunnel.

Steps:
  1. Register and connect to the WARP service.

  2. Add the IPs of certain excluded domains to the tunnel exclusion list.

  3. Verify that traffic to those excluded domains is routed outside the WARP tunnel.

  4. Verify that traffic to included domains is routed inside the WARP tunnel.

5. Finally, remove the IPs from the tunnel exclusion list and verify that the excluded domains are now routed through the WARP tunnel.