diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-03-23 12:10:57 -1000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-10 19:58:22 +0100 |
commit | 4c2ca1ba4aebb201d777ee9a2d09daf445290e9f (patch) | |
tree | 96317c20a626ce6a95e012a001f63a7001f3f1c1 | |
parent | 539e62935552c59a3f51b225c67dab5d3e02debd (diff) | |
download | libgit2-4c2ca1ba4aebb201d777ee9a2d09daf445290e9f.tar.gz |
ci: test NTLM proxy authentication on Unix
-rwxr-xr-x | ci/test.sh | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/ci/test.sh b/ci/test.sh index 136ff2581..e3caa8086 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -78,9 +78,15 @@ if [ -z "$SKIP_GITDAEMON_TESTS" ]; then fi if [ -z "$SKIP_PROXY_TESTS" ]; then - echo "Starting HTTP proxy..." - curl -L https://github.com/ethomson/poxyproxy/releases/download/v0.4.0/poxyproxy-0.4.0.jar >poxyproxy.jar - java -jar poxyproxy.jar -d --address 127.0.0.1 --port 8080 --credentials foo:bar --quiet & + curl -L https://github.com/ethomson/poxyproxy/releases/download/v0.7.0/poxyproxy-0.7.0.jar >poxyproxy.jar + + echo "" + echo "Starting HTTP proxy (Basic)..." + java -jar poxyproxy.jar --address 127.0.0.1 --port 8080 --credentials foo:bar --auth-type basic --quiet & + + echo "" + echo "Starting HTTP proxy (NTLM)..." + java -jar poxyproxy.jar --address 127.0.0.1 --port 8090 --credentials foo:bar --auth-type ntlm --quiet & fi if [ -z "$SKIP_SSH_TESTS" ]; then @@ -175,7 +181,7 @@ fi if [ -z "$SKIP_PROXY_TESTS" ]; then echo "" - echo "Running proxy tests" + echo "Running proxy tests (Basic authentication)" echo "" export GITTEST_REMOTE_PROXY_HOST="localhost:8080" @@ -185,6 +191,18 @@ if [ -z "$SKIP_PROXY_TESTS" ]; then unset GITTEST_REMOTE_PROXY_HOST unset GITTEST_REMOTE_PROXY_USER unset GITTEST_REMOTE_PROXY_PASS + + echo "" + echo "Running proxy tests (NTLM authentication)" + echo "" + + export GITTEST_REMOTE_PROXY_HOST="localhost:8090" + export GITTEST_REMOTE_PROXY_USER="foo" + export GITTEST_REMOTE_PROXY_PASS="bar" + run_test proxy + unset GITTEST_REMOTE_PROXY_HOST + unset GITTEST_REMOTE_PROXY_USER + unset GITTEST_REMOTE_PROXY_PASS fi if [ -z "$SKIP_SSH_TESTS" ]; then |