Merge pull request #130865 from serathius/integration-refactor

Split subfunction to allow adding more subtests
This commit is contained in:
Kubernetes Prow Robot 2025-03-17 08:18:27 -07:00 committed by GitHub
commit d367e0b326
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -389,6 +389,12 @@ func TestListOptions(t *testing.T) {
for _, watchCacheEnabled := range []bool{true, false} {
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)
prefix := path.Join("/", guuid.New().String(), "registry")
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) {