Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 915 for Tc (0.12 sec)

  1. tools/istio-iptables/pkg/config/validation_test.go

    		},
    		{
    			name:    "capture all but 1000 groups",
    			exclude: NOwnerGroups(1000), // we don't have to put a limit on the number of groups to exclude
    		},
    	}
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			err := ValidateOwnerGroups(tc.include, tc.exclude)
    			assert.NoError(t, err)
    		})
    	}
    }
    
    func TestValidateOwnerGroups_Invalid(t *testing.T) {
    	cases := []struct {
    		name    string
    		include string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 11 02:38:28 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. pkg/util/kernel/version_test.go

    			expected: nil,
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			kernelVersion, err := getVersion(tc.readFileFunc)
    
    			if tc.err != nil {
    				assert.Equal(t, tc.err.Error(), err.Error())
    				assert.Nil(t, kernelVersion)
    			} else {
    				assert.NoError(t, err)
    				assert.Equal(t, tc.expected.Major(), kernelVersion.Major())
    				assert.Equal(t, tc.expected.Minor(), kernelVersion.Minor())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 19:24:34 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/request/webhook_duration_test.go

    		}
    
    		if wd.ValidatingWebhookTracker.GetLatency() != tc.MaxDuration {
    			t.Errorf("expected validate duration: %q, but got: %q", tc.MaxDuration, wd.ValidatingWebhookTracker.GetLatency())
    		}
    
    		if wd.APFQueueWaitTracker.GetLatency() != tc.MaxDuration {
    			t.Errorf("expected priority & fairness duration: %q, but got: %q", tc.MaxDuration, wd.APFQueueWaitTracker.GetLatency())
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 09:15:20 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/validation/path/name_test.go

    		},
    	}
    
    	for k, tc := range testcases {
    		msgs := ValidatePathSegmentName(tc.Name, tc.Prefix)
    		if len(tc.ExpectedMsg) == 0 && len(msgs) > 0 {
    			t.Errorf("%s: expected no message, got %v", k, msgs)
    		}
    		if len(tc.ExpectedMsg) > 0 && len(msgs) == 0 {
    			t.Errorf("%s: expected error message, got none", k)
    		}
    		if len(tc.ExpectedMsg) > 0 && !strings.Contains(msgs[0], tc.ExpectedMsg) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 27 13:49:29 UTC 2017
    - 3.8K bytes
    - Viewed (0)
  5. src/regexp/all_test.go

    			t.Errorf("%q.ReplaceAllLiteralString(%q,%q) = %q; want %q",
    				tc.pattern, tc.input, tc.replacement, actual, tc.output)
    		}
    		// now try bytes
    		actual = string(re.ReplaceAllLiteral([]byte(tc.input), []byte(tc.replacement)))
    		if actual != tc.output {
    			t.Errorf("%q.ReplaceAllLiteral(%q,%q) = %q; want %q",
    				tc.pattern, tc.input, tc.replacement, actual, tc.output)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/api/meta/priority_test.go

    			result: mapping3,
    		},
    	}
    
    	for _, tc := range tcs {
    		actualResult, actualErr := tc.mapper.RESTMapping(tc.input)
    		if e, a := tc.result, actualResult; !reflect.DeepEqual(e, a) {
    			t.Errorf("%s: expected %v, got %v", tc.name, e, a)
    		}
    		switch {
    		case tc.err == nil && actualErr == nil:
    		case tc.err == nil:
    			t.Errorf("%s: unexpected error: %v", tc.name, actualErr)
    		case actualErr == nil:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 06 15:24:58 UTC 2018
    - 13.6K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/patches/patches_test.go

    				patches:    []string{`{"foo":"bar"}`, `{"foo":"baz"}`},
    			},
    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			ps, _ := createPatchSet(tc.targetName, tc.patchType, tc.data)
    			if !reflect.DeepEqual(ps, tc.expectedPatchSet) {
    				t.Fatalf("expected patch set:\n%+v\ngot:\n%+v\n", tc.expectedPatchSet, ps)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 09 14:24:11 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  8. pkg/apis/core/pods/helpers_test.go

    			expectedValue: "10.244.0.6",
    		},
    	}
    	for _, tc := range testCases {
    		label, value, err := ConvertDownwardAPIFieldLabel(tc.version, tc.label, tc.value)
    		if err != nil {
    			if tc.expectedErr {
    				continue
    			}
    			t.Errorf("ConvertDownwardAPIFieldLabel(%s, %s, %s) failed: %s",
    				tc.version, tc.label, tc.value, err)
    		}
    		if tc.expectedLabel != label || tc.expectedValue != value {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 01:35:30 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/cli-runtime/pkg/resource/fallback_query_param_verifier_test.go

    	for tn, tc := range tests {
    		t.Run(tn, func(t *testing.T) {
    			fakeOpenAPIClient.ForcedErr = tc.primaryError
    			primary := createFakeV3Verifier(tc.crds, root, tc.queryParam)
    			secondary := createFakeLegacyVerifier(tc.crds, &fakeSchema, tc.queryParam)
    			verifier := NewFallbackQueryParamVerifier(primary, secondary)
    			err := verifier.HasSupport(tc.gvk)
    			if tc.expectedSupports && err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 18:30:16 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  10. security/pkg/pki/util/keycertbundle_test.go

    		},
    	}
    	for id, tc := range testCases {
    		_, err := NewVerifiedKeyCertBundleFromFile(
    			tc.caCertFile, tc.caKeyFile, tc.certChainFile, tc.rootCertFile)
    		if err != nil {
    			if tc.expectedErr == "" {
    				t.Errorf("%s: Unexpected error: %v", id, err)
    			} else if !strings.HasPrefix(err.Error(), tc.expectedErr) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jan 21 06:07:50 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top