Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 104 for expectedCert (0.17 sec)

  1. pkg/kubelet/lifecycle/handlers_test.go

    	if err == nil {
    		t.Errorf("expect error, but got nil")
    	}
    }
    
    func TestRunHandlerExecFailure(t *testing.T) {
    	ctx := context.Background()
    	expectedErr := fmt.Errorf("invalid command")
    	fakeCommandRunner := fakeContainerCommandRunner{Err: expectedErr, Msg: expectedErr.Error()}
    	handlerRunner := NewHandlerRunner(&fakeHTTP{}, &fakeCommandRunner, nil, nil)
    
    	containerID := kubecontainer.ContainerID{Type: "test", ID: "abc1234"}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/util/staticpod/utils_test.go

    			expectedPort:     1234,
    			expectedScheme:   v1.URISchemeHTTPS,
    		},
    		{
    			name: "etcd probe localhost IPv6 URL with HTTP scheme",
    			cfg: &kubeadmapi.Etcd{
    				Local: &kubeadmapi.LocalEtcd{
    					ExtraArgs: []kubeadmapi.Arg{
    						{Name: "listen-metrics-urls", Value: "http://[::1]:1234"},
    					},
    				},
    			},
    			isIPv6:           true,
    			expectedHostname: "::1",
    			expectedPort:     1234,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 12 15:44:44 UTC 2023
    - 22.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/response_test.go

    		expectedUnwrap bool
    		expectedObj    runtime.Object
    		expectedErr    error
    	}{
    		{
    			desc:        "metav1.Status",
    			object:      status,
    			expectedObj: status,
    			expectedErr: nil,
    		},
    		{
    			desc:        "cacheableObject nil convert",
    			object:      &mockCacheableObject{obj: pod},
    			target:      nil,
    			expectedObj: pod,
    			expectedErr: nil,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 09:07:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/nodeunschedulable/node_unschedulable_test.go

    		name           string
    		pod            *v1.Pod
    		oldObj, newObj interface{}
    		expectedHint   framework.QueueingHint
    		expectedErr    bool
    	}{
    		{
    			name:         "backoff-wrong-new-object",
    			pod:          &v1.Pod{},
    			newObj:       "not-a-node",
    			expectedHint: framework.Queue,
    			expectedErr:  true,
    		},
    		{
    			name: "backoff-wrong-old-object",
    			pod:  &v1.Pod{},
    			newObj: &v1.Node{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 16 12:50:11 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/upgrade/common_test.go

    		name               string
    		newK8sVersion      string
    		dryRun             bool
    		flags              applyPlanFlags
    		expectedErr        string
    		expectedErrNonRoot string
    	}{
    		{
    			name: "Fail pre-flight check",
    			flags: applyPlanFlags{
    				kubeConfigPath: fullPath,
    			},
    			expectedErr:        "ERROR CoreDNSUnsupportedPlugins",
    			expectedErrNonRoot: "user is not running as", // user is not running as (root || administrator)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. internal/auth/credentials_test.go

    		if err != nil {
    			if testCase.expectedErr == nil {
    				t.Fatalf("test %v: error: expected = <nil>, got = %v", i+1, err)
    			}
    			if testCase.expectedErr.Error() != err.Error() {
    				t.Fatalf("test %v: error: expected = %v, got = %v", i+1, testCase.expectedErr, err)
    			}
    		} else {
    			if testCase.expectedErr != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Mar 01 21:09:42 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. security/pkg/pki/util/generate_cert_test.go

    			rootFile:         "../testdata/notexistcert.pem",
    			expectedErr:      "",
    			expectedRootCert: []byte{},
    		},
    	}
    
    	for id, tc := range testCases {
    		rc, err := AppendRootCerts(tc.pemCert, tc.rootFile)
    		if len(tc.expectedErr) > 0 {
    			if err == nil {
    				t.Errorf("[%s] Succeeded. Error expected: %s", id, tc.expectedErr)
    			} else if err.Error() != tc.expectedErr {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 06 12:48:53 UTC 2023
    - 29.4K bytes
    - Viewed (0)
  8. 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)
  9. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/OutputScrapingExecutionResult.java

            String expectedText = LogContent.of(expectedOutput).withNormalizedEol();
            if (getOutput().contains(expectedText)|| getError().contains(expectedText)) {
                failureOnUnexpectedOutput(String.format("Found unexpected text in build output.%nExpected not present: %s%n", expectedText));
            }
            return this;
        }
    
        private static class LineWithDistance {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 19K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher_test.go

    		setupFn         func(opts *setupOptions)
    		requestOpts     storage.ListOptions
    		enableWatchList bool
    		expectedErr     error
    	}{
    		{
    			name:        "no newFunc provided",
    			setupFn:     func(opts *setupOptions) { opts.newFunc = nil },
    			requestOpts: storage.ListOptions{ProgressNotify: true},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 12.3K bytes
    - Viewed (1)
Back to top