chore: Add custom configuration for readiness endpoint in docker-compose files for web UI tests and fix configs_page tests

This commit is contained in:
Théophile Diot 2024-05-10 17:12:10 +02:00
parent 002c79028f
commit 43dc47540c
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06
3 changed files with 19 additions and 4 deletions

View file

@ -33,10 +33,7 @@ try:
access_page(DRIVER, "//button[@data-services-modal-submit='']", "services", False)
if TEST_TYPE == "linux":
wait_for_service("app1.example.com")
sleep(30)
wait_for_service("app1.example.com")
log_info("Navigating to the configs page ...")
access_page(DRIVER, "/html/body/aside[1]/div[2]/ul[1]/li[5]/a", "configs")

View file

@ -24,6 +24,15 @@ services:
DATASTORE_MEMORY_SIZE: "384m"
BAD_BEHAVIOR_THRESHOLD: "30"
UI_HOST: "http://bw-ui:7000"
CUSTOM_CONF_SERVER_HTTP_ready: |
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}
labels:
- "bunkerweb.INSTANCE=yes"
networks:

View file

@ -24,6 +24,15 @@ services:
BAD_BEHAVIOR_THRESHOLD: "30"
CUSTOM_CONF_SERVER_HTTP_port-redirect: "port_in_redirect on;"
UI_HOST: "http://bw-ui:7000"
CUSTOM_CONF_SERVER_HTTP_ready: |
location /ready {
default_type 'text/plain';
rewrite_by_lua_block {
ngx.print('ready')
ngx.flush(true)
ngx.exit(ngx.HTTP_OK)
}
}
labels:
- "bunkerweb.INSTANCE=yes"
networks: