Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for fakeVM (0.14 sec)

  1. pkg/controller/endpointslice/endpointslice_controller_test.go

    	nodeStore          cache.Store
    	podStore           cache.Store
    	serviceStore       cache.Store
    }
    
    func newController(t *testing.T, nodeNames []string, batchPeriod time.Duration) (*fake.Clientset, *endpointSliceController) {
    	client := fake.NewSimpleClientset()
    
    	informerFactory := informers.NewSharedInformerFactory(client, controller.NoResyncPeriodFunc())
    	nodeInformer := informerFactory.Core().V1().Nodes()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_attacher_test.go

    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/apimachinery/pkg/watch"
    	clientset "k8s.io/client-go/kubernetes"
    	fakeclient "k8s.io/client-go/kubernetes/fake"
    	core "k8s.io/client-go/testing"
    	"k8s.io/kubernetes/pkg/volume"
    	fakecsi "k8s.io/kubernetes/pkg/volume/csi/fake"
    	volumetypes "k8s.io/kubernetes/pkg/volume/util/types"
    )
    
    const (
    	testWatchTimeout     = 10 * time.Second
    	testWatchFailTimeout = 2 * time.Second
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

            array_ops_stack.stack([weight_row, weight_row])
        )
        # Insert fake quant to simulate a QAT model.
        weight = array_ops.fake_quant_with_min_max_args(
            weight, min=-0.1, max=0.2, num_bits=8, narrow_range=False
        )
    
        # shape: (2, 2)
        output_tensor = math_ops.matmul(matmul_input, weight)
        # Insert fake quant to simulate a QAT model.
        output_tensor = array_ops.fake_quant_with_min_max_args(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    	policy "k8s.io/api/policy/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/client-go/informers"
    	clientsetfake "k8s.io/client-go/kubernetes/fake"
    	clienttesting "k8s.io/client-go/testing"
    	"k8s.io/client-go/tools/events"
    	"k8s.io/klog/v2/ktesting"
    	kubeschedulerconfigv1 "k8s.io/kube-scheduler/config/v1"
    	extenderv1 "k8s.io/kube-scheduler/extender/v1"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  5. pkg/controller/endpoint/endpoints_controller_test.go

    		informerFactory.Core().V1().Endpoints().Informer().GetStore(),
    	}
    }
    
    func newFakeController(ctx context.Context, batchPeriod time.Duration) (*fake.Clientset, *endpointController) {
    	client := fake.NewSimpleClientset()
    	informerFactory := informers.NewSharedInformerFactory(client, controllerpkg.NoResyncPeriodFunc())
    
    	eController := NewEndpointController(
    		ctx,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 87.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/queueset_test.go

    	expectAllRequests                        bool
    	evalInqueueMetrics, evalExecutingMetrics bool
    	rejectReason                             string
    	clk                                      *testeventclock.Fake
    	counter                                  counter.GoRoutineCounter
    	expectedAverages                         []float64
    	expectedEpochAdvances                    int
    	seatDemandIntegratorSubject              fq.Integrator
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 26 12:55:23 UTC 2023
    - 58.4K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/kuberuntime_manager_test.go

    	}
    	fakes := makeFakeContainers(t, m, templates)
    	fakeRuntime.SetFakeContainers(fakes)
    	podStatus, err := m.GetPodStatus(ctx, pod.UID, pod.Name, pod.Namespace)
    	assert.NoError(t, err)
    
    	m.pruneInitContainersBeforeStart(ctx, pod, podStatus)
    	expectedContainers := sets.New[string](fakes[0].Id, fakes[2].Id)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 96K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    		Spec: corev1.ServiceSpec{
    			Ports: []corev1.ServicePort{
    				{
    					Port:     80,
    					Name:     "http-example",
    					Protocol: corev1.ProtocolTCP, // Not added automatically by fake
    				},
    			},
    		},
    	})
    	log.Infof("Created service %s", n)
    	cl.opts.XDSUpdater.(*xdsfake.Updater).WaitOrFail(t, "service")
    }
    
    func TestController_GetPodLocality(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 85K bytes
    - Viewed (0)
  9. tests/integration/security/authz_test.go

    							body := "handled-by-egress-gateway"
    							if !c.allow {
    								wantCode = http.StatusForbidden
    								body = "RBAC: access denied"
    							}
    
    							opts := echo.CallOptions{
    								// Use a fake IP address to bypass DNS lookup (which will fail). The host
    								// header will be used for routing decisions.
    								Address: "10.4.4.4",
    								Port: echo.Port{
    									Name:        ports.HTTP.Name,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  10. pkg/kubelet/server/server_test.go

    	}
    
    	// Test with correct hostname, Docker version
    	assertHealthIsOk(t, fw.testHTTPServer.URL+"/healthz")
    
    	// Test with incorrect hostname
    	fw.fakeKubelet.hostnameFunc = func() string {
    		return "fake"
    	}
    	assertHealthIsOk(t, fw.testHTTPServer.URL+"/healthz")
    }
    
    func assertHealthFails(t *testing.T, httpURL string, expectedErrorCode int) {
    	resp, err := http.Get(httpURL)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
Back to top