e2e_tests.test_egress package

Submodules

e2e_tests.test_egress.test_config_consumer_egress module

e2e_tests.test_egress.test_config_consumer_egress.get_available_colos(registration_id: str, token: str) list[str]

Get all available colos

Parameters:
  • registration_id (str) – Consumer registration id

  • token (str) – Consumer registration token

e2e_tests.test_egress.test_config_consumer_egress.set_configurable_egress(registration_id: str)

Set the consumer egress to be configurable

Parameters:

registration_id (str) – Consumer registration id

e2e_tests.test_egress.test_config_consumer_egress.set_egress_colo(registration_id: str, colo: str, token: str)

Set the consumer egress to be a specific colo

Parameters:
  • registration_id (str) – Consumer registration id

  • colo (str) – Egress colo to

  • token (str) – Consumer registration token

e2e_tests.test_egress.test_config_consumer_egress.test_set_consumer_egress_colo(warp: WarpActions)

Test that setting the egress colo for consumer WARP through admin.cloudflareclient.com is successful

Steps:
  1. Create consumer WARP registration

  2. Set WARP tunnel protocol to WireGuard

  3. Set the egress colo to configurable

  4. Iterate over 5 random colos from the reported available colos

  5. Set the egress colo

  6. Connect WARP

  7. Verify appropriate connectivity and that colo matches the set colo

  8. Disconnect WARP

  9. Clear registration

  10. Register a new consumer WARP registration

  11. Repeat steps 3-10 for remaining randomly selected colos