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
9023dae8
Commit
9023dae8
authored
Oct 10, 2018
by
Justin Santa Barbara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e2e: remove workarounds for etcd2 test jobs
Now we've removed support for etcd2, we should make sure we're testing chunking fully.
parent
6b9de2bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
12 deletions
+0
-12
chunking.go
test/e2e/apimachinery/chunking.go
+0
-8
table_conversion.go
test/e2e/apimachinery/table_conversion.go
+0
-4
No files found.
test/e2e/apimachinery/chunking.go
View file @
9023dae8
...
...
@@ -82,10 +82,6 @@ var _ = SIGDescribe("Servers with support for API chunking", func() {
list
,
err
:=
client
.
List
(
opts
)
Expect
(
err
)
.
ToNot
(
HaveOccurred
())
framework
.
Logf
(
"Retrieved %d/%d results with rv %s and continue %s"
,
len
(
list
.
Items
),
opts
.
Limit
,
list
.
ResourceVersion
,
list
.
Continue
)
// TODO: kops PR job is still using etcd2, which prevents this feature from working. Remove this check when kops is upgraded to etcd3
if
len
(
list
.
Items
)
>
int
(
opts
.
Limit
)
{
framework
.
Skipf
(
"ERROR: This cluster does not support chunking, which means it is running etcd2 and not supported."
)
}
Expect
(
len
(
list
.
Items
))
.
To
(
BeNumerically
(
"<="
,
opts
.
Limit
))
if
len
(
lastRV
)
==
0
{
...
...
@@ -120,10 +116,6 @@ var _ = SIGDescribe("Servers with support for API chunking", func() {
opts
:=
metav1
.
ListOptions
{}
opts
.
Limit
=
oneTenth
list
,
err
:=
client
.
List
(
opts
)
// TODO: kops PR job is still using etcd2, which prevents this feature from working. Remove this check when kops is upgraded to etcd3
if
len
(
list
.
Items
)
>
int
(
opts
.
Limit
)
{
framework
.
Skipf
(
"ERROR: This cluster does not support chunking, which means it is running etcd2 and not supported."
)
}
Expect
(
err
)
.
ToNot
(
HaveOccurred
())
firstToken
:=
list
.
Continue
firstRV
:=
list
.
ResourceVersion
...
...
test/e2e/apimachinery/table_conversion.go
View file @
9023dae8
...
...
@@ -108,10 +108,6 @@ var _ = SIGDescribe("Servers with support for Table transformation", func() {
SetHeader
(
"Accept"
,
"application/json;as=Table;v=v1beta1;g=meta.k8s.io"
)
.
Do
()
.
Into
(
pagedTable
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
// TODO: kops PR job is still using etcd2, which prevents this feature from working. Remove this check when kops is upgraded to etcd3
if
len
(
pagedTable
.
Rows
)
>
2
{
framework
.
Skipf
(
"ERROR: This cluster does not support chunking, which means it is running etcd2 and not supported."
)
}
Expect
(
len
(
pagedTable
.
Rows
))
.
To
(
Equal
(
2
))
Expect
(
pagedTable
.
ResourceVersion
)
.
ToNot
(
Equal
(
""
))
Expect
(
pagedTable
.
SelfLink
)
.
ToNot
(
Equal
(
""
))
...
...
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