Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 525 for lake (0.1 sec)

  1. pkg/kubelet/volumemanager/cache/actual_state_of_world_test.go

    					VolumeSource: v1.VolumeSource{
    						GCEPersistentDisk: &v1.GCEPersistentDiskVolumeSource{
    							PDName: "fake-device1",
    						},
    					},
    				},
    			},
    		},
    	}
    	volumeSpec := &volume.Spec{Volume: &pod.Spec.Volumes[0]}
    	devicePath := "fake/device/path"
    	deviceMountPath := "fake/device/mount/path"
    	generatedVolumeName, err := util.GetUniqueVolumeNameFromSpec(plugin, volumeSpec)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 46.3K bytes
    - Viewed (0)
  2. pilot/pkg/leaderelection/leaderelection_test.go

    	t.Log("drop")
    	// After leader is lost, we can take over
    	_, stop3 := createPerRevisionElection(t, "pod2", "foo", watcher, true, client)
    	// Other revisions are independent
    	_, stop4 := createPerRevisionElection(t, "pod4", "not-foo", watcher, true, client)
    	close(stop3)
    	close(stop4)
    }
    
    func TestPrioritizedLeaderElection(t *testing.T) {
    	client := fake.NewSimpleClientset()
    	watcher := &fakeDefaultWatcher{defaultRevision: "red"}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_dependencies/test_tutorial012_an_py39.py

            "/items/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"}
        )
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Key header invalid"}
    
    
    @needs_py39
    def test_get_invalid_second_header_users(client: TestClient):
        response = client.get(
            "/users/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"}
        )
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  4. src/net/dnsclient_unix_test.go

    	// around after this test is done if we don't call dnsWaitGroup.Wait.
    	ctx, cancel := context.WithTimeout(context.Background(), 2*time.Microsecond)
    	defer cancel()
    	_, err := r.LookupIPAddr(ctx, "where.are.they.now")
    	if err == nil {
    		t.Fatal("fake DNS lookup unexpectedly succeeded")
    	}
    }
    
    func lookupWithFake(fake fakeDNSServer, name string, typ dnsmessage.Type) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 72.4K bytes
    - Viewed (0)
  5. pkg/kubelet/volumemanager/reconciler/reconstruct_test.go

    		{
    			name: "when two pods are using same volume and both are deleted",
    			volumePaths: []string{
    				filepath.Join("pod1", "volumes", "fake-plugin", "pvc-abcdef"),
    				filepath.Join("pod2", "volumes", "fake-plugin", "pvc-abcdef"),
    			},
    			expectedVolumesNeedDevicePath:       []string{"fake-plugin/pvc-abcdef", "fake-plugin/pvc-abcdef"},
    			expectedVolumesFailedReconstruction: []string{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  6. chainable_api.go

    //	db.Where(User{Name: "non_existing"}).Assign(User{Email: "fake@fake.org"}).FirstOrInit(&user)
    //	// user -> User{Name: "non_existing", Email: "fake@fake.org"}
    //
    //	// assign email regardless of if record is found
    //	db.Where(User{Name: "jinzhu"}).Assign(User{Email: "fake@fake.org"}).FirstOrInit(&user)
    //	// user -> User{Name: "jinzhu", Age: 20, Email: "fake@fake.org"}
    //
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 09:47:34 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  7. pkg/proxy/config/api_test.go

    		Spec:       v1.ServiceSpec{Ports: []v1.ServicePort{{Protocol: "TCP", Port: 30}}}}
    
    	// Setup fake api client.
    	client := fake.NewSimpleClientset()
    	fakeWatch := watch.NewFake()
    	client.PrependWatchReactor("services", ktesting.DefaultWatchReactor(fakeWatch, nil))
    
    	stopCh := make(chan struct{})
    	defer close(stopCh)
    
    	handler := NewServiceHandlerMock()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. pilot/pkg/model/extensions_test.go

    		expected *core.AsyncDataSource
    	}{
    		{
    			url: "file://fake.wasm",
    			wasmPlugin: &extensions.WasmPlugin{
    				Url: "file://fake.wasm",
    			},
    			expected: &core.AsyncDataSource{
    				Specifier: &core.AsyncDataSource_Local{
    					Local: &core.DataSource{
    						Specifier: &core.DataSource_Filename{
    							Filename: "fake.wasm",
    						},
    					},
    				},
    			},
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_dependencies/test_tutorial006.py

            "/items/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"}
        )
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Key header invalid"}
    
    
    def test_get_valid_headers():
        response = client.get(
            "/items/",
            headers={
                "X-Token": "fake-super-secret-token",
                "X-Key": "fake-super-secret-key",
            },
        )
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 5K bytes
    - Viewed (0)
  10. pkg/proxy/healthcheck/healthcheck_test.go

    	return &fakeListener{
    		openPorts: sets.Set[string]{},
    	}
    }
    
    func (fake *fakeListener) hasPort(addr string) bool {
    	return fake.openPorts.Has(addr)
    }
    
    func (fake *fakeListener) Listen(addr string) (net.Listener, error) {
    	fake.openPorts.Insert(addr)
    	return &fakeNetListener{
    		parent: fake,
    		addr:   addr,
    	}, nil
    }
    
    type fakeNetListener struct {
    	parent *fakeListener
    	addr   string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 21.4K bytes
    - Viewed (0)
Back to top