Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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)
  3. 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)
  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. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. android/guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java

         * --- fail(). (If the test were to pass, its output would be hidden.)
         * - Run the test.
         * - Pull the relevant lines of output from the test into a testcases file.
         * - Test the output:
         * --- cat testcases | while read L; do
         *       X=($L)
         *       A=$( cd /b/c && sudo mkdir -p ${X[0]} && cd ${X[0]} && pwd |
         *           sed -e 's#^//*#/#' )
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 11K bytes
    - Viewed (0)
Back to top