diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-03-11 23:33:20 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-10 19:58:22 +0100 |
commit | 1ef77e377a467f622816f3922ffd6aa0f7097fbe (patch) | |
tree | 6e42d0f36291932da329f11925987601d8ff1b18 | |
parent | ee3d35cf8efb99071a258fbaca5e31e5da3a9be0 (diff) | |
download | libgit2-1ef77e377a467f622816f3922ffd6aa0f7097fbe.tar.gz |
ci: test NTLM proxy authentication on Windows
Update our CI tests to start a proxy that requires NTLM authentication;
ensure that our WIndows HTTP client can speak NTLM.
-rw-r--r-- | ci/test.ps1 | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/ci/test.ps1 b/ci/test.ps1 index 06e0ab228..ad368091a 100644 --- a/ci/test.ps1 +++ b/ci/test.ps1 @@ -38,10 +38,15 @@ Write-Host "## Configuring test environment" Write-Host "##############################################################################" if (-not $Env:SKIP_PROXY_TESTS) { + Invoke-WebRequest -Method GET -Uri https://github.com/ethomson/poxyproxy/releases/download/v0.7.0/poxyproxy-0.7.0.jar -OutFile poxyproxy.jar + + Write-Host "" + Write-Host "Starting HTTP proxy (Basic)..." + javaw -jar poxyproxy.jar --port 8080 --credentials foo:bar --auth-type basic --quiet + Write-Host "" - Write-Host "Starting HTTP proxy..." - Invoke-WebRequest -Method GET -Uri https://github.com/ethomson/poxyproxy/releases/download/v0.4.0/poxyproxy-0.4.0.jar -OutFile poxyproxy.jar - javaw -jar poxyproxy.jar -d --port 8080 --credentials foo:bar --quiet + Write-Host "Starting HTTP proxy (NTLM)..." + javaw -jar poxyproxy.jar --port 8090 --credentials foo:bar --auth-type ntlm --quiet } Write-Host "" @@ -76,14 +81,24 @@ if (-not $Env:SKIP_ONLINE_TESTS) { } if (-not $Env:SKIP_PROXY_TESTS) { + # Test HTTP Basic authentication Write-Host "" - Write-Host "Running proxy tests" + Write-Host "Running proxy tests (Basic authentication)" Write-Host "" $Env:GITTEST_REMOTE_PROXY_HOST="localhost:8080" $Env:GITTEST_REMOTE_PROXY_USER="foo" $Env:GITTEST_REMOTE_PROXY_PASS="bar" + run_test proxy + # Test NTLM authentication + Write-Host "" + Write-Host "Running proxy tests (NTLM authentication)" + Write-Host "" + + $Env:GITTEST_REMOTE_PROXY_HOST="localhost:8090" + $Env:GITTEST_REMOTE_PROXY_USER="foo" + $Env:GITTEST_REMOTE_PROXY_PASS="bar" run_test proxy $Env:GITTEST_REMOTE_PROXY_HOST=$null |