Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 483 for testCases (2.52 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. pkg/auth/authorizer/abac/abac_test.go

    	uAlice := user.DefaultInfo{Name: "alice", UID: "uid3", Groups: authenticatedGroup}
    	uChuck := user.DefaultInfo{Name: "chuck", UID: "uid5", Groups: authenticatedGroup}
    
    	testCases := []struct {
    		User           user.DefaultInfo
    		Verb           string
    		Resource       string
    		NS             string
    		APIGroup       string
    		Path           string
    		ExpectDecision authorizer.Decision
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 40K bytes
    - Viewed (0)
  8. cmd/kubeadm/app/cmd/phases/workflow/runner_test.go

    	var usecases = []struct {
    		name      string
    		runner    Runner
    		testCases map[string]argTest
    		cmd       *cobra.Command
    	}{
    		{
    			name: "leaf command, no defined args, follow parent",
    			runner: Runner{
    				Phases: []Phase{phaseBuilder("foo")},
    			},
    			testCases: map[string]argTest{
    				"phase foo": {
    					pass: []string{"one", "two", "three"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 20 20:03:45 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  9. 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)
  10. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper_test.go

    			shouldError:            false,
    		},
    	}
    
    	for k, testCase := range testCases {
    		t.Run(k, func(t *testing.T) {
    			server := testCase.serverFunc(serverHandler(
    				t, serverHandlerConfig{
    					shouldError:      testCase.shouldError,
    					statusCode:       testCase.serverStatusCode,
    					connectionHeader: testCase.serverConnectionHeader,
    					upgradeHeader:    testCase.serverUpgradeHeader,
    				},
    			))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 32.7K bytes
    - Viewed (0)
Back to top