Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,843 for lake (0.04 sec)

  1. pkg/test/framework/components/gcemetadata/gcemetadata.go

    type Instance interface {
    	// Address is the IP Address of the service provided by the fake GCE
    	// Metadata Server.
    	Address() string
    	// Address is the IP Address of the service provided by the fake GCE
    	// Metadata Server to be used for "VM" instances
    	AddressVM() string
    }
    
    // Config defines the options for creating an fake GCE Metadata Server component.
    type Config struct {
    	// Cluster to be used in a multicluster environment
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 04 22:47:52 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  2. 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)
  3. staging/src/k8s.io/apiserver/plugin/pkg/audit/buffered/buffered_test.go

    	backend := NewBackend(&fake.Backend{}, config).(*bufferedBackend)
    
    	backend.ProcessEvents(newEvents(2)...)
    
    	require.Len(t, backend.buffer, 1, "buffed contains more elements than it should")
    }
    
    func TestBufferedBackendShutdownWaitsForDelegatedCalls(t *testing.T) {
    	t.Parallel()
    
    	delegatedCallStartCh := make(chan struct{})
    	delegatedCallEndCh := make(chan struct{})
    	delegateBackend := &fake.Backend{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 14 17:20:35 UTC 2018
    - 5.9K bytes
    - Viewed (0)
  4. 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)
  5. pkg/volume/nfs/nfs_test.go

    	if err != nil {
    		t.Errorf("Can't find the plugin by name")
    	}
    	fake := mount.NewFakeMounter(nil)
    	pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{UID: types.UID("poduid")}}
    	mounter, err := plug.(*nfsPlugin).newMounterInternal(spec, pod, fake)
    	if err != nil {
    		t.Errorf("Failed to make a new Mounter: %v", err)
    	}
    	if mounter == nil {
    		t.Errorf("Got a nil Mounter")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 9K bytes
    - Viewed (0)
  6. pkg/scheduler/testing/framework/fake_listers.go

    	return nil, fmt.Errorf("not implemented")
    }
    
    // PersistentVolumeClaims returns a fake PersistentVolumeClaimLister object.
    func (pvcs PersistentVolumeClaimLister) PersistentVolumeClaims(namespace string) corelisters.PersistentVolumeClaimNamespaceLister {
    	ps := make([]*v1.PersistentVolumeClaim, len(pvcs))
    	for i := range pvcs {
    		ps[i] = &pvcs[i]
    	}
    	return &persistentVolumeClaimNamespaceLister{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 20 10:14:08 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  7. cmd/kubeadm/test/resources/pods.go

    	staticpodutil "k8s.io/kubernetes/cmd/kubeadm/app/util/staticpod"
    )
    
    // FakeStaticPod represents a fake static pod
    type FakeStaticPod struct {
    	NodeName    string
    	Component   string
    	Annotations map[string]string
    }
    
    // Pod returns a pod structure representing the fake static pod with a
    // given suffix
    func (p *FakeStaticPod) Pod(suffix string) *v1.Pod {
    	pod := staticpodutil.ComponentPod(
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 17 14:40:46 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. pkg/volume/fc/fc_test.go

    		tmpDir: utiltesting.MkTmpdirOrDie("fc_test"),
    	}
    }
    
    func (fake *fakeDiskManager) Cleanup() {
    	os.RemoveAll(fake.tmpDir)
    }
    
    func (fake *fakeDiskManager) MakeGlobalPDName(disk fcDisk) string {
    	return fake.tmpDir
    }
    
    func (fake *fakeDiskManager) MakeGlobalVDPDName(disk fcDisk) string {
    	return fake.tmpDir
    }
    
    func (fake *fakeDiskManager) AttachDisk(b fcDiskMounter) (string, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 14.1K bytes
    - Viewed (0)
Back to top