mirror of
https://github.com/moul/sshportal.git
synced 2025-01-11 01:47:46 +08:00
Enable debug in integration
This commit is contained in:
parent
fb4ca3d219
commit
97d166ad8f
1 changed files with 6 additions and 3 deletions
|
@ -17,9 +17,12 @@ cleanup
|
|||
-e SSHPORTAL_DEFAULT_ADMIN_INVITE_TOKEN=${SSHPORTAL_DEFAULT_ADMIN_INVITE_TOKEN} \
|
||||
--name=sshportal-integration \
|
||||
-p${PORT}:2222 \
|
||||
moul/sshportal
|
||||
moul/sshportal --debug
|
||||
)
|
||||
sleep 3 # FIXME: replace with port checker
|
||||
while ! nc -z localhost ${PORT}; do
|
||||
sleep 1
|
||||
done
|
||||
sleep 3
|
||||
|
||||
# integration suite
|
||||
xssh() {
|
||||
|
@ -27,7 +30,7 @@ xssh() {
|
|||
echo "+ ssh {sshportal} $@"
|
||||
ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no localhost -p ${PORT} $@
|
||||
}
|
||||
# legin
|
||||
# login
|
||||
xssh -l invite:integration
|
||||
|
||||
# hostgroup/usergroup/acl
|
||||
|
|
Loading…
Reference in a new issue