mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
Merge pull request #120600 from wojtek-t/conformance_metadata
Fix missing conformance metadata forAPI Chunking tests
This commit is contained in:
commit
9bba6cd627
32
test/conformance/testdata/conformance.yaml
vendored
32
test/conformance/testdata/conformance.yaml
vendored
@ -637,6 +637,38 @@
|
|||||||
of 'Terminating' scoped ResourceQuota.
|
of 'Terminating' scoped ResourceQuota.
|
||||||
release: v1.16
|
release: v1.16
|
||||||
file: test/e2e/apimachinery/resource_quota.go
|
file: test/e2e/apimachinery/resource_quota.go
|
||||||
|
- testname: API Chunking, server should return chunks of results for list calls
|
||||||
|
codename: '[sig-api-machinery] Servers with support for API chunking should return
|
||||||
|
chunks of results for list calls [Conformance]'
|
||||||
|
description: Create a large number of PodTemplates. Attempt to retrieve the first
|
||||||
|
chunk with limit set; the server MUST return the chunk of the size not exceeding
|
||||||
|
the limit with RemainingItems set in the response. Attempt to retrieve the remaining
|
||||||
|
items by providing the received continuation token and limit; the server MUST
|
||||||
|
return the remaining items in chunks of the size not exceeding the limit, with
|
||||||
|
appropriately set RemainingItems field in the response and with the ResourceVersion
|
||||||
|
returned in the first response. Attempt to list all objects at once without setting
|
||||||
|
the limit; the server MUST return all items in a single response.
|
||||||
|
release: v1.29
|
||||||
|
file: test/e2e/apimachinery/chunking.go
|
||||||
|
- testname: API Chunking, server should support continue listing from the last key
|
||||||
|
even if the original version has been compacted away
|
||||||
|
codename: '[sig-api-machinery] Servers with support for API chunking should support
|
||||||
|
continue listing from the last key if the original version has been compacted
|
||||||
|
away, though the list is inconsistent [Slow] [Conformance]'
|
||||||
|
description: Create a large number of PodTemplates. Attempt to retrieve the first
|
||||||
|
chunk with limit set; the server MUST return the chunk of the size not exceeding
|
||||||
|
the limit with RemainingItems set in the response. Attempt to retrieve the second
|
||||||
|
page until the continuation token expires; the server MUST return a continuation
|
||||||
|
token for inconsistent list continuation. Attempt to retrieve the second page
|
||||||
|
with the received inconsistent list continuation token; the server MUST return
|
||||||
|
the number of items not exceeding the limit, a new continuation token and appropriately
|
||||||
|
set RemainingItems field in the response. Attempt to retrieve the remaining pages
|
||||||
|
by passing the received continuation token; the server MUST return the remaining
|
||||||
|
items in chunks of the size not exceeding the limit, with appropriately set RemainingItems
|
||||||
|
field in the response and with the ResourceVersion returned as part of the inconsistent
|
||||||
|
list.
|
||||||
|
release: v1.29
|
||||||
|
file: test/e2e/apimachinery/chunking.go
|
||||||
- testname: API metadata HTTP return
|
- testname: API metadata HTTP return
|
||||||
codename: '[sig-api-machinery] Servers with support for Table transformation should
|
codename: '[sig-api-machinery] Servers with support for Table transformation should
|
||||||
return a 406 for a backend which does not implement metadata [Conformance]'
|
return a 406 for a backend which does not implement metadata [Conformance]'
|
||||||
|
@ -69,6 +69,17 @@ var _ = SIGDescribe("Servers with support for API chunking", func() {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/*
|
||||||
|
Release: v1.29
|
||||||
|
Testname: API Chunking, server should return chunks of results for list calls
|
||||||
|
Description: Create a large number of PodTemplates. Attempt to retrieve the first chunk with limit set;
|
||||||
|
the server MUST return the chunk of the size not exceeding the limit with RemainingItems set in the response.
|
||||||
|
Attempt to retrieve the remaining items by providing the received continuation token and limit;
|
||||||
|
the server MUST return the remaining items in chunks of the size not exceeding the limit, with appropriately
|
||||||
|
set RemainingItems field in the response and with the ResourceVersion returned in the first response.
|
||||||
|
Attempt to list all objects at once without setting the limit; the server MUST return all items in a single
|
||||||
|
response.
|
||||||
|
*/
|
||||||
framework.ConformanceIt("should return chunks of results for list calls", func(ctx context.Context) {
|
framework.ConformanceIt("should return chunks of results for list calls", func(ctx context.Context) {
|
||||||
ns := f.Namespace.Name
|
ns := f.Namespace.Name
|
||||||
c := f.ClientSet
|
c := f.ClientSet
|
||||||
@ -116,6 +127,20 @@ var _ = SIGDescribe("Servers with support for API chunking", func() {
|
|||||||
gomega.Expect(list.Items).To(gomega.HaveLen(numberOfTotalResources))
|
gomega.Expect(list.Items).To(gomega.HaveLen(numberOfTotalResources))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
/*
|
||||||
|
Release: v1.29
|
||||||
|
Testname: API Chunking, server should support continue listing from the last key even if the original version has been compacted away
|
||||||
|
Description: Create a large number of PodTemplates. Attempt to retrieve the first chunk with limit set;
|
||||||
|
the server MUST return the chunk of the size not exceeding the limit with RemainingItems set in the response.
|
||||||
|
Attempt to retrieve the second page until the continuation token expires; the server MUST return a
|
||||||
|
continuation token for inconsistent list continuation.
|
||||||
|
Attempt to retrieve the second page with the received inconsistent list continuation token; the server
|
||||||
|
MUST return the number of items not exceeding the limit, a new continuation token and appropriately set
|
||||||
|
RemainingItems field in the response.
|
||||||
|
Attempt to retrieve the remaining pages by passing the received continuation token; the server
|
||||||
|
MUST return the remaining items in chunks of the size not exceeding the limit, with appropriately
|
||||||
|
set RemainingItems field in the response and with the ResourceVersion returned as part of the inconsistent list.
|
||||||
|
*/
|
||||||
framework.ConformanceIt("should support continue listing from the last key if the original version has been compacted away, though the list is inconsistent [Slow]", func(ctx context.Context) {
|
framework.ConformanceIt("should support continue listing from the last key if the original version has been compacted away, though the list is inconsistent [Slow]", func(ctx context.Context) {
|
||||||
ns := f.Namespace.Name
|
ns := f.Namespace.Name
|
||||||
c := f.ClientSet
|
c := f.ClientSet
|
||||||
|
Loading…
Reference in New Issue
Block a user