Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 180 for _Equal (0.25 sec)

  1. pkg/apis/flowcontrol/validation/validation_test.go

    	}, {
    		name: "bad catch-all flow-schema should fail",
    		flowSchema: &flowcontrol.FlowSchema{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: flowcontrol.FlowSchemaNameCatchAll,
    			},
    			Spec: badCatchAll,
    		},
    		expectedErrors: field.ErrorList{field.Invalid(field.NewPath("spec"), badCatchAll, "spec of 'catch-all' must equal the fixed value")},
    	}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 54.7K bytes
    - Viewed (0)
  2. pilot/pkg/model/telemetry_logging_test.go

    			expected:     "[%START_TIME%] %REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%\n",
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			got := fileAccessLogFormat(tc.formatString)
    			assert.Equal(t, tc.expected, got)
    		})
    	}
    }
    
    func TestAccessLogging(t *testing.T) {
    	labels := map[string]string{"app": "test"}
    	sidecar := &Proxy{
    		ConfigNamespace: "default",
    		Labels:          labels,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 54K bytes
    - Viewed (0)
  3. pkg/apis/autoscaling/validation/validation_test.go

    			ObjectMeta: metav1.ObjectMeta{
    				Name:      "frontend",
    				Namespace: metav1.NamespaceDefault,
    			},
    			Spec: autoscaling.ScaleSpec{
    				Replicas: -1,
    			},
    		},
    		msg: "must be greater than or equal to 0",
    	}}
    
    	for _, c := range errorCases {
    		if errs := ValidateScale(&c.scale); len(errs) == 0 {
    			t.Errorf("expected failure for %s", c.msg)
    		} else if !strings.Contains(errs[0].Error(), c.msg) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 56.7K bytes
    - Viewed (0)
  4. pkg/kubelet/nodestatus/setters_test.go

    			assert.True(t, apiequality.Semantic.DeepEqual(tc.expectNode, tc.node),
    				"Diff: %s", cmp.Diff(tc.expectNode, tc.node))
    			// check expected events
    			require.Equal(t, len(tc.expectEvents), len(events))
    			for i := range tc.expectEvents {
    				assert.Equal(t, tc.expectEvents[i], events[i])
    			}
    		})
    	}
    
    }
    
    func TestVersionInfo(t *testing.T) {
    	cases := []struct {
    		desc                string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    		createExternalNameService(controller, "svc5", "nsA",
    			[]int32{1, 2, 3}, "foo.co", t, fx)
    
    		converted := controller.Services()
    		assert.Equal(t, len(converted), 1)
    
    		eps := GetEndpointsForPort(converted[0], controller.Endpoints, 1)
    		assert.Equal(t, len(eps), 0)
    		assert.Equal(t, converted[0].Attributes, model.ServiceAttributes{
    			ServiceRegistry:          "Kubernetes",
    			Name:                     "svc5",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 85K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Iterators.java

          }
        }
        return result;
      }
    
      /**
       * Determines whether two iterators contain equal elements in the same order. More specifically,
       * this method returns {@code true} if {@code iterator1} and {@code iterator2} contain the same
       * number of elements and every element of {@code iterator1} is equal to the corresponding element
       * of {@code iterator2}.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 14:46:32 UTC 2024
    - 50.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Iterators.java

          }
        }
        return result;
      }
    
      /**
       * Determines whether two iterators contain equal elements in the same order. More specifically,
       * this method returns {@code true} if {@code iterator1} and {@code iterator2} contain the same
       * number of elements and every element of {@code iterator1} is equal to the corresponding element
       * of {@code iterator2}.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 14:46:32 UTC 2024
    - 50.2K bytes
    - Viewed (0)
  8. pkg/apis/batch/validation/validation.go

    			}
    			if spec.Completions != nil && spec.MaxFailedIndexes != nil && *spec.MaxFailedIndexes > *spec.Completions {
    				allErrs = append(allErrs, field.Invalid(fldPath.Child("maxFailedIndexes"), *spec.MaxFailedIndexes, "must be less than or equal to completions"))
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 16:43:24 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go

    			}),
    			expectCost: map[string]int64{
    				"self.objs[0] == self.objs[1]":                7,  // equal even though order is different
    				"self.objs[0] + self.objs[2] == self.objs[2]": 11, // rhs overwrites lhs values
    				"self.objs[2] + self.objs[0] == self.objs[0]": 11,
    
    				"self.objs[0] == [self.objs[0][0], self.objs[0][1]]": 22, // equal against a declared list
    				"self.objs[0] == [self.objs[0][1], self.objs[0][0]]": 22,
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:20:16 UTC 2024
    - 80.2K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/memorymanager/memory_manager_test.go

    					},
    				},
    			},
    			expectedReserved: nil,
    			expectedError:    fmt.Errorf("the total amount \"1Gi\" of type \"memory\" is not equal to the value \"0\" determined by Node Allocatable feature"),
    			machineInfo:      machineInfo,
    		},
    		{
    			description:                "Reserved should be equal to systemReservedMemory",
    			nodeAllocatableReservation: v1.ResourceList{v1.ResourceMemory: *resource.NewQuantity(2*gb, resource.BinarySI)},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 05 13:01:40 UTC 2023
    - 70.2K bytes
    - Viewed (0)
Back to top