Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
4c2ca1ba
Commit
4c2ca1ba
authored
6 years ago
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: test NTLM proxy authentication on Unix
parent
539e6293
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
ci/test.sh
+22
-4
No files found.
ci/test.sh
View file @
4c2ca1ba
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment