Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for expectedEndpoints (0.18 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
Back to top