Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 1,123 for testCases (0.23 sec)

  1. pkg/kubelet/cm/containermap/container_map_test.go

    )
    
    func TestContainerMap(t *testing.T) {
    	testCases := []struct {
    		podUID         string
    		containerNames []string
    		containerIDs   []string
    	}{
    		{
    			"fakePodUID",
    			[]string{"fakeContainerName-1", "fakeContainerName-2"},
    			[]string{"fakeContainerID-1", "fakeContainerName-2"},
    		},
    	}
    
    	for _, tc := range testCases {
    		// Build a new containerMap from the testCases, checking proper
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 02 13:40:55 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. pkg/volume/csimigration/plugin_manager_test.go

    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    	csitrans "k8s.io/csi-translation-lib"
    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/kubernetes/pkg/volume"
    )
    
    func TestIsMigratable(t *testing.T) {
    	testCases := []struct {
    		name                 string
    		pluginFeature        featuregate.Feature
    		pluginFeatureEnabled bool
    		csiMigrationEnabled  bool
    		isMigratable         bool
    		spec                 *volume.Spec
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. pilot/pkg/xds/bench_test.go

    	testBenchmark(t, v3.RouteType, testCases)
    }
    
    func BenchmarkClusterGeneration(b *testing.B) {
    	runBenchmark(b, v3.ClusterType, testCases)
    }
    
    func TestClusterGeneration(t *testing.T) {
    	testBenchmark(t, v3.ClusterType, testCases)
    }
    
    func BenchmarkListenerGeneration(b *testing.B) {
    	runBenchmark(b, v3.ListenerType, testCases)
    }
    
    func TestListenerGeneration(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 22 18:13:40 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    			expectedErr: "",
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			// only the KMSv2 feature flag is enabled
    			_, 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))
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/upgrade/diff_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	//nolint:errcheck
    	defer os.Remove(kubeConfigPath)
    
    	flags := &diffFlags{
    		cfgPath: "",
    		out:     io.Discard,
    	}
    
    	testCases := []struct {
    		name            string
    		args            []string
    		setManifestPath bool
    		manifestPath    string
    		cfgPath         string
    		expectedError   bool
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 04:08:57 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. pkg/apis/core/pods/helpers_test.go

    */
    
    package pods
    
    import (
    	"reflect"
    	"testing"
    
    	"k8s.io/apimachinery/pkg/util/validation/field"
    	api "k8s.io/kubernetes/pkg/apis/core"
    )
    
    func TestVisitContainersWithPath(t *testing.T) {
    	testCases := []struct {
    		description string
    		path        *field.Path
    		haveSpec    *api.PodSpec
    		wantNames   []string
    	}{
    		{
    			"empty podspec",
    			field.NewPath("spec"),
    			&api.PodSpec{},
    			[]string{},
    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. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf_test.go

    	}
    	return []schema.GroupVersionKind{*t.gvk}, false, t.err
    }
    
    func (t *mockTyper) Recognizes(_ schema.GroupVersionKind) bool {
    	return false
    }
    
    func TestSerializerEncodeWithAllocator(t *testing.T) {
    	testCases := []struct {
    		name string
    		obj  runtime.Object
    	}{
    		{
    			name: "encode a bufferedMarshaller obj",
    			obj: &testapigroupv1.Carp{
    				TypeMeta: metav1.TypeMeta{APIVersion: "group/version", Kind: "Carp"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 03:17:50 UTC 2022
    - 5K bytes
    - Viewed (0)
  8. pkg/volume/csi/csi_client_test.go

    	capabilityMethodToTest func(*csiDriverClient) (bool, error),
    	nodeClientGenerator func(bool) *fake.NodeClient) {
    
    	testCases := []struct {
    		name    string
    		capable bool
    	}{
    		{name: "positive", capable: true},
    		{name: "negative", capable: false},
    	}
    
    	for _, tc := range testCases {
    		t.Logf("Running test case: %s", tc.name)
    		fakeCloser := fake.NewCloser(t)
    		client := &csiDriverClient{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  9. cmd/object-handlers-common_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"testing"
    )
    
    // Tests - canonicalizeETag()
    func TestCanonicalizeETag(t *testing.T) {
    	testCases := []struct {
    		etag              string
    		canonicalizedETag string
    	}{
    		{
    			etag:              "\"\"\"",
    			canonicalizedETag: "",
    		},
    		{
    			etag:              "\"\"\"abc\"",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/filters/authorization_test.go

    	auditinternal "k8s.io/apiserver/pkg/apis/audit"
    	"k8s.io/apiserver/pkg/audit"
    	"k8s.io/apiserver/pkg/authorization/authorizer"
    )
    
    func TestGetAuthorizerAttributes(t *testing.T) {
    	testcases := map[string]struct {
    		Verb               string
    		Path               string
    		ExpectedAttributes *authorizer.AttributesRecord
    	}{
    		"non-resource root": {
    			Verb: "POST",
    			Path: "/",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 5K bytes
    - Viewed (0)
Back to top