mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #130865 from serathius/integration-refactor
Split subfunction to allow adding more subtests
This commit is contained in:
commit
d367e0b326
@ -389,6 +389,12 @@ func TestListOptions(t *testing.T) {
|
|||||||
|
|
||||||
for _, watchCacheEnabled := range []bool{true, false} {
|
for _, watchCacheEnabled := range []bool{true, false} {
|
||||||
t.Run(fmt.Sprintf("watchCacheEnabled=%t", watchCacheEnabled), func(t *testing.T) {
|
t.Run(fmt.Sprintf("watchCacheEnabled=%t", watchCacheEnabled), func(t *testing.T) {
|
||||||
|
testListOptions(t, watchCacheEnabled)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func testListOptions(t *testing.T, watchCacheEnabled bool) {
|
||||||
tCtx := ktesting.Init(t)
|
tCtx := ktesting.Init(t)
|
||||||
prefix := path.Join("/", guuid.New().String(), "registry")
|
prefix := path.Join("/", guuid.New().String(), "registry")
|
||||||
etcdConfig := storagebackend.Config{
|
etcdConfig := storagebackend.Config{
|
||||||
@ -514,8 +520,6 @@ func TestListOptions(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func testListOptionsCase(t *testing.T, rsClient appsv1.ReplicaSetInterface, watchCacheEnabled bool, opts metav1.ListOptions, compactedRv string) {
|
func testListOptionsCase(t *testing.T, rsClient appsv1.ReplicaSetInterface, watchCacheEnabled bool, opts metav1.ListOptions, compactedRv string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user