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
3a52b978
Commit
3a52b978
authored
Jan 09, 2019
by
KevinKingKong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove the unnecessary test case
parent
120570b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
32 deletions
+0
-32
handler_proxy_test.go
...8s.io/kube-aggregator/pkg/apiserver/handler_proxy_test.go
+0
-32
No files found.
staging/src/k8s.io/kube-aggregator/pkg/apiserver/handler_proxy_test.go
View file @
3a52b978
...
@@ -261,38 +261,6 @@ func TestProxyHandler(t *testing.T) {
...
@@ -261,38 +261,6 @@ func TestProxyHandler(t *testing.T) {
},
},
expectedStatusCode
:
http
.
StatusServiceUnavailable
,
expectedStatusCode
:
http
.
StatusServiceUnavailable
,
},
},
"change aggregator http request host"
:
{
user
:
&
user
.
DefaultInfo
{
Name
:
"username"
,
Groups
:
[]
string
{
"one"
,
"two"
},
},
path
:
"/request/path"
,
apiService
:
&
apiregistration
.
APIService
{
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
"v1.foo"
},
Spec
:
apiregistration
.
APIServiceSpec
{
Service
:
&
apiregistration
.
ServiceReference
{},
Group
:
"foo"
,
Version
:
"v1"
,
InsecureSkipTLSVerify
:
true
,
},
Status
:
apiregistration
.
APIServiceStatus
{
Conditions
:
[]
apiregistration
.
APIServiceCondition
{
{
Type
:
apiregistration
.
Available
,
Status
:
apiregistration
.
ConditionTrue
},
},
},
},
expectedStatusCode
:
http
.
StatusOK
,
expectedCalled
:
true
,
expectedHeaders
:
map
[
string
][]
string
{
"X-Forwarded-Proto"
:
{
"https"
},
"X-Forwarded-Uri"
:
{
"/request/path"
},
"X-Forwarded-For"
:
{
"127.0.0.1"
},
"X-Remote-User"
:
{
"username"
},
"User-Agent"
:
{
"Go-http-client/1.1"
},
"Accept-Encoding"
:
{
"gzip"
},
"X-Remote-Group"
:
{
"one"
,
"two"
},
},
},
}
}
for
name
,
tc
:=
range
tests
{
for
name
,
tc
:=
range
tests
{
...
...
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