- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for expectedEndpoints (0.85 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) -
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)