You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests should be run with different parameters depending on how APIHUB UI is launched.
Live environment ✅
Local via docker compose ✅
Local via docker compose + dev proxy ✅
To test the "Playground" via a localhost, in playwright tests, you need to set a value for the PLAYGROUND_BACKEND_HOST environment variable, it will be used in the test to create a custom server for sending requests.
In case of using docker compose + dev proxy, in addition to the previous settings, in playwright tests, you need to add the variable DEV_PROXY_MODE=true, to skip tests that cannot be executed in this mode.
Tests should be run with different parameters depending on how APIHUB UI is launched.
To test the "Playground" via a localhost, in playwright tests, you need to set a value for the
PLAYGROUND_BACKEND_HOST
environment variable, it will be used in the test to create a custom server for sending requests.In case of using Docker Compose, this is http://host.docker.internal:8081 (protocol + value of the
APIHUB_URL
variable from the qubership-apihub-backend.env file). Also, you need to add the variableALLOWED_HOSTS=host.docker.internal
to the qubership-apihub-backend.env file.In case of using docker compose + dev proxy, in addition to the previous settings, in playwright tests, you need to add the variable
DEV_PROXY_MODE=true
, to skip tests that cannot be executed in this mode.These settings should be reflected in the README.
ALLOWED_HOSTS=host.docker.internal
- in docker composePLAYGROUND_BACKEND_HOST=http://host.docker.internal:8081
- in testsALLOWED_HOSTS=host.docker.internal
- in docker composePLAYGROUND_BACKEND_HOST=http://host.docker.internal:8081
- in testDEV_PROXY_MODE=true
- in testsDEV_PROXY_MODE=true
- in testsThe text was updated successfully, but these errors were encountered: