Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
caddy
Commits
d291b767
Commit
d291b767
authored
Jun 03, 2016
by
Marc Guasch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gofmt fixes
parent
881da313
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
caddy/setup/proxy_test.go
caddy/setup/proxy_test.go
+14
-14
No files found.
caddy/setup/proxy_test.go
View file @
d291b767
...
@@ -18,7 +18,7 @@ func TestUpstream(t *testing.T) {
...
@@ -18,7 +18,7 @@ func TestUpstream(t *testing.T) {
"proxy / localhost:80"
,
"proxy / localhost:80"
,
false
,
false
,
map
[
string
]
struct
{}{
map
[
string
]
struct
{}{
"http://localhost:80"
:
struct
{}
{},
"http://localhost:80"
:
{},
},
},
},
},
...
@@ -27,9 +27,9 @@ func TestUpstream(t *testing.T) {
...
@@ -27,9 +27,9 @@ func TestUpstream(t *testing.T) {
"proxy / localhost:8080-8082"
,
"proxy / localhost:8080-8082"
,
false
,
false
,
map
[
string
]
struct
{}{
map
[
string
]
struct
{}{
"http://localhost:8080"
:
struct
{}
{},
"http://localhost:8080"
:
{},
"http://localhost:8081"
:
struct
{}
{},
"http://localhost:8081"
:
{},
"http://localhost:8082"
:
struct
{}
{},
"http://localhost:8082"
:
{},
},
},
},
},
...
@@ -38,7 +38,7 @@ func TestUpstream(t *testing.T) {
...
@@ -38,7 +38,7 @@ func TestUpstream(t *testing.T) {
"proxy / {
\n
upstream localhost:8080
\n
}"
,
"proxy / {
\n
upstream localhost:8080
\n
}"
,
false
,
false
,
map
[
string
]
struct
{}{
map
[
string
]
struct
{}{
"http://localhost:8080"
:
struct
{}
{},
"http://localhost:8080"
:
{},
},
},
},
},
...
@@ -47,8 +47,8 @@ func TestUpstream(t *testing.T) {
...
@@ -47,8 +47,8 @@ func TestUpstream(t *testing.T) {
"proxy / {
\n
upstream localhost:8080-8081
\n
}"
,
"proxy / {
\n
upstream localhost:8080-8081
\n
}"
,
false
,
false
,
map
[
string
]
struct
{}{
map
[
string
]
struct
{}{
"http://localhost:8080"
:
struct
{}
{},
"http://localhost:8080"
:
{},
"http://localhost:8081"
:
struct
{}
{},
"http://localhost:8081"
:
{},
},
},
},
},
...
@@ -57,9 +57,9 @@ func TestUpstream(t *testing.T) {
...
@@ -57,9 +57,9 @@ func TestUpstream(t *testing.T) {
"proxy / localhost:8080 {
\n
upstream localhost:8081-8082
\n
}"
,
"proxy / localhost:8080 {
\n
upstream localhost:8081-8082
\n
}"
,
false
,
false
,
map
[
string
]
struct
{}{
map
[
string
]
struct
{}{
"http://localhost:8080"
:
struct
{}
{},
"http://localhost:8080"
:
{},
"http://localhost:8081"
:
struct
{}
{},
"http://localhost:8081"
:
{},
"http://localhost:8082"
:
struct
{}
{},
"http://localhost:8082"
:
{},
},
},
},
},
...
@@ -68,8 +68,8 @@ func TestUpstream(t *testing.T) {
...
@@ -68,8 +68,8 @@ func TestUpstream(t *testing.T) {
"proxy / localhost:8080 {
\n
upstream unix:/var/foo
\n
}"
,
"proxy / localhost:8080 {
\n
upstream unix:/var/foo
\n
}"
,
false
,
false
,
map
[
string
]
struct
{}{
map
[
string
]
struct
{}{
"http://localhost:8080"
:
struct
{}
{},
"http://localhost:8080"
:
{},
"unix:/var/foo"
:
struct
{}
{},
"unix:/var/foo"
:
{},
},
},
},
},
...
@@ -92,8 +92,8 @@ func TestUpstream(t *testing.T) {
...
@@ -92,8 +92,8 @@ func TestUpstream(t *testing.T) {
"proxy / http://localhost {
\n
upstream testendpoint
\n
}"
,
"proxy / http://localhost {
\n
upstream testendpoint
\n
}"
,
false
,
false
,
map
[
string
]
struct
{}{
map
[
string
]
struct
{}{
"http://localhost"
:
struct
{}
{},
"http://localhost"
:
{},
"http://testendpoint"
:
struct
{}
{},
"http://testendpoint"
:
{},
},
},
},
},
}
{
}
{
...
...
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