Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 466 for testCases (0.67 sec)

  1. security/pkg/server/ca/server_test.go

    					t.Errorf("Case %s: expecting cert to be (%s) but got (%s) at position [%d] of cert chain.",
    						id, mockCertChain, v, i)
    				}
    			}
    		}
    	}
    }
    
    func TestCreateCertificate(t *testing.T) {
    	testCases := map[string]struct {
    		authenticators []security.Authenticator
    		ca             CertificateAuthority
    		certChain      []string
    		code           codes.Code
    	}{
    		"No authenticator": {
    			authenticators: nil,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  2. cluster/gce/gci/audit_policy_test.go

    			resources = append(resources, v)
    		default:
    			t.Fatalf("Invalid test argument: %+v", arg)
    		}
    	}
    	require.NotEmpty(t, verbs, "testcases must have a verb")
    	require.NotEmpty(t, users, "testcases must have a user")
    	require.NotEmpty(t, resources, "resource testcases must have a resource")
    
    	for _, usr := range users {
    		for _, verb := range verbs {
    			for _, res := range resources {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 30 06:23:50 UTC 2021
    - 9.8K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/podtopologyspread/plugin_test.go

    	"k8s.io/kubernetes/pkg/scheduler/internal/cache"
    	st "k8s.io/kubernetes/pkg/scheduler/testing"
    )
    
    func Test_isSchedulableAfterNodeChange(t *testing.T) {
    	testcases := []struct {
    		name             string
    		pod              *v1.Pod
    		oldNode, newNode *v1.Node
    		expectedHint     framework.QueueingHint
    		expectedErr      bool
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 17 06:30:53 UTC 2023
    - 13K bytes
    - Viewed (0)
  4. pilot/pkg/security/authz/builder/builder_test.go

    						Port:          999999,
    						PathPrefix:    "check",
    						StatusOnError: "999",
    					},
    				},
    			},
    		},
    	}
    )
    
    func TestGenerator_GenerateHTTP(t *testing.T) {
    	testCases := []struct {
    		name       string
    		tdBundle   trustdomain.Bundle
    		meshConfig *meshconfig.MeshConfig
    		version    *model.IstioVersion
    		input      string
    		want       []string
    	}{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_block_test.go

    }
    
    func TestBlockMapperGetGlobalMapPath(t *testing.T) {
    	plug, tmpDir := newTestPlugin(t, nil)
    	defer os.RemoveAll(tmpDir)
    
    	// TODO (vladimirvivien) specName with slashes will not work
    	testCases := []struct {
    		name           string
    		specVolumeName string
    		path           string
    	}{
    		{
    			name:           "simple specName",
    			specVolumeName: "spec-0",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  6. pkg/registry/core/pod/storage/storage_test.go

    		}
    
    		binding := validNewBinding()
    		binding.UID = testCase.podUIDGetter(podCreated.(*api.Pod))
    		binding.ResourceVersion = testCase.podResourceVersionGetter(podCreated.(*api.Pod))
    
    		if _, err := bindingStorage.Create(ctx, binding.Name, binding, rest.ValidateAllObjectFunc, &metav1.CreateOptions{}); !testCase.errOK(err) {
    			t.Errorf("%s: unexpected error: %v", k, err)
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 07:18:44 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/options/server_run_options_test.go

    			},
    		},
    	}
    
    	for _, testcase := range testCases {
    		t.Run(testcase.name, func(t *testing.T) {
    			errs := testcase.testOptions.Validate()
    			if len(testcase.expectErr) != 0 && !strings.Contains(utilerrors.NewAggregate(errs).Error(), testcase.expectErr) {
    				t.Errorf("got err: %v, expected err: %s", errs, testcase.expectErr)
    			}
    
    			if len(testcase.expectErr) == 0 && len(errs) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 15:49:49 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  8. pkg/proxy/endpointslicecache_test.go

    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/utils/ptr"
    )
    
    func TestEndpointsMapFromESC(t *testing.T) {
    	testCases := map[string]struct {
    		endpointSlices []*discovery.EndpointSlice
    		hostname       string
    		namespacedName types.NamespacedName
    		expectedMap    map[ServicePortName][]*BaseEndpointInfo
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:07:21 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  9. cmd/admin-handlers_test.go

    		t.Errorf("Expected %s, got %s", globalMinioDefaultRegion, results.Region)
    	}
    }
    
    // TestToAdminAPIErrCode - test for toAdminAPIErrCode helper function.
    func TestToAdminAPIErrCode(t *testing.T) {
    	testCases := []struct {
    		err            error
    		expectedAPIErr APIErrorCode
    	}{
    		// 1. Server not in quorum.
    		{
    			err:            errErasureWriteQuorum,
    			expectedAPIErr: ErrAdminConfigNoQuorum,
    		},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  10. cmd/object-api-putobject_test.go

    		},
    	}
    	for i, testCase := range testCases {
    		in := mustGetPutObjReader(t, bytes.NewReader(testCase.inputData), testCase.inputDataSize, testCase.inputMeta["etag"], testCase.inputSHA256)
    		objInfo, actualErr := obj.PutObject(context.Background(), testCase.bucketName, testCase.objName, in, ObjectOptions{UserDefined: testCase.inputMeta})
    		if actualErr != nil && testCase.expectedError == nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top