- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for expectedEndpoints (0.37 sec)
-
cmd/kubeadm/app/util/etcd/etcd_test.go
func TestGetEtcdEndpointsWithBackoff(t *testing.T) { tests := []struct { name string pods []testresources.FakeStaticPod expectedEndpoints []string expectedErr bool }{ { name: "no pod annotations", expectedEndpoints: []string{}, expectedErr: true, }, { name: "ipv4 endpoint in pod annotation; port is preserved",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 14 13:07:56 UTC 2024 - 20.3K bytes - Viewed (0) -
pkg/controlplane/reconcilers/endpointsadapter_test.go
testCases := map[string]struct { expectedError error expectedEndpoints *corev1.Endpoints initialState []runtime.Object namespaceParam string nameParam string }{ "single-existing-endpoints": { expectedError: nil, expectedEndpoints: endpoints1, initialState: []runtime.Object{endpoints1, epSlice1}, namespaceParam: "testing",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 12:23:16 UTC 2024 - 15.4K bytes - Viewed (0) -
cmd/endpoint_test.go
} if err == nil { if (test.expectedEndpoint.URL == nil) != (endpoint.URL == nil) { t.Errorf("endpoint url: expected = %#v, got = %#v", test.expectedEndpoint.URL, endpoint.URL) return } else if test.expectedEndpoint.URL.String() != endpoint.URL.String() { t.Errorf("endpoint url: expected = %#v, got = %#v", test.expectedEndpoint.URL.String(), endpoint.URL.String()) return }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Jan 13 07:53:03 UTC 2024 - 18.9K bytes - Viewed (0) -
pkg/controller/endpointslicemirroring/reconciler_test.go
if expectedEndpoint.epAddress.Hostname != "" { t.Errorf("Expected hostname to be %s, got nil", expectedEndpoint.epAddress.Hostname) } } else if expectedEndpoint.epAddress.Hostname != *endpoint.Hostname { t.Errorf("Expected hostname to be %s, got %s", expectedEndpoint.epAddress.Hostname, *endpoint.Hostname) } if expectedEndpoint.epAddress.NodeName != nil { if endpoint.NodeName == nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 42.7K bytes - Viewed (0) -
pkg/controller/endpointslice/endpointslice_controller_test.go
testcases := []struct { name string service *v1.Service pods []*v1.Pod expectedEndpointPorts []discovery.EndpointPort expectedEndpoints []discovery.Endpoint }{ { name: "pods with multiple IPs and Service with ipFamilies=ipv4", service: &v1.Service{ ObjectMeta: metav1.ObjectMeta{ Name: "foobar",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 08:33:32 UTC 2024 - 65.5K bytes - Viewed (0) -
pkg/proxy/iptables/proxier_test.go
}), ) fp.syncProxyRules() expectedEndpoints := 2 * (largeClusterEndpointsThreshold/2 - 1) firstEndpoint, numEndpoints, numComments := countEndpointsAndComments(fp.iptablesData.String(), "10.0.0.0") assert.Equal(t, "-A KUBE-SEP-DKGQUZGBKLTPAR56 -m comment --comment ns1/svc1:p80 -m tcp -p tcp -j DNAT --to-destination 10.0.0.0:80", firstEndpoint) if numEndpoints != expectedEndpoints {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 14:39:54 UTC 2024 - 249.9K bytes - Viewed (0) -
pilot/pkg/serviceregistry/serviceregistry_test.go
makeIstioObject(t, s.Store(), workloadEntry) expectEndpoints(t, s, "outbound|80||service.namespace.svc.cluster.local", []string{"2.3.4.5:80"}, nil) newSvc := service.DeepCopy() newSvc.Spec.Ports[0].Port = 8080 makeService(t, s.KubeClient().Kube(), newSvc) expectEndpoints(t, s, "outbound|80||service.namespace.svc.cluster.local", nil, nil)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 51.2K bytes - Viewed (0) -
cmd/kubeadm/app/util/config/cluster_test.go
return } else if err == nil && rt.expectedErr { t.Error("got no error; was expecting an error") return } if rt.expectedEndpoint != nil && !reflect.DeepEqual(apiEndpoint, *rt.expectedEndpoint) { t.Errorf("expected API endpoint: %v; got %v", rt.expectedEndpoint, apiEndpoint) } }) } } func TestGetInitConfigurationFromCluster(t *testing.T) { tmpdir, err := os.MkdirTemp("", "")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 14 13:07:56 UTC 2024 - 26.7K bytes - Viewed (0)