Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 164 for expectedCert (0.16 sec)

  1. pkg/credentialprovider/plugin/plugin_test.go

    			}
    
    			data, err := e.encodeRequest(testcase.request)
    			if err != nil && !testcase.expectedErr {
    				t.Fatalf("unexpected error: %v", err)
    			}
    
    			if err == nil && testcase.expectedErr {
    				t.Fatalf("expected error %v but got nil", testcase.expectedErr)
    			}
    
    			if !reflect.DeepEqual(data, testcase.expectedData) {
    				t.Errorf("actual encoded data: %v", string(data))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 09 06:11:06 UTC 2022
    - 26.5K bytes
    - Viewed (0)
  2. 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)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce_test.go

    		if !reflect.DeepEqual(tc.expectedObject, obj) {
    			t.Errorf("expected: %v, got: %v", tc.expectedObject, obj)
    		}
    		if (err == nil && tc.expectedErr != "") || err != nil && (err.Error() != tc.expectedErr) {
    			t.Errorf("expected: %v, got: %v", tc.expectedErr, err)
    		}
    		if !reflect.DeepEqual(tc.expectedUnknownPaths, unknownPaths) {
    			t.Errorf("expected: %v, got: %v", tc.expectedUnknownPaths, unknownPaths)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  4. cmd/streaming-signature-v4_test.go

    		},
    	}
    	// Valid test cases for each chunk line.
    	for i, tt := range testCases {
    		chunkSize, chunkSignature, err := readChunkLine(tt.reader)
    		if err != tt.expectedErr {
    			t.Errorf("Test %d: Expected %s, got %s", i+1, tt.expectedErr, err)
    		}
    		if !bytes.Equal(chunkSize, tt.chunkSize) {
    			t.Errorf("Test %d: Expected %s, got %s", i+1, string(tt.chunkSize), string(chunkSize))
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  5. 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)
  6. pkg/apis/core/pods/helpers_test.go

    		label         string
    		value         string
    		expectedErr   bool
    		expectedLabel string
    		expectedValue string
    	}{
    		{
    			version:     "v2",
    			label:       "metadata.name",
    			value:       "test-pod",
    			expectedErr: true,
    		},
    		{
    			version:     "v1",
    			label:       "invalid-label",
    			value:       "value",
    			expectedErr: true,
    		},
    		{
    			version:       "v1",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 01:35:30 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  7. pkg/util/procfs/procfs_linux_test.go

    	name, err := containerNameFromProcCgroup(procCgroupText)
    	if expectedErr && err == nil {
    		t.Errorf("Expected error but did not get error in verifyContainerName")
    		return
    	} else if !expectedErr && err != nil {
    		t.Errorf("Expected no error, but got error %+v in verifyContainerName", err)
    		return
    	} else if expectedErr {
    		return
    	}
    	if name != expectedName {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 20 07:13:28 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top