Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for expectedIds (0.19 sec)

  1. cmd/kubeadm/app/util/users/users_linux_test.go

    			}
    			if err != nil {
    				return
    			}
    			if len(tc.expectedIDs) != len(got) {
    				t.Fatalf("expected id %d, got %d", len(tc.expectedIDs), len(got))
    			}
    			for i := range got {
    				if !reflect.DeepEqual(tc.expectedIDs[i], got[i]) {
    					t.Fatalf("expected id at position %d: %+v, got: %+v", i, tc.expectedIDs[i], got[i])
    				}
    			}
    		})
    	}
    }
    
    func TestAddEntries(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 01 05:59:41 UTC 2022
    - 16.3K bytes
    - Viewed (0)
  2. pkg/registry/discovery/endpointslice/strategy_test.go

    			if !apiequality.Semantic.DeepEqual(tc.newEPS, tc.expectedEPS) {
    				t.Errorf("Expected %+v\nGot: %+v", tc.expectedEPS, tc.newEPS)
    			}
    		})
    	}
    }
    
    func Test_dropTopologyOnV1(t *testing.T) {
    	testcases := []struct {
    		name        string
    		v1Request   bool
    		newEPS      *discovery.EndpointSlice
    		originalEPS *discovery.EndpointSlice
    		expectedEPS *discovery.EndpointSlice
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.3K bytes
    - Viewed (0)
  3. pkg/controller/garbagecollector/dump_test.go

    			compareGraphs(test.expectNodes, actualNodes, test.expectEdges, actualEdges, t)
    		})
    	}
    }
    
    func TestToDOTGraphObj(t *testing.T) {
    	tests := []struct {
    		name        string
    		uidToNode   map[types.UID]*node
    		uids        []types.UID
    		expectNodes []*dotVertex
    		expectEdges []dotEdge
    	}{
    		{
    			name: "simple",
    			uidToNode: map[types.UID]*node{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 14 00:05:53 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  4. cmd/object-api-putobject_test.go

    			expectedError: hash.BadDigest{ExpectedMD5: invalidMD5, CalculatedMD5: getMD5Hash(nilBytes)},
    		},
    		25: {
    			bucketName: bucket, objName: object, inputData: fiveMBBytes, inputMeta: invalidMD5Header, inputDataSize: int64(len(fiveMBBytes)), expectedMd5: getMD5Hash(fiveMBBytes),
    			expectedError: hash.BadDigest{ExpectedMD5: invalidMD5, CalculatedMD5: getMD5Hash(fiveMBBytes)},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  5. plugin/pkg/auth/authorizer/node/graph_test.go

    			// (the slices we get back are from map iteration, where order is not guaranteed)
    			expectEdges := c.expect.graph.Edges()
    			sort.Slice(expectEdges, func(i, j int) bool {
    				if expectEdges[i].From().ID() == expectEdges[j].From().ID() {
    					return expectEdges[i].To().ID() < expectEdges[j].To().ID()
    				}
    				return expectEdges[i].From().ID() < expectEdges[j].From().ID()
    			})
    			startEdges := c.start.graph.Edges()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 23 23:14:19 UTC 2022
    - 12.3K bytes
    - Viewed (0)
  6. pkg/registry/core/service/ipallocator/controller/repairip_test.go

    }
    
    func TestRepairServiceIP(t *testing.T) {
    	tests := []struct {
    		name        string
    		svcs        []*v1.Service
    		ipAddresses []*networkingv1alpha1.IPAddress
    		cidrs       []*networkingv1alpha1.ServiceCIDR
    		expectedIPs []string
    		actions     [][]string // verb and resource
    		events      []string
    	}{
    		{
    			name: "no changes needed single stack",
    			svcs: []*v1.Service{newService("test-svc", []string{"10.0.1.1"})},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  7. pkg/apis/policy/v1/zz_generated.conversion.go

    	out.DisruptionsAllowed = in.DisruptionsAllowed
    	out.CurrentHealthy = in.CurrentHealthy
    	out.DesiredHealthy = in.DesiredHealthy
    	out.ExpectedPods = in.ExpectedPods
    	out.Conditions = *(*[]metav1.Condition)(unsafe.Pointer(&in.Conditions))
    	return nil
    }
    
    // Convert_v1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus is an autogenerated conversion function.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 22:32:27 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook_v1beta1_test.go

    				t.Errorf("Plugin returned incorrect user. Got %#v, expected %#v",
    					resp.User, tt.expectedUser)
    			}
    			if resp != nil && tt.expectedAuds != nil && !reflect.DeepEqual(resp.Audiences, tt.expectedAuds) {
    				t.Errorf("Plugin returned incorrect audiences. Got %#v, expected %#v",
    					resp.Audiences, tt.expectedAuds)
    			}
    		})
    	}
    }
    
    type authenticationV1beta1UserInfo authenticationv1beta1.UserInfo
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 00:47:42 UTC 2022
    - 19.2K bytes
    - Viewed (0)
  9. pkg/volume/git_repo/git_repo_test.go

    	}
    
    	if fake.CommandCalls != len(expecteds) {
    		allErrs = append(allErrs,
    			fmt.Errorf("unexpected command calls in scenario: expected %d, saw: %d", len(expecteds), fake.CommandCalls))
    	}
    	var expectedCmds [][]string
    	for _, expected := range expecteds {
    		expectedCmds = append(expectedCmds, expected.cmd)
    	}
    	if !reflect.DeepEqual(expectedCmds, fcmd.CombinedOutputLog) {
    		allErrs = append(allErrs,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 08:26:26 UTC 2024
    - 12K bytes
    - Viewed (0)
  10. pkg/apis/policy/v1beta1/zz_generated.conversion.go

    	out.DisruptedPods = *(*map[string]v1.Time)(unsafe.Pointer(&in.DisruptedPods))
    	out.DisruptionsAllowed = in.DisruptionsAllowed
    	out.CurrentHealthy = in.CurrentHealthy
    	out.DesiredHealthy = in.DesiredHealthy
    	out.ExpectedPods = in.ExpectedPods
    	out.Conditions = *(*[]v1.Condition)(unsafe.Pointer(&in.Conditions))
    	return nil
    }
    
    // Convert_v1beta1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus is an autogenerated conversion function.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 12.3K bytes
    - Viewed (0)
Back to top