- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for TestWatch (0.15 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go
) func RunTestWatch(ctx context.Context, t *testing.T, store storage.Interface) { testWatch(ctx, t, store, false) testWatch(ctx, t, store, true) } // It tests that // - first occurrence of objects should notify Add event // - update should trigger Modified event // - update that gets filtered should trigger Deleted event func testWatch(ctx context.Context, t *testing.T, store storage.Interface, recursive bool) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 63.8K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go
_, err := b.Do().Object() if err == nil || !strings.Contains(err.Error(), "subresource cannot be used when bulk resources are specified") { t.Fatalf("unexpected response: %v", err) } } func TestWatch(t *testing.T) { _, svc := testData() w, err := newDefaultBuilderWith(fakeClientWith("", t, map[string]string{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 01 11:58:41 UTC 2023 - 56.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/registry/rest/resttest/resttest.go
t.testListFound(valid.DeepCopyObject(), assignFn) t.testListMatchLabels(valid.DeepCopyObject(), assignFn) t.testListTableConversion(valid.DeepCopyObject(), assignFn) } // Test watching objects. func (t *Tester) TestWatch( valid runtime.Object, emitFn EmitFunc, labelsPass, labelsFail []labels.Set, fieldsPass, fieldsFail []fields.Set, actions []string) { t.testWatchLabels(valid.DeepCopyObject(), emitFn, labelsPass, labelsFail, actions)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 55.8K bytes - Viewed (0)