mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
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:
parent
002c79028f
commit
43dc47540c
3 changed files with 19 additions and 4 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue