Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 483 for testCases (1.86 sec)

  1. tests/integration/pilot/gateway_test.go

    				from:  apps.D,
    				host:  "foo.example.com",
    			},
    			{
    				check: check.OK(),
    				from:  apps.B,
    				host:  "foo.example.com",
    			},
    		}
    		testCases = append(testCases, additionalTestCases...)
    	}
    	for _, tc := range testCases {
    		t.NewSubTest(fmt.Sprintf("gateway-connectivity-from-%s", tc.from[0].NamespacedName())).Run(func(t framework.TestContext) {
    			tc.from[0].CallOrFail(t, echo.CallOptions{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/peerproxy/peerproxy_handler_test.go

    type FakeSVMapData struct {
    	gvr      schema.GroupVersionResource
    	serverId string
    }
    
    type reconciler struct {
    	do       bool
    	publicIP string
    	serverId string
    }
    
    func TestPeerProxy(t *testing.T) {
    	testCases := []struct {
    		desc                 string
    		svdata               FakeSVMapData
    		informerFinishedSync bool
    		requestPath          string
    		peerproxiedHeader    string
    		expectedStatus       int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. src/image/jpeg/reader_test.go

    	}
    	prefix, suffix := b[:2816], b[2816:]
    
    	testCases := []string{
    		"PASS:",
    		"PASS:\x00",
    		"PASS:\x61",
    		"PASS:\x61\x62\x63\xff\x00\x64",
    		"PASS:\xff",
    		"PASS:\xff\x00",
    		"PASS:\xff\xff\xff\x00\xff\x00\x00\xff\xff\xff",
    
    		"FAIL:\xff\x03",
    		"FAIL:\xff\xd5",
    		"FAIL:\xff\xff\xd5",
    	}
    
    	for _, tc := range testCases {
    		want := tc[:5] == "PASS:"
    		infix := tc[5:]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 00:46:29 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  4. pkg/controller/cronjob/utils_test.go

    			input:    []*batchv1.Job{aSetLater, bSet},
    			expected: []*batchv1.Job{bSet, aSetLater},
    		},
    	}
    
    	for _, testCase := range testCases {
    		sort.Sort(byJobStartTime(testCase.input))
    		if !reflect.DeepEqual(testCase.input, testCase.expected) {
    			t.Errorf("case: '%s', jobs not sorted as expected", testCase.name)
    		}
    	}
    }
    
    func TestMostRecentScheduleTime(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 03:34:25 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/dynamicresources/structuredparameters_test.go

    	namedresourcesmodel "k8s.io/kubernetes/pkg/scheduler/framework/plugins/dynamicresources/structured/namedresources"
    	"k8s.io/kubernetes/test/utils/ktesting"
    	"k8s.io/utils/ptr"
    )
    
    func TestModel(t *testing.T) {
    	testcases := map[string]struct {
    		slices   resourceSliceLister
    		claims   assumeCacheLister
    		inFlight map[types.UID]resourceapi.ResourceClaimStatus
    
    		wantResources resources
    		wantErr       bool
    	}{
    		"empty": {},
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 09:27:01 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation_test.go

    		}
    	}
    }
    
    func TestValidateStructuralCompleteness(t *testing.T) {
    
    	type tct struct {
    		name    string
    		schema  Structural
    		options ValidationOptions
    		error   string
    	}
    
    	testCases := []tct{
    		{
    			name: "allowed properties valuevalidation, additional properties structure",
    			schema: Structural{
    				AdditionalProperties: &StructuralOrBool{
    					Structural: &Structural{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 18:20:00 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. src/testing/sub_test.go

    		done = 1
    	)
    	// After each of the calls are applied to the context, the
    	type call struct {
    		typ int // run or done
    		// result from applying the call
    		running int
    		waiting int
    		started bool
    	}
    	testCases := []struct {
    		max int
    		run []call
    	}{{
    		max: 1,
    		run: []call{
    			{typ: add1, running: 1, waiting: 0, started: true},
    			{typ: done, running: 0, waiting: 0, started: false},
    		},
    	}, {
    		max: 1,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 21:27:08 UTC 2023
    - 23.8K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/node_container_manager_linux_test.go

    		}
    	}
    }
    
    func TestNodeAllocatableForEnforcement(t *testing.T) {
    	memoryEvictionThreshold := resource.MustParse("100Mi")
    	testCases := []struct {
    		kubeReserved   v1.ResourceList
    		systemReserved v1.ResourceList
    		capacity       v1.ResourceList
    		expected       v1.ResourceList
    		hardThreshold  evictionapi.ThresholdValue
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 12.1K bytes
    - Viewed (0)
  9. pkg/volume/downwardapi/downwardapi_test.go

    			steps: []testStep{
    				verifyMode{stepName{"name_file_name"}, 0400},
    			},
    		},
    	}
    	for _, testCase := range testCases {
    		test := newDownwardAPITest(t, testCase.name, testCase.files, testCase.podLabels, testCase.podAnnotations, testCase.modes)
    		for _, step := range testCase.steps {
    			test.t.Logf("Test case: %q Step: %q", testCase.name, step.getName())
    			step.run(test)
    		}
    		test.tearDown()
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 04:48:49 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/inline/inlheur/funcprops_test.go

    // defeat the caching.
    func gatherPropsDumpForFile(t *testing.T, testcase string, td string) (string, error) {
    	t.Helper()
    	gopath := "testdata/props/" + testcase + ".go"
    	outpath := filepath.Join(td, testcase+".a")
    	salt := fmt.Sprintf(".p%dt%d", os.Getpid(), time.Now().UnixNano())
    	dumpfile := filepath.Join(td, testcase+salt+".dump.txt")
    	run := []string{testenv.GoToolPath(t), "build",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 15K bytes
    - Viewed (0)
Back to top