mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-22 06:07:48 +00:00
Fix Adminer tests
This commit is contained in:
parent
e2930d2b4e
commit
4ac8eb17d2
22
.devilbox/www/htdocs/vendor/adminer-4.7.5-en.php
vendored
22
.devilbox/www/htdocs/vendor/adminer-4.7.5-en.php
vendored
File diff suppressed because one or more lines are too long
@ -81,19 +81,42 @@ fi
|
||||
|
||||
|
||||
###
|
||||
### Test Adminer MongoDB login
|
||||
### Test Adminer Mongo login
|
||||
###
|
||||
printf "[TEST] Adminer Mongo login"
|
||||
if ! run "\
|
||||
curl -sS --fail 'http://localhost:${HOST_PORT_HTTPD}${URL}?mongo=mongo&username=' \
|
||||
curl -sS --fail -c cookie.txt -b cookie.txt \
|
||||
-L \
|
||||
--data 'auth[driver]=mongo' \
|
||||
--data 'auth[server]=mongo' \
|
||||
--data 'auth[username]=' \
|
||||
--data 'auth[password]=' \
|
||||
--data 'auth[db]=' \
|
||||
'http://localhost:${HOST_PORT_HTTPD}${URL}?mongo=mongo&username=' \
|
||||
| tac \
|
||||
| tac \
|
||||
| grep -Ei 'Database.+Collation.+Tables' >/dev/null" \
|
||||
"${RETRIES}" "" "0"; then
|
||||
printf "\\r[FAIL] Adminer Mongo login\\n"
|
||||
run "curl -sS 'http://localhost:${HOST_PORT_HTTPD}${URL}?mongo=mongo&username=' || true"
|
||||
run "curl -sS -I 'http://localhost:${HOST_PORT_HTTPD}${URL}?mongo=mongo&username=' || true"
|
||||
printf "\\r[FAIL] Adminer MySQL login\\n"
|
||||
run "curl -sS -c cookie.txt -b cookie.txt \
|
||||
-L \
|
||||
--data 'auth[driver]=mongo' \
|
||||
--data 'auth[server]=mongo' \
|
||||
--data 'auth[username]=' \
|
||||
--data 'auth[password]=' \
|
||||
--data 'auth[db]=' \
|
||||
'http://localhost:${HOST_PORT_HTTPD}${URL}?server=mysql&username=root|| true'" "1"
|
||||
run "curl -sS -I -c cookie.txt -b cookie.txt \
|
||||
-L \
|
||||
--data 'auth[driver]=mongo' \
|
||||
--data 'auth[server]=mongo' \
|
||||
--data 'auth[username]=' \
|
||||
--data 'auth[password]=' \
|
||||
--data 'auth[db]=' \
|
||||
'http://localhost:${HOST_PORT_HTTPD}${URL}?server=mysql&username=root|| true'" "1"
|
||||
rm -f cookie.txt
|
||||
exit 1
|
||||
else
|
||||
printf "\\r[OK] Adminer Mongo login\\n"
|
||||
printf "\\r[OK] Adminer MySQL login\\n"
|
||||
fi
|
||||
rm -f cookie.txt
|
||||
|
@ -107,7 +107,7 @@ if ! run "\
|
||||
--data 'auth[username]=root' \
|
||||
--data 'auth[password]=${MYSQL_ROOT_PASSWORD}' \
|
||||
--data 'auth[db]=' \
|
||||
'http://localhost:${HOST_PORT_HTTPD}${URL}?server=mysql&username=root|| true'" "1"
|
||||
'http://localhost:${HOST_PORT_HTTPD}${URL}?server=mysql&username=root || true'" "1"
|
||||
run "curl -sS -I -c cookie.txt -b cookie.txt \
|
||||
-L \
|
||||
--data 'auth[driver]=server' \
|
||||
@ -115,7 +115,7 @@ if ! run "\
|
||||
--data 'auth[username]=root' \
|
||||
--data 'auth[password]=${MYSQL_ROOT_PASSWORD}' \
|
||||
--data 'auth[db]=' \
|
||||
'http://localhost:${HOST_PORT_HTTPD}${URL}?server=mysql&username=root|| true'" "1"
|
||||
'http://localhost:${HOST_PORT_HTTPD}${URL}?server=mysql&username=root || true'" "1"
|
||||
rm -f cookie.txt
|
||||
exit 1
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user