reflex/tests/integration
Masen Furer 438b31f270
[ENG-4005] Proxy backend requests on '/' to the frontend (#3300)
* Proxy backend requests on '/' to the frontend

If the optional extra `proxy` is installed, then the backend can handle all
requests by proxy unrecognized routes to the frontend nextjs server.

* Update lock file

* pre-commit fu

* AppHarness: set config frontend_port and backend_port

* integration: frontend port and backend port should return the same content

with proxying enabled by default in dev mode, both frontend and backend ports
on / should return the same content.

* Retry up to 100 times when proxying to frontend

* Reduce retry attempts to 25

Fix log level passing to subprocess

* scripts/wait_for_listening_port: primarily check HTTP responses

if the port is up or not, we don't really care... the HTTP request needs to
work and not return errors

* aiohttp is an optional dep

* adapt integration.sh for --backend-only (counter integration test)

* woops

* windows WTF?

* scratching my head 🎄

* double WTF windows

* Fix remaining integration tests
2025-01-03 15:50:38 -08:00
..
init-test [ENG-4005] Proxy backend requests on '/' to the frontend (#3300) 2025-01-03 15:50:38 -08:00
shared reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
tests_playwright add datetime var comparison operations (#4406) 2024-12-13 12:41:29 -08:00
__init__.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00
conftest.py raise_console_error during integration tests (#4535) 2024-12-12 14:28:30 -08:00
test_background_task.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
test_call_script.py enable PTH rule (#4476) 2024-12-13 14:06:26 -08:00
test_client_storage.py [ENG-4194] TypeError: Cannot create property 'token' on string (#4534) 2024-12-12 14:28:17 -08:00
test_component_state.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
test_computed_vars.py add ERA rules to detect commented out code (#4472) 2024-12-11 18:26:44 -08:00
test_connection_banner.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
test_deploy_url.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
test_dynamic_components.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
test_dynamic_routes.py test dynamic route flakiness (can't reproduce locally) (#4496) 2024-12-06 17:41:53 +01:00
test_event_actions.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
test_event_chain.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
test_exception_handlers.py raise_console_error during integration tests (#4535) 2024-12-12 14:28:30 -08:00
test_form_submit.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
test_input.py add ERA rules to detect commented out code (#4472) 2024-12-11 18:26:44 -08:00
test_large_state.py stop ignoring some lint rules (#4311) 2024-11-06 13:32:31 -08:00
test_lifespan.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
test_login_flow.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
test_media.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
test_navigation.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
test_server_side_event.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
test_shared_state.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
test_state_inheritance.py style: prefer type() over __class__ (#4512) 2024-12-10 12:35:46 -08:00
test_tailwind.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
test_upload.py Fix upload cancellation (#4527) 2024-12-12 10:15:19 -08:00
test_urls.py use pathlib as much as possible (#3967) 2024-10-03 17:50:39 +02:00
test_var_operations.py improve app_src typing (#4324) 2024-11-07 14:08:37 -08:00
utils.py reorganize all tests in a single top folder (#3981) 2024-09-26 01:22:52 +02:00