Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 85 for expectedIds (0.4 sec)

  1. pilot/pkg/serviceregistry/kube/controller/network_test.go

    		setGws(c.NetworkGateways())
    		notifyCh <- struct{}{}
    	})
    	expectGateways := func(t *testing.T, expectedGws int) {
    		// wait for a notification
    		assert.ChannelHasItem(t, notifyCh)
    		if n := len(getGws()); n != expectedGws {
    			t.Errorf("expected %d gateways but got %d", expectedGws, n)
    		}
    	}
    
    	t.Run("add meshnetworks", func(t *testing.T) {
    		addMeshNetworksFromRegistryGateway(t, c, meshNetworks)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Apr 18 19:09:43 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/configuration/ExecuteUserLifecycleListenerBuildOperationIntegrationTest.groovy

        }
    
        private static void verifyExpectedOps(List<BuildOperationRecord> ops, List<ExpectedOperation> expectedOps) {
            assert ops.size() == expectedOps.size()
            // no guarantees about listener execution order
            assert ops.find { op ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  3. pkg/controlplane/reconcilers/lease.go

    		}
    	}
    
    	ipsCorrect = true
    	if len(sub.Addresses) != len(expectedIPs) {
    		ipsCorrect = false
    	} else {
    		// check the actual content of the addresses
    		// present addrs is used as a set (the keys) and to indicate if a
    		// value was already found (the values)
    		presentAddrs := make(map[string]bool, len(expectedIPs))
    		for _, ip := range expectedIPs {
    			presentAddrs[ip] = false
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/volumebinding/assume_cache_test.go

    )
    
    func verifyListPVs(t *testing.T, cache *PVAssumeCache, expectedPVs map[string]*v1.PersistentVolume, storageClassName string) {
    	pvList := cache.ListPVs(storageClassName)
    	if len(pvList) != len(expectedPVs) {
    		t.Errorf("ListPVs() returned %v PVs, expected %v", len(pvList), len(expectedPVs))
    	}
    	for _, pv := range pvList {
    		expectedPV, ok := expectedPVs[pv.Name]
    		if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/filters/audit_test.go

    					t.Errorf("Unexpected AuditID in audit event, AuditID should be the same with Audit-ID http header")
    				}
    				if expectedID == types.UID("") {
    					expectedID = event.AuditID
    				} else if expectedID != event.AuditID {
    					t.Errorf("Audits for one request should share the same AuditID, %s differs from %s", expectedID, event.AuditID)
    				}
    				if event.ObjectRef.APIVersion != "v1" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 22.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/policy/v1/types.go

    	DesiredHealthy int32 `json:"desiredHealthy" protobuf:"varint,5,opt,name=desiredHealthy"`
    
    	// total number of pods counted by this disruption budget
    	ExpectedPods int32 `json:"expectedPods" protobuf:"varint,6,opt,name=expectedPods"`
    
    	// Conditions contain conditions for PDB. The disruption controller sets the
    	// DisruptionAllowed condition. The following are known values for the reason field
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 23 17:42:49 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. pkg/controller/replicaset/replica_set_test.go

    				// all of them have been observed.
    				expectedPods = replicas - activePods
    				if expectedPods > int32(burstReplicas) {
    					expectedPods = int32(burstReplicas)
    				}
    				// This validates the ReplicaSet manager sync actually created pods
    				err := validateSyncReplicaSet(&fakePodControl, int(expectedPods), 0, 0)
    				if err != nil {
    					t.Fatal(err)
    				}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
  8. internal/hash/reader.go

    	MD5, err := hex.DecodeString(md5Hex)
    	if err != nil {
    		return nil, BadDigest{ // TODO(aead): Return an error that indicates that an invalid ETag has been specified
    			ExpectedMD5:   md5Hex,
    			CalculatedMD5: "",
    		}
    	}
    	SHA256, err := hex.DecodeString(sha256Hex)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/serviceimportcache_test.go

    func (ic *serviceImportCacheImpl) checkServiceInstances(t *testing.T) {
    	t.Helper()
    
    	si := ic.getServiceImport(t)
    
    	var expectedIPs []string
    	expectedServiceCount := 1
    	expectMCSService := false
    	if si != nil && si.Spec.Type == mcsapi.ClusterSetIP && len(si.Spec.IPs) > 0 {
    		expectedIPs = si.Spec.IPs
    		expectedServiceCount = 2
    		expectMCSService = true
    	}
    
    	instances := ic.getProxyServiceTargets()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 14 18:50:38 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    			}
    			if diff := cmp.Diff(test.want, res); diff != "" {
    				t.Errorf("Unexpected status (-want, +got):\n%s", diff)
    			}
    			if len(deletedPodNames) != len(test.expectedPods) {
    				t.Errorf("expected %v pods, got %v.", len(test.expectedPods), len(deletedPodNames))
    			}
    			if diff := cmp.Diff(sets.List(patchedPodNames), sets.List(deletedPodNames)); diff != "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
Back to top