Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
fd09d8b8
Commit
fd09d8b8
authored
Jun 14, 2016
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integration: Rename method names
parent
d48d399f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
33 deletions
+33
-33
integration-tests/nghttpx_http1_test.go
integration-tests/nghttpx_http1_test.go
+11
-11
integration-tests/nghttpx_http2_test.go
integration-tests/nghttpx_http2_test.go
+11
-11
integration-tests/nghttpx_spdy_test.go
integration-tests/nghttpx_spdy_test.go
+11
-11
No files found.
integration-tests/nghttpx_http1_test.go
View file @
fd09d8b8
...
...
@@ -795,16 +795,16 @@ func TestH1H2RespPhaseReturn(t *testing.T) {
}
}
// TestH1APIBackend
Replace exercise backendconfig API endpoint
//
routine
for successful case.
func
TestH1APIBackend
Replace
(
t
*
testing
.
T
)
{
// TestH1APIBackend
config exercise backendconfig API endpoint routine
// for successful case.
func
TestH1APIBackend
config
(
t
*
testing
.
T
)
{
st
:=
newServerTesterConnectPort
([]
string
{
"-f127.0.0.1,3010;api;no-tls"
},
t
,
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
t
.
Fatalf
(
"request should not be forwarded"
)
},
3010
)
defer
st
.
Close
()
res
,
err
:=
st
.
http1
(
requestParam
{
name
:
"TestH1APIBackend
Replace
"
,
name
:
"TestH1APIBackend
config
"
,
path
:
"/api/v1beta1/backendconfig"
,
method
:
"PUT"
,
body
:
[]
byte
(
`# comment
...
...
@@ -832,16 +832,16 @@ backend=127.0.0.1,3011
}
}
// TestH1APIBackend
Replace
Query exercise backendconfig API endpoint
// TestH1APIBackend
config
Query exercise backendconfig API endpoint
// routine with query.
func
TestH1APIBackend
Replace
Query
(
t
*
testing
.
T
)
{
func
TestH1APIBackend
config
Query
(
t
*
testing
.
T
)
{
st
:=
newServerTesterConnectPort
([]
string
{
"-f127.0.0.1,3010;api;no-tls"
},
t
,
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
t
.
Fatalf
(
"request should not be forwarded"
)
},
3010
)
defer
st
.
Close
()
res
,
err
:=
st
.
http1
(
requestParam
{
name
:
"TestH1APIBackend
Replace
Query"
,
name
:
"TestH1APIBackend
config
Query"
,
path
:
"/api/v1beta1/backendconfig?foo=bar"
,
method
:
"PUT"
,
body
:
[]
byte
(
`# comment
...
...
@@ -869,16 +869,16 @@ backend=127.0.0.1,3011
}
}
// TestH1APIBackend
ReplaceBadMethod exercise backendconfig API
//
endpoint
routine with bad method.
func
TestH1APIBackend
Replace
BadMethod
(
t
*
testing
.
T
)
{
// TestH1APIBackend
configBadMethod exercise backendconfig API endpoint
// routine with bad method.
func
TestH1APIBackend
config
BadMethod
(
t
*
testing
.
T
)
{
st
:=
newServerTesterConnectPort
([]
string
{
"-f127.0.0.1,3010;api;no-tls"
},
t
,
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
t
.
Fatalf
(
"request should not be forwarded"
)
},
3010
)
defer
st
.
Close
()
res
,
err
:=
st
.
http1
(
requestParam
{
name
:
"TestH1APIBackend
Replace
BadMethod"
,
name
:
"TestH1APIBackend
config
BadMethod"
,
path
:
"/api/v1beta1/backendconfig"
,
method
:
"GET"
,
body
:
[]
byte
(
`# comment
...
...
integration-tests/nghttpx_http2_test.go
View file @
fd09d8b8
...
...
@@ -1845,16 +1845,16 @@ func TestH2H2RespPhaseReturn(t *testing.T) {
}
}
// TestH2APIBackend
Replace exercise backendconfig API endpoint
//
routine
for successful case.
func
TestH2APIBackend
Replace
(
t
*
testing
.
T
)
{
// TestH2APIBackend
config exercise backendconfig API endpoint routine
// for successful case.
func
TestH2APIBackend
config
(
t
*
testing
.
T
)
{
st
:=
newServerTesterConnectPort
([]
string
{
"-f127.0.0.1,3010;api;no-tls"
},
t
,
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
t
.
Fatalf
(
"request should not be forwarded"
)
},
3010
)
defer
st
.
Close
()
res
,
err
:=
st
.
http2
(
requestParam
{
name
:
"TestH2APIBackend
Replace
"
,
name
:
"TestH2APIBackend
config
"
,
path
:
"/api/v1beta1/backendconfig"
,
method
:
"PUT"
,
body
:
[]
byte
(
`# comment
...
...
@@ -1882,16 +1882,16 @@ backend=127.0.0.1,3011
}
}
// TestH2APIBackend
Replace
Query exercise backendconfig API endpoint
// TestH2APIBackend
config
Query exercise backendconfig API endpoint
// routine with query.
func
TestH2APIBackend
Replace
Query
(
t
*
testing
.
T
)
{
func
TestH2APIBackend
config
Query
(
t
*
testing
.
T
)
{
st
:=
newServerTesterConnectPort
([]
string
{
"-f127.0.0.1,3010;api;no-tls"
},
t
,
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
t
.
Fatalf
(
"request should not be forwarded"
)
},
3010
)
defer
st
.
Close
()
res
,
err
:=
st
.
http2
(
requestParam
{
name
:
"TestH2APIBackend
Replace
Query"
,
name
:
"TestH2APIBackend
config
Query"
,
path
:
"/api/v1beta1/backendconfig?foo=bar"
,
method
:
"PUT"
,
body
:
[]
byte
(
`# comment
...
...
@@ -1919,16 +1919,16 @@ backend=127.0.0.1,3011
}
}
// TestH2APIBackend
ReplaceBadMethod exercise backendconfig API
//
endpoint
routine with bad method.
func
TestH2APIBackend
Replace
BadMethod
(
t
*
testing
.
T
)
{
// TestH2APIBackend
configBadMethod exercise backendconfig API endpoint
// routine with bad method.
func
TestH2APIBackend
config
BadMethod
(
t
*
testing
.
T
)
{
st
:=
newServerTesterConnectPort
([]
string
{
"-f127.0.0.1,3010;api;no-tls"
},
t
,
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
t
.
Fatalf
(
"request should not be forwarded"
)
},
3010
)
defer
st
.
Close
()
res
,
err
:=
st
.
http2
(
requestParam
{
name
:
"TestH2APIBackend
Replace
BadMethod"
,
name
:
"TestH2APIBackend
config
BadMethod"
,
path
:
"/api/v1beta1/backendconfig"
,
method
:
"GET"
,
body
:
[]
byte
(
`# comment
...
...
integration-tests/nghttpx_spdy_test.go
View file @
fd09d8b8
...
...
@@ -476,16 +476,16 @@ func TestS3H2RespPhaseReturn(t *testing.T) {
}
}
// TestS3APIBackend
Replace exercise backendconfig API endpoint
//
routine
for successful case.
func
TestS3APIBackend
Replace
(
t
*
testing
.
T
)
{
// TestS3APIBackend
config exercise backendconfig API endpoint routine
// for successful case.
func
TestS3APIBackend
config
(
t
*
testing
.
T
)
{
st
:=
newServerTesterTLSConnectPort
([]
string
{
"--npn-list=spdy/3.1"
,
"-f127.0.0.1,3010;api"
},
t
,
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
t
.
Fatalf
(
"request should not be forwarded"
)
},
3010
)
defer
st
.
Close
()
res
,
err
:=
st
.
spdy
(
requestParam
{
name
:
"TestS3APIBackend
Replace
"
,
name
:
"TestS3APIBackend
config
"
,
path
:
"/api/v1beta1/backendconfig"
,
method
:
"PUT"
,
body
:
[]
byte
(
`# comment
...
...
@@ -513,16 +513,16 @@ backend=127.0.0.1,3011
}
}
// TestS3APIBackend
Replace
Query exercise backendconfig API endpoint
// TestS3APIBackend
config
Query exercise backendconfig API endpoint
// routine with query.
func
TestS3APIBackend
Replace
Query
(
t
*
testing
.
T
)
{
func
TestS3APIBackend
config
Query
(
t
*
testing
.
T
)
{
st
:=
newServerTesterTLSConnectPort
([]
string
{
"--npn-list=spdy/3.1"
,
"-f127.0.0.1,3010;api"
},
t
,
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
t
.
Fatalf
(
"request should not be forwarded"
)
},
3010
)
defer
st
.
Close
()
res
,
err
:=
st
.
spdy
(
requestParam
{
name
:
"TestS3APIBackend
Replace
Query"
,
name
:
"TestS3APIBackend
config
Query"
,
path
:
"/api/v1beta1/backendconfig?foo=bar"
,
method
:
"PUT"
,
body
:
[]
byte
(
`# comment
...
...
@@ -550,16 +550,16 @@ backend=127.0.0.1,3011
}
}
// TestS3APIBackend
ReplaceBadMethod exercise backendconfig API
//
endpoint
routine with bad method.
func
TestS3APIBackend
Replace
BadMethod
(
t
*
testing
.
T
)
{
// TestS3APIBackend
configBadMethod exercise backendconfig API endpoint
// routine with bad method.
func
TestS3APIBackend
config
BadMethod
(
t
*
testing
.
T
)
{
st
:=
newServerTesterTLSConnectPort
([]
string
{
"--npn-list=spdy/3.1"
,
"-f127.0.0.1,3010;api"
},
t
,
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
t
.
Fatalf
(
"request should not be forwarded"
)
},
3010
)
defer
st
.
Close
()
res
,
err
:=
st
.
spdy
(
requestParam
{
name
:
"TestS3APIBackend
Replace
BadMethod"
,
name
:
"TestS3APIBackend
config
BadMethod"
,
path
:
"/api/v1beta1/backendconfig"
,
method
:
"GET"
,
body
:
[]
byte
(
`# comment
...
...
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