- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for expectedEndpoints (0.2 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) -
android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java
} @Test public void incidentEdges_oneEdge() { putEdge(N1, N2); EndpointPair<Integer> expectedEndpoints = EndpointPair.unordered(N1, N2); assertThat(graph.incidentEdges(N1)).containsExactly(expectedEndpoints); assertThat(graph.incidentEdges(N2)).containsExactly(expectedEndpoints); } @Test public void inDegree_oneEdge() { putEdge(N1, N2);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 12.9K 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) -
cmd/kubeadm/app/apis/kubeadm/apiendpoint_test.go
package kubeadm import ( "reflect" "testing" ) func TestAPIEndpointFromString(t *testing.T) { var tests = []struct { apiEndpoint string expectedEndpoint APIEndpoint expectedErr bool }{ {apiEndpoint: "1.2.3.4:1234", expectedEndpoint: APIEndpoint{AdvertiseAddress: "1.2.3.4", BindPort: 1234}}, {apiEndpoint: "1.2.3.4:-1", expectedErr: true}, {apiEndpoint: "1.2.::1234", expectedErr: true},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jul 28 10:23:44 UTC 2022 - 2.4K bytes - Viewed (0) -
cmd/kubeadm/app/util/endpoint_test.go
}, expectedEndpoint: "https://[2001:db8::1]:4567", }, { name: "use AdvertiseAddress (ipv4) + BindPort if ControlPlaneEndpoint is not defined", cfg: &kubeadmapi.InitConfiguration{ LocalAPIEndpoint: kubeadmapi.APIEndpoint{ BindPort: 4567, AdvertiseAddress: "4.5.6.7", }, }, expectedEndpoint: "https://4.5.6.7:4567", }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Feb 23 03:19:26 UTC 2019 - 10K 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)