- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for expectMetrics (0.24 sec)
-
pkg/registry/core/service/portallocator/allocator_test.go
allocated: 2, errors: 0, } expectMetrics(t, em) // try to allocate the same ports for s := range found { if !a.Has(s) { t.Fatalf("missing: %d", s) } if err := a.Allocate(s); err != ErrAllocated { t.Fatal(err) } } em = testMetrics{ free: 2768 - 2, used: 2, allocated: 2, errors: 2, } expectMetrics(t, em) // release the ports allocated
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 08 07:15:02 UTC 2024 - 14K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/bitmap_test.go
} // Check initial state em := testMetrics{ free: 0, used: 0, allocated: 0, errors: 0, } expectMetrics(t, cidrIPv4, em) em = testMetrics{ free: 0, used: 0, allocated: 0, errors: 0, } expectMetrics(t, cidrIPv6, em) // allocate 2 IPv4 addresses found := sets.NewString() for i := 0; i < 2; i++ { ip, err := a.AllocateNext()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 25 20:32:40 UTC 2023 - 21.1K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/ipallocator_test.go
// Check initial state em := testMetrics{ free: 0, used: 0, allocated: 0, errors: 0, } expectMetrics(t, cidrIPv4, em) em = testMetrics{ free: 0, used: 0, allocated: 0, errors: 0, } expectMetrics(t, cidrIPv6, em) // allocate 2 IPv4 addresses found := sets.NewString() for i := 0; i < 2; i++ { ip, err := a.AllocateNext()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jun 25 13:14:46 UTC 2023 - 24.2K bytes - Viewed (0) -
pkg/controller/nodeipam/ipam/cidrset/cidr_set_test.go
releases: 0, allocTries: 0, max: float64(max), } expectMetrics(t, cidr, em) } // Release all a.Release(clusterCIDR) em = testMetrics{ usage: 0, allocs: 256, releases: 256, allocTries: 0, max: float64(max), } expectMetrics(t, cidr, em) // Allocate all a.Occupy(clusterCIDR) em = testMetrics{ usage: 1,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 11 08:53:03 UTC 2023 - 29.5K bytes - Viewed (0) -
pkg/controller/volume/ephemeral/controller_test.go
if err != nil { t.Fatalf("unexpected error while listing PVCs: %v", err) } assert.Equal(t, sortPVCs(tc.expectedPVCs), sortPVCs(pvcs.Items)) expectMetrics(t, tc.expectedMetrics) }) } } func makePVC(name, namespace string, owner *metav1.OwnerReference) *v1.PersistentVolumeClaim { pvc := &v1.PersistentVolumeClaim{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 8.5K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/controller/repair_test.go
} em := testMetrics{ leak: 1, repair: 0, outOfRange: 0, duplicate: 0, unknown: 0, invalid: 0, full: 0, } expectMetrics(t, em) } func TestRepairWithExisting(t *testing.T) { clearMetrics() _, cidr, _ := netutils.ParseCIDRSloppy("192.168.1.0/24") previous, err := ipallocator.NewInMemory(cidr) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Sep 30 15:46:06 UTC 2023 - 21.1K bytes - Viewed (0) -
pkg/registry/core/service/portallocator/controller/repair_test.go
t.Errorf("expected portallocator to not have leaked port") } em := testMetrics{ leak: 1, repair: 0, outOfRange: 0, duplicate: 0, unknown: 0, } expectMetrics(t, em) } func TestRepairWithExisting(t *testing.T) { clearMetrics() pr, _ := net.ParsePortRange("100-200") previous, err := portallocator.NewInMemory(*pr) if err != nil { t.Fatal(err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Sep 30 15:46:06 UTC 2023 - 10.6K bytes - Viewed (0) -
pkg/controller/resourceclaim/controller_test.go
if err != nil { t.Fatalf("unexpected error while listing claims: %v", err) } assert.Equal(t, normalizeScheduling(tc.expectedPodSchedulingContexts), normalizeScheduling(scheduling.Items)) expectMetrics(t, tc.expectedMetrics) }) } } func makeClaim(name, namespace, classname string, owner *metav1.OwnerReference) *resourcev1alpha2.ResourceClaim { claim := &resourcev1alpha2.ResourceClaim{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 06 08:56:16 UTC 2024 - 28.2K bytes - Viewed (0) -
pkg/kubelet/kubelet_pods_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 00:05:23 UTC 2024 - 198.8K bytes - Viewed (0) -
pkg/controller/endpointslicemirroring/reconciler_test.go
t.Fatalf("Expected %d additional client actions, got %d: %#v", tc.expectedClientActions, numExtraActions, client.Actions()[numInitialActions:]) } if tc.expectedMetrics != nil { expectMetrics(t, *tc.expectedMetrics) } endpointSlices := fetchEndpointSlices(t, client, namespace) expectEndpointSlices(t, tc.expectedNumSlices, int(maxEndpointsPerSubset), endpoints, endpointSlices) }) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 06:51:56 UTC 2024 - 42.7K bytes - Viewed (0)