summaryrefslogtreecommitdiff
path: root/tests/e2e/e2e-test-vpn.sh
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-08-28 11:00:30 -0400
committerKali Kaneko <kali@leap.se>2017-08-30 16:18:49 -0400
commit04bce963c2314dc9b21bd86224e75c22aae39d70 (patch)
tree736153ff8d812b5402415e6ccc1854953754d81c /tests/e2e/e2e-test-vpn.sh
parent8ba14779884b2d1913de1ae4abf6fdeea130838a (diff)
[tests] fix check-ip script
Diffstat (limited to 'tests/e2e/e2e-test-vpn.sh')
-rwxr-xr-xtests/e2e/e2e-test-vpn.sh12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/e2e/e2e-test-vpn.sh b/tests/e2e/e2e-test-vpn.sh
index 05c1913..750fef8 100755
--- a/tests/e2e/e2e-test-vpn.sh
+++ b/tests/e2e/e2e-test-vpn.sh
@@ -35,9 +35,6 @@ pw="$(head -c 10 < /dev/urandom | base64)"
[ -d "$LEAP_HOME" ] && rm -rf "$LEAP_HOME"
-"$BCTL" start
-
-
# Register a new user
# Disable xtrace
set +x
@@ -53,11 +50,12 @@ set +x
# Start VPN, wait a bit
"$BCTL" vpn start --json
-sleep 3
+sleep 5
"$BCTL" vpn status --json
# XXX gateway does not get added to resolv.conf
-echo "nameserver 10.42.0.1" > /etc/resolv.conf
+# If we are running as root, as in the CI, we can do this directly
+# echo "nameserver 10.42.0.1" > /etc/resolv.conf
# cat /etc/resolv.conf
sleep 5
@@ -67,10 +65,10 @@ sleep 5
tests/e2e/check_ip vpn_on
"$BCTL" vpn stop
-sleep 3
+sleep 5
# XXX debug do this only if no other entry in resolv.conf
-echo "nameserver 77.109.148.136" > /etc/resolv.conf
+# echo "nameserver 77.109.148.136" > /etc/resolv.conf
# TEST that we're NOT going through the provider's VPN