- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for wantConditions (0.58 sec)
-
pkg/util/pod/pod_test.go
description string conditions []v1.PodCondition condition v1.PodCondition wantConditions []v1.PodCondition }{ { description: "append", conditions: []v1.PodCondition{}, condition: v1.PodCondition{ Type: cType, Status: v1.ConditionTrue, }, wantConditions: []v1.PodCondition{ { Type: cType, Status: v1.ConditionTrue, }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 07 15:22:29 UTC 2022 - 4.5K bytes - Viewed (0) -
pkg/controller/disruption/disruption_test.go
}) } } func TestStalePodDisruption(t *testing.T) { now := time.Now() cases := map[string]struct { pod *v1.Pod timePassed time.Duration wantConditions []v1.PodCondition }{ "stale pod disruption": { pod: &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Name: "foo", Namespace: metav1.NamespaceDefault, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 50K bytes - Viewed (0) -
pkg/controller/job/job_controller_test.go
manager.syncJob(context.TODO(), testutil.GetKey(job, t)) if tc.wantConditions != nil { for _, wantCondition := range *tc.wantConditions { conditions := getConditionsByType(actual.Status.Conditions, wantCondition.Type) if len(conditions) != 1 { t.Fatalf("Expected a single completion condition. Got %#v for type: %q", conditions, wantCondition.Type) } condition := *conditions[0]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 15:36:36 UTC 2024 - 229.2K bytes - Viewed (0)