Add up back when retrying to up the stack + remove useless print

This commit is contained in:
Théophile Diot 2023-05-15 09:01:53 -04:00
parent 7bf4c11bc5
commit 9ee74aef4f
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
31 changed files with 54 additions and 14 deletions

View File

@ -60,6 +60,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "🤖 Up failed ❌"
exit 1

View File

@ -69,6 +69,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "🔐 Up failed ❌"
exit 1

View File

@ -76,6 +76,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "📟 Up failed ❌"
exit 1

View File

@ -204,6 +204,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "🏴 Up failed ❌"
exit 1

View File

@ -56,6 +56,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "📦 Up failed ❌"
exit 1

View File

@ -65,6 +65,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "🕸️ Up failed ❌"
exit 1

View File

@ -70,6 +70,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "📝 Up failed ❌"
exit 1

View File

@ -85,6 +85,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "🛰️ Up failed ❌"
exit 1

View File

@ -61,6 +61,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "🌍 Up failed ❌"
exit 1

View File

@ -72,6 +72,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "🔏 Up failed ❌"
exit 1

View File

@ -68,6 +68,7 @@ if [ $? -ne 0 ] ; then
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "💾 Up failed ❌"
exit 1
@ -143,6 +144,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "💾 Up failed ❌"
exit 1

View File

@ -88,6 +88,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "🚫 Up failed ❌"
exit 1

View File

@ -61,6 +61,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "⭕ Up failed ❌"
exit 1

View File

@ -142,6 +142,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "🏁 Up failed ❌"
exit 1

View File

@ -56,6 +56,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "🗜️ Up failed ❌"
exit 1

View File

@ -112,6 +112,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "🎛️ Up failed ❌"
exit 1

View File

@ -39,6 +39,7 @@ if [ $? -ne 0 ] ; then
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "💉 Up failed ❌"
exit 1

View File

@ -90,6 +90,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "🎚️ Up failed ❌"
exit 1

View File

@ -61,6 +61,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "👮 Up failed ❌"
exit 1

View File

@ -58,6 +58,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "↩️ Up failed ❌"
exit 1

View File

@ -60,6 +60,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "🕵️ Up failed ❌"
exit 1

View File

@ -62,6 +62,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "🔑 Up failed ❌"
exit 1

View File

@ -57,7 +57,6 @@ try:
exit(0)
first_cookie = driver.get_cookies()[0]
print(first_cookie, flush=True)
print(" Reloading BunkerWeb ...", flush=True)

View File

@ -61,6 +61,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "🧳 Up failed ❌"
exit 1

View File

@ -143,6 +143,7 @@ do
manual=1
cleanup_stack
manual=0
docker compose up -d 2>/dev/null
if [ $? -ne 0 ] ; then
echo "🏳️ Up failed ❌"
exit 1

BIN
tests/ui/discord.zip Normal file

Binary file not shown.

View File

@ -18,7 +18,6 @@ services:
DISABLE_DEFAULT_SERVER: "yes"
USE_CLIENT_CACHE: "yes"
USE_GZIP: "yes"
USE_MODSECURITY: "no"
DATASTORE_MEMORY_SIZE: "384m"
www.example.com_USE_UI: "yes"
www.example.com_SERVE_FILES: "no"
@ -27,7 +26,6 @@ services:
www.example.com_REVERSE_PROXY_HOST: "http://bw-ui:7000"
www.example.com_REVERSE_PROXY_KEEPALIVE: "yes"
www.example.com_REVERSE_PROXY_HEADERS: "X-Script-Name /admin"
www.example.com_CUSTOM_CONF_MODSEC_CRS_config: 'SecRule REQUEST_FILENAME "@rx /global_config$$" "id:999,ctl:ruleRemoveByTag=platform-pgsql,nolog"'
www.example.com_INTERCEPTED_ERROR_CODES: "400 405 413 429 500 501 502 503 504"
labels:
- "bunkerweb.INSTANCE"
@ -62,7 +60,7 @@ services:
environment:
ABSOLUTE_URI: "http://www.example.com/admin/"
ADMIN_USERNAME: "admin"
ADMIN_PASSWORD: "admin"
ADMIN_PASSWORD: "S$$cr3tP@ssw0rd"
DOCKER_HOST: "tcp://docker-proxy:2375"
networks:
- net-docker
@ -82,16 +80,17 @@ services:
networks:
bw-services:
ipv4_address: 192.168.0.4
# ui-tests:
# build: .
# environment:
# - PYTHONUNBUFFERED=1
# extra_hosts:
# - "www.example.com:192.168.0.2"
# - "app1.example.com:192.168.0.2"
# networks:
# bw-services:
# ipv4_address: 192.168.0.3
ui-tests:
build: .
environment:
- PYTHONUNBUFFERED=1
extra_hosts:
- "www.example.com:192.168.0.2"
- "app1.example.com:192.168.0.2"
networks:
bw-services:
ipv4_address: 192.168.0.3
volumes:
bw-data:

BIN
tests/ui/geckodriver Executable file

Binary file not shown.

8
tests/ui/geckodriver.log Normal file
View File

@ -0,0 +1,8 @@
1682773748597 geckodriver INFO Listening on 127.0.0.1:37745
1682773748615 webdriver::server WARN Rejected request with Host header localhost:37745, allowed values are []
1682773783634 geckodriver INFO Listening on 127.0.0.1:38451
1682773783649 webdriver::server WARN Rejected request with Host header localhost:38451, allowed values are []
1682773795117 geckodriver INFO Listening on 127.0.0.1:33351
1682773795125 webdriver::server WARN Rejected request with Host header localhost:33351, allowed values are []
1682834744519 geckodriver INFO Listening on 127.0.0.1:59403
1682834745017 webdriver::server WARN Rejected request with Host header localhost:59403, allowed values are []

9
tests/ui/plugin.json Normal file
View File

@ -0,0 +1,9 @@
{
"id": "discord",
"order": 999,
"name": "Discord",
"description": "Send alerts to a Discord channel (using webhooks).",
"version": "0.1",
"stream": "no",
"settings": {}
}

BIN
tests/ui/test_discord.zip Normal file

Binary file not shown.