- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 41 for expectError (0.27 sec)
-
staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook_v1_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 18 00:47:42 UTC 2022 - 19.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook_v1beta1_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 18 00:47:42 UTC 2022 - 19.2K bytes - Viewed (0) -
cmd/kubeadm/app/cmd/join_test.go
testCases := []struct { name string args []string flags map[string]string validate func(*testing.T, *joinData) expectError bool expectWarn bool }{ // Join data passed using flags { name: "fails if no discovery method set", expectError: true, }, { name: "fails if both file and bootstrap discovery methods set", args: []string{"1.2.3.4:6443"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 19 12:26:20 UTC 2024 - 12.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/fieldselector_test.go
list, err := shirtClient.List(ctx, metav1.ListOptions{FieldSelector: tc.fieldSelector}) if len(tc.expectError) > 0 { if err == nil { t.Fatal("Expected error but got none") } if tc.expectError != err.Error() { t.Errorf("Expected error '%s' but got '%s'", tc.expectError, err.Error()) } return } if err != nil { t.Fatal(err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 06 15:53:03 UTC 2024 - 27K bytes - Viewed (0) -
pkg/kubelet/volumemanager/volume_manager_test.go
tests := []struct { name string pvMode, podMode v1.PersistentVolumeMode expectMount bool expectError bool }{ { name: "filesystem volume", pvMode: v1.PersistentVolumeFilesystem, podMode: v1.PersistentVolumeFilesystem, expectMount: true, expectError: false, }, { name: "block volume", pvMode: v1.PersistentVolumeBlock,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 14.1K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/validation/objectmeta_test.go
ownerReferences []metav1.OwnerReference expectError bool expectedErrorMessage string }{ { description: "simple success - third party extension.", ownerReferences: []metav1.OwnerReference{ { APIVersion: "customresourceVersion", Kind: "customresourceKind", Name: "name", UID: "1", }, }, expectError: false, expectedErrorMessage: "",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 07 03:12:31 UTC 2022 - 17.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/authentication_test.go
header bool apiAuds []string respAuds []string expectMetric bool expectOk bool expectError bool }{ { name: "no api audience and no audience in response", header: true, apiAuds: nil, respAuds: nil, expectOk: true, expectError: false, }, { name: "api audience matching response audience", header: true,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 20.5K bytes - Viewed (0) -
pkg/volume/util/operationexecutor/operation_generator_test.go
} ogInstance, _ := og.(*operationGenerator) _, err := ogInstance.nodeExpandVolume(vmt, nil, pluginResizeOpts) if !test.expectError && err != nil { t.Errorf("For test %s, expected no error got: %v", test.name, err) } if test.expectError && err == nil { t.Errorf("For test %s, expected error but got none", test.name) } if test.resizeCallCount != fakePlugin.NodeExpandCallCount {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 16.2K bytes - Viewed (0) -
security/pkg/nodeagent/caclient/providers/citadel/client_test.go
} func TestCitadelClientRotation(t *testing.T) { checkSign := func(t *testing.T, cli security.Client, expectError bool) { t.Helper() resp, err := cli.CSRSign([]byte{0o1}, 1) if expectError != (err != nil) { t.Fatalf("expected error:%v, got error:%v", expectError, err) } if !expectError && !reflect.DeepEqual(resp, fakeCert) { t.Fatalf("expected cert: %v", resp) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 24 21:03:23 UTC 2024 - 11.8K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/helpers_test.go
}, { name: "invalid localhost", podProfile: &v1.AppArmorProfile{ Type: v1.AppArmorProfileTypeLocalhost, }, expectError: true, }, { name: "invalid type", podProfile: &v1.AppArmorProfile{ Type: "foo", }, expectError: true, }} for _, test := range tests { t.Run(test.name, func(t *testing.T) { pod := v1.Pod{ ObjectMeta: metav1.ObjectMeta{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 11.7K bytes - Viewed (0)