Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for expectList (0.19 sec)

  1. pkg/controller/job/job_controller_test.go

    			}
    			if len(gotList) != len(tc.expectList) {
    				t.Errorf("got a list of length %d, want %d", len(gotList), len(tc.expectList))
    			}
    			if diff := cmp.Diff(tc.expectList, gotList, cmpopts.IgnoreFields(batch.JobCondition{}, "LastProbeTime", "LastTransitionTime")); diff != "" {
    				t.Errorf("Unexpected JobCondition list: (-want,+got):\n%s", diff)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go

    		obj        map[string]interface{}
    		expectCost map[string]int64
    	}{
    		{name: "integers",
    			// 1st obj and schema args are for "self.val1" field, 2nd for "self.val2" and so on.
    			obj:    objs(math.MaxInt64, math.MaxInt64, math.MaxInt32, math.MaxInt32, math.MaxInt64, math.MaxInt64),
    			schema: schemas(integerType, integerType, int32Type, int32Type, int64Type, int64Type),
    			expectCost: map[string]int64{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:20:16 UTC 2024
    - 80.2K bytes
    - Viewed (0)
  3. operator/pkg/translate/translate_test.go

    `
    	cases := []struct {
    		name        string
    		iopString   string
    		expectValue string
    		expectExist bool
    	}{
    		{
    			name:        "without appProtocol",
    			iopString:   iopString,
    			expectExist: false,
    		},
    		{
    			name:        "with appProtocol",
    			iopString:   iopString2,
    			expectExist: true,
    			expectValue: "HTTP",
    		},
    	}
    
    	for _, tt := range cases {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 19:43:09 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

          int defaultPort,
          @Nullable String expectHost,
          int expectPort,
          boolean expectHasExplicitPort) {
        HostAndPort hp;
        try {
          hp = HostAndPort.fromString(hpString);
        } catch (IllegalArgumentException e) {
          // Make sure we expected this.
          assertNull(expectHost);
          return;
        }
        assertNotNull(expectHost);
    
        // Apply withDefaultPort(), yielding hp2.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 17 11:19:47 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  5. pilot/pkg/leaderelection/leaderelection_test.go

    		completions.Add(1)
    	})
    	// Expect to run once
    	expectInt(t, completions.Load, 1)
    
    	// drop RBAC permissions to update the configmap
    	// This simulates loosing an active lease
    	allowRbac.Store(false)
    
    	// We should start a new cycle at this point
    	expectInt(t, l.cycle.Load, 2)
    
    	// Add configmap permission back
    	allowRbac.Store(true)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/resource/helper_test.go

    			if err != nil {
    				return
    			}
    			if tt.Req != nil && !tt.Req(client.Req) {
    				t.Errorf("unexpected request: %#v", client.Req)
    			}
    		})
    	}
    }
    
    func TestHelperCreate(t *testing.T) {
    	expectPost := func(req *http.Request) bool {
    		if req.Method != "POST" {
    			t.Errorf("unexpected method: %#v", req)
    			return false
    		}
    		parts := splitPath(req.URL.Path)
    		if parts[1] != "bar" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  7. hack/lib/test.sh

      local expectLists
      IFS="," read -r -a expectLists <<< "${resource},${additionalResources}"
    
      # shellcheck disable=SC2086
      # Disabling to allow for expansion here
      defaultResult=$(kubectl describe ${resource} --show-events=true -v=6 ${args} "${kube_flags[@]}" 2>&1 >/dev/null)
      for r in "${expectLists[@]}"; do
        if grep -q "${r}?.*limit=500" <<< "${defaultResult}"; then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 16:46:34 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  8. src/net/http/serve_test.go

    	// Normal 100-continues, case-insensitive.
    	expectTest(100, "100-continue", true, "100 Continue"),
    	expectTest(100, "100-cOntInUE", true, "100 Continue"),
    
    	// No 100-continue.
    	expectTest(100, "", true, "200 OK"),
    
    	// 100-continue but requesting client to deny us,
    	// so it never reads the body.
    	expectTest(100, "100-continue", false, "401 Unauthorized"),
    	// Likewise without 100-continue:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top