Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d30f99b3
Commit
d30f99b3
authored
Jan 04, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #18946 from smarterclayton/httplog
Auto commit by PR queue bot
parents
cf7fd487
0702164f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
log.go
pkg/httplog/log.go
+5
-0
master_test.go
test/integration/master_test.go
+14
-0
No files found.
pkg/httplog/log.go
View file @
d30f99b3
...
@@ -200,6 +200,11 @@ func (rl *respLogger) Hijack() (net.Conn, *bufio.ReadWriter, error) {
...
@@ -200,6 +200,11 @@ func (rl *respLogger) Hijack() (net.Conn, *bufio.ReadWriter, error) {
return
rl
.
w
.
(
http
.
Hijacker
)
.
Hijack
()
return
rl
.
w
.
(
http
.
Hijacker
)
.
Hijack
()
}
}
// CloseNotify implements http.CloseNotifier
func
(
rl
*
respLogger
)
CloseNotify
()
<-
chan
bool
{
return
rl
.
w
.
(
http
.
CloseNotifier
)
.
CloseNotify
()
}
func
(
rl
*
respLogger
)
recordStatus
(
status
int
)
{
func
(
rl
*
respLogger
)
recordStatus
(
status
int
)
{
rl
.
status
=
status
rl
.
status
=
status
rl
.
statusRecorded
=
true
rl
.
statusRecorded
=
true
...
...
test/integration/master_test.go
View file @
d30f99b3
...
@@ -37,3 +37,17 @@ func TestExperimentalPrefix(t *testing.T) {
...
@@ -37,3 +37,17 @@ func TestExperimentalPrefix(t *testing.T) {
t
.
Fatalf
(
"got status %v instead of 200 OK"
,
resp
.
StatusCode
)
t
.
Fatalf
(
"got status %v instead of 200 OK"
,
resp
.
StatusCode
)
}
}
}
}
func
TestWatchSucceedsWithoutArgs
(
t
*
testing
.
T
)
{
_
,
s
:=
framework
.
RunAMaster
(
t
)
defer
s
.
Close
()
resp
,
err
:=
http
.
Get
(
s
.
URL
+
"/api/v1/namespaces?watch=1"
)
if
err
!=
nil
{
t
.
Fatalf
(
"unexpected error getting experimental prefix: %v"
,
err
)
}
if
resp
.
StatusCode
!=
http
.
StatusOK
{
t
.
Fatalf
(
"got status %v instead of 200 OK"
,
resp
.
StatusCode
)
}
resp
.
Body
.
Close
()
}
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