- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 466 for testCases (0.26 sec)
-
cmd/kube-proxy/app/server_linux_test.go
proxyutil "k8s.io/kubernetes/pkg/proxy/util" "k8s.io/kubernetes/test/utils/ktesting" netutils "k8s.io/utils/net" "k8s.io/utils/ptr" ) func Test_platformApplyDefaults(t *testing.T) { testCases := []struct { name string mode proxyconfigapi.ProxyMode expectedMode proxyconfigapi.ProxyMode detectLocal proxyconfigapi.LocalMode
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Apr 28 15:51:23 UTC 2024 - 21.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go
decodeIntoObject: &testapigroupv1.Carp{}, // which client-go's scheme doesn't recognize baseErr: nil, }, } for _, testCase := range testCases { err := transformDecodeError(testCase.typer, testCase.baseErr, testCase.decodeIntoObject, testCase.decodedGVK, []byte(``)) if apiStatus, ok := err.(apierrors.APIStatus); !ok || apiStatus.Status().Code != http.StatusBadRequest {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 41.8K bytes - Viewed (0) -
pkg/registry/core/service/strategy_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 32.4K bytes - Viewed (0) -
internal/bucket/replication/replication_test.go
} for _, testCase := range testCases { testCase := testCase t.Run(testCase.opts.Name, func(t *testing.T) { result := testCase.c.Replicate(testCase.opts) if result != testCase.expectedResult { t.Errorf("expected: %v, got: %v", testCase.expectedResult, result) } }) } } func TestHasActiveRules(t *testing.T) { testCases := []struct { inputConfig string
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Mar 28 17:44:56 UTC 2024 - 32.5K bytes - Viewed (0) -
pkg/kubeapiserver/options/authentication_test.go
}, } for _, testcase := range testCases { t.Run(testcase.name, func(t *testing.T) { options := NewBuiltInAuthenticationOptions() options.OIDC = testcase.testOIDC options.ServiceAccounts = testcase.testSA options.WebHook = testcase.testWebHook options.AuthenticationConfigFile = testcase.testAuthenticationConfigFile for _, f := range testcase.enabledFeatures {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 36.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/webhook_converter_test.go
v3Object := &unstructured.Unstructured{Object: map[string]interface{}{"apiVersion": "foo/v3", "kind": "Widget", "metadata": map[string]interface{}{"name": "myv3"}}} testcases := []struct { Name string Object runtime.Object APIVersion string ExpectObjects []runtime.RawExtension }{ { Name: "empty list",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 13 15:27:39 UTC 2023 - 19.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/egressselector/config_test.go
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apiserver/pkg/apis/apiserver" ) func strptr(s string) *string { return &s } func TestReadEgressSelectorConfiguration(t *testing.T) { testcases := []struct { name string contents string createFile bool expectedResult *apiserver.EgressSelectorConfiguration expectedError *string }{ { name: "empty",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 05 02:24:38 UTC 2023 - 15.1K bytes - Viewed (0) -
pkg/credentialprovider/config_test.go
} if string(tt.expect) != string(actual) { t.Errorf("case %d: expected %v, got %v", i, string(tt.expect), string(actual)) } } } func TestReadDockerConfigFileFromBytes(t *testing.T) { testCases := []struct { id string input []byte expectedCfg DockerConfig errorExpected bool expectedErrorMsg string }{ { id: "valid input, no error expected",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 19 15:11:57 UTC 2023 - 10.7K bytes - Viewed (0) -
cmd/kubeadm/app/util/kubeconfig/kubeconfig_test.go
}, } for _, rt := range testCases { t.Run(rt.name, func(t *testing.T) { r := getCurrentAuthInfo(rt.config) if rt.expected != (r != nil) { t.Errorf( "failed TestHasCredentials:\n\texpected: %v\n\t actual: %v", rt.expected, r, ) } }) } } func TestHasCredentials(t *testing.T) { var testCases = []struct { name string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Aug 18 06:49:59 UTC 2023 - 13.3K bytes - Viewed (0) -
pkg/quota/v1/evaluator/core/pods_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 41.6K bytes - Viewed (0)