Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for expectedEndpoints (0.25 sec)

  1. pkg/controller/endpointslicemirroring/reconciler_helpers_test.go

    		}
    
    		for j, expectedEndpoint := range expectedSlice.Endpoints {
    			actualEndpoint := actual[i].Endpoints[j]
    			if len(expectedEndpoint.Addresses) != len(actualEndpoint.Addresses) {
    				t.Fatalf("Expected Endpoint to have %d addresses, got %d", len(expectedEndpoint.Addresses), len(actualEndpoint.Addresses))
    			}
    
    			for k, expectedAddress := range expectedEndpoint.Addresses {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 06 23:58:47 UTC 2021
    - 7K bytes
    - Viewed (0)
  2. 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)
  3. pkg/controller/endpointslicemirroring/utils_test.go

    		NodeName: pointer.String("node-abc"),
    		TargetRef: &v1.ObjectReference{
    			APIVersion: "v1",
    			Kind:       "Pod",
    			Namespace:  "default",
    			Name:       "foo",
    		},
    	}
    	ready := true
    	expectedEndpoint := discovery.Endpoint{
    		Addresses: []string{"10.1.2.3"},
    		Hostname:  pointer.String("foo"),
    		Conditions: discovery.EndpointConditions{
    			Ready: pointer.BoolPtr(true),
    		},
    		TargetRef: &v1.ObjectReference{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 23 15:40:23 UTC 2022
    - 7.5K bytes
    - Viewed (0)
Back to top