Skip to content

Commit

Permalink
Merge pull request kubernetes#111264 from ii/promote-resourcequota-li…
Browse files Browse the repository at this point in the history
…fecycle-test

Promote List, Patch & DeleteCollection ResourceQuota test - +3 endpoint coverage
  • Loading branch information
k8s-ci-robot authored Jul 21, 2022
2 parents 398a67c + bc783aa commit b431a61
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
11 changes: 11 additions & 0 deletions test/conformance/testdata/conformance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,17 @@
MUST match to expected used and total allowed resource quota count within namespace.
release: v1.16
file: test/e2e/apimachinery/resource_quota.go
- testname: ResourceQuota, manage lifecycle of a ResourceQuota
codename: '[sig-api-machinery] ResourceQuota should manage the lifecycle of a ResourceQuota
[Conformance]'
description: Attempt to create a ResourceQuota for CPU and Memory quota limits.
Creation MUST be successful. Attempt to list all namespaces with a label selector
which MUST succeed. One list MUST be found. The ResourceQuota when patched MUST
succeed. Given the patching of the ResourceQuota, the fields MUST equal the new
values. It MUST succeed at deleting a collection of ResourceQuota via a label
selector.
release: v1.25
file: test/e2e/apimachinery/resource_quota.go
- testname: ResourceQuota, quota scope, BestEffort and NotBestEffort scope
codename: '[sig-api-machinery] ResourceQuota should verify ResourceQuota with best
effort scope. [Conformance]'
Expand Down
13 changes: 12 additions & 1 deletion test/e2e/apimachinery/resource_quota.go
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,18 @@ var _ = SIGDescribe("ResourceQuota", func() {
}
})

ginkgo.It("should manage the lifecycle of a ResourceQuota", func() {
/*
Release: v1.25
Testname: ResourceQuota, manage lifecycle of a ResourceQuota
Description: Attempt to create a ResourceQuota for CPU and Memory
quota limits. Creation MUST be successful. Attempt to list all
namespaces with a label selector which MUST succeed. One list
MUST be found. The ResourceQuota when patched MUST succeed.
Given the patching of the ResourceQuota, the fields MUST equal
the new values. It MUST succeed at deleting a collection of
ResourceQuota via a label selector.
*/
framework.ConformanceIt("should manage the lifecycle of a ResourceQuota", func() {
client := f.ClientSet
ns := f.Namespace.Name

Expand Down

0 comments on commit b431a61

Please sign in to comment.