- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for expectMetrics (0.41 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/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/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) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/authentication_test.go
} }) } } func TestAuthenticateMetrics(t *testing.T) { testcases := []struct { name string header bool apiAuds []string respAuds []string expectMetric bool expectOk bool expectError bool }{ { name: "no api audience and no audience in response", header: true, apiAuds: nil, respAuds: nil,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 20.5K bytes - Viewed (0)