- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 33 for expectedCert (0.18 sec)
-
security/pkg/k8s/chiron/utils_test.go
testCases := map[string]struct { certPath string shouldFail bool expectedCert []byte }{ "cert not exist": { certPath: "./invalid-path/invalid-file", shouldFail: true, }, "cert valid": { certPath: "./test-data/example-ca-cert.pem", shouldFail: false, expectedCert: []byte(exampleCACert), }, "cert invalid": {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 15 03:58:11 UTC 2024 - 13K bytes - Viewed (0) -
cmd/erasure-metadata_test.go
} // Test them. for _, testCase := range testCases { index, offset, err := fi.ObjectToPartOffset(context.Background(), testCase.offset) if err != testCase.expectedErr { t.Fatalf("%+v: expected = %s, got: %s", testCase, testCase.expectedErr, err) } if index != testCase.expectedIndex { t.Fatalf("%+v: index: expected = %d, got: %d", testCase, testCase.expectedIndex, index) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 17 20:57:37 UTC 2024 - 10.4K bytes - Viewed (0) -
security/pkg/util/jwtutil_test.go
expectedExp: time.Time{}, expectedErr: fmt.Errorf("failed to decode the JWT claims"), }, } for id, tc := range testCases { t.Run(id, func(t *testing.T) { exp, err := GetExp(tc.jwt) if err != nil && tc.expectedErr == nil || err == nil && tc.expectedErr != nil { t.Errorf("%s: Got error \"%v\", expected error \"%v\"", id, err, tc.expectedErr)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 31 16:07:11 UTC 2024 - 6K bytes - Viewed (0) -
cmd/kubeadm/app/constants/constants_test.go
svcSubnet: "fd03::/112,", expectedErr: true, }, } for _, rt := range tests { t.Run(rt.name, func(t *testing.T) { virtualIP, err := GetAPIServerVirtualIP(rt.svcSubnet) if (err != nil) != rt.expectedErr { t.Errorf("failed APIServerVirtualIP:\n\texpectedErr: %v, got: %v", rt.expectedErr, err) } else if !rt.expectedErr { if virtualIP.String() != rt.expectedIP { t.Errorf(
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 03:26:36 UTC 2024 - 10.7K bytes - Viewed (0) -
pkg/kubelet/util/queue/work_queue_test.go
} func compareResults(t *testing.T, expected, actual []types.UID) { expectedSet := sets.New[string]() for _, u := range expected { expectedSet.Insert(string(u)) } actualSet := sets.New[string]() for _, u := range actual { actualSet.Insert(string(u)) } if !expectedSet.Equal(actualSet) { t.Errorf("Expected %#v, got %#v", sets.List(expectedSet), sets.List(actualSet)) } } func TestGetWork(t *testing.T) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 2.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go
_, err := LoadEncryptionConfig(testContext(t), testCase.filePath, false, "") if len(testCase.expectedErr) > 0 && !strings.Contains(errString(err), testCase.expectedErr) { t.Fatalf("expected error %q, got %q", testCase.expectedErr, errString(err)) } if len(testCase.expectedErr) == 0 && err != nil { t.Fatalf("unexpected error %q", errString(err)) } }) } tts := []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 16:56:39 UTC 2024 - 72.3K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/schedulinggates/scheduling_gates_test.go
expectedHint framework.QueueingHint expectedErr bool }{ "backoff-wrong-old-object": { pod: &v1.Pod{}, oldObj: "not-a-pod", expectedHint: framework.Queue, expectedErr: true, }, "backoff-wrong-new-object": { pod: &v1.Pod{}, newObj: "not-a-pod", expectedHint: framework.Queue, expectedErr: true, }, "skip-queue-on-other-pod-updated": {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 3.7K bytes - Viewed (0) -
cmd/kubeadm/app/phases/upgrade/staticpods_test.go
skipKubeConfig string expectedErr bool manifestShouldChange bool }{ { description: "error-free case should succeed", waitErrsToReturn: map[string]error{ waitForHashes: nil, waitForHashChange: nil, waitForPodsWithLabel: nil, }, moveFileFunc: os.Rename, expectedErr: false, manifestShouldChange: true, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 07:10:31 UTC 2024 - 32K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/tainttoleration/taint_toleration_test.go
testcases := map[string]struct { pod *v1.Pod oldObj, newObj interface{} expectedHint framework.QueueingHint expectedErr bool }{ "backoff-wrong-new-object": { pod: &v1.Pod{}, newObj: "not-a-pod", expectedHint: framework.Queue, expectedErr: true, }, "backoff-wrong-old-object": { pod: &v1.Pod{}, oldObj: "not-a-pod",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 17.5K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_sandbox_linux_test.go
pod: newSupplementalGroupsPolicyPod(&supplementalGroupsPolicyUnSupported), expectedErr: true, expectedErrMsg: "unsupported supplementalGroupsPolicy: UnSupported", }, } for i, test := range tests { config, err := m.generatePodSandboxLinuxConfig(test.pod) if test.expectedErr { assert.NotEmptyf(t, err, "TestCase[%d]: %s", i, test.description)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 8K bytes - Viewed (0)