mirror of
https://github.com/cytopia/devilbox.git
synced 2025-01-03 03:16:46 +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"
|
printf "[TEST] Adminer Mongo login"
|
||||||
if ! run "\
|
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 \
|
||||||
| tac \
|
| tac \
|
||||||
| grep -Ei 'Database.+Collation.+Tables' >/dev/null" \
|
| grep -Ei 'Database.+Collation.+Tables' >/dev/null" \
|
||||||
"${RETRIES}" "" "0"; then
|
"${RETRIES}" "" "0"; then
|
||||||
printf "\\r[FAIL] Adminer Mongo login\\n"
|
printf "\\r[FAIL] Adminer MySQL login\\n"
|
||||||
run "curl -sS 'http://localhost:${HOST_PORT_HTTPD}${URL}?mongo=mongo&username=' || true"
|
run "curl -sS -c cookie.txt -b cookie.txt \
|
||||||
run "curl -sS -I 'http://localhost:${HOST_PORT_HTTPD}${URL}?mongo=mongo&username=' || true"
|
-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
|
exit 1
|
||||||
else
|
else
|
||||||
printf "\\r[OK] Adminer Mongo login\\n"
|
printf "\\r[OK] Adminer MySQL login\\n"
|
||||||
fi
|
fi
|
||||||
|
rm -f cookie.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user