Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 33 for testCases (0.3 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch_test.go

    		for k, tc := range testcases {
    			patch, err := CreateTwoWayMergePatchUsingLookupPatchMeta([]byte(tc.Old), []byte(tc.New), schema)
    			if err != nil {
    				t.Errorf("using %s in testcase %s: unexpected error %v", getSchemaType(schema), k, err)
    				continue
    			}
    			if tc.ExpectedPatch != string(patch) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 16:45:45 UTC 2023
    - 130.4K bytes
    - Viewed (0)
  2. pkg/controller/job/job_controller_test.go

    	newPod.ResourceVersion = "2"
    
    	testCases := map[string]struct {
    		requeues    int
    		oldPodPhase v1.PodPhase
    		phase       v1.PodPhase
    		wantBackoff time.Duration
    	}{
    		"failure with pod updates batching": {
    			requeues:    0,
    			phase:       v1.PodFailed,
    			wantBackoff: syncJobBatchPeriod,
    		},
    	}
    
    	for name, tc := range testCases {
    		t.Run(name, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/cluster_test.go

    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			test.SetForTest(t, &features.VerifyCertAtClient, testCase.verifyCertAtClient)
    			selectTrafficPolicyComponents(testCase.policy)
    			if testCase.policy.Tls.CaCertificates != testCase.expectedCARootPath {
    				t.Errorf("%v got %v when expecting %v", testCase.name, testCase.policy.Tls.CaCertificates, testCase.expectedCARootPath)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  4. cmd/server_test.go

    		{serverType: "ErasureSet", signer: signerV4},
    	}
    	globalServerCtxt.StrictS3Compat = true
    	for i, testCase := range testCases {
    		t.Run(fmt.Sprintf("Test: %d, ServerType: %s", i+1, testCase.serverType), func(t *testing.T) {
    			runAllTests(testCase, &check{t, testCase.serverType})
    		})
    	}
    }
    
    // Setting up the test suite.
    // Starting the Test server with temporary backend.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  5. pkg/controller/statefulset/stateful_set_control_test.go

    		return statefulSet
    	}
    
    	testCases := []struct {
    		fn  func(*testing.T, *apps.StatefulSet, invariantFunc)
    		obj func() *apps.StatefulSet
    	}{
    		{CreatesPodsWithStartOrdinal, simpleSetFn},
    	}
    
    	for _, testCase := range testCases {
    		testObj := testCase.obj
    		testFn := testCase.fn
    
    		set := testObj()
    		testFn(t, set, emptyInvariants)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 19:01:47 UTC 2024
    - 108.7K bytes
    - Viewed (0)
  6. pkg/apis/batch/validation/validation_test.go

    	validPodTemplateSpec := getValidPodTemplateSpecForGenerated(getValidGeneratedSelector())
    	validPodTemplateSpec.Labels = map[string]string{}
    
    	type testCase struct {
    		old       *batch.CronJobSpec
    		new       *batch.CronJobSpec
    		expectErr bool
    	}
    
    	cases := map[string]testCase{
    		"no validation because timeZone is nil for old and new": {
    			old: &batch.CronJobSpec{
    				Schedule:          "0 * * * *",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 124.3K bytes
    - Viewed (0)
  7. tests/integration/pilot/common/routing.go

    func VMTestCases(vms echo.Instances) func(t TrafficContext) {
    	return func(t TrafficContext) {
    		if t.Settings().Skip(echo.VM) {
    			t.Skipf("VMs are disabled")
    		}
    		var testCases []vmCase
    
    		for _, vm := range vms {
    			testCases = append(testCases,
    				vmCase{
    					name: "dns: VM to k8s cluster IP service name.namespace host",
    					from: vm,
    					to:   t.Apps.A,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
  8. pkg/apis/apps/validation/validation_test.go

    			errs := ValidateStatefulSetUpdate(&testCase.update, &testCase.old, pod.GetValidationOptionsFromPodTemplate(&testCase.update.Spec.Template, &testCase.old.Spec.Template))
    			wantErrs := testCase.errs
    			if diff := cmp.Diff(wantErrs, errs, cmpOpts...); diff != "" {
    				t.Errorf("Unexpected validation errors (-want,+got):\n%s", diff)
    			}
    		})
    	}
    }
    
    func TestValidateControllerRevision(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 111.9K bytes
    - Viewed (0)
  9. pkg/registry/batch/job/strategy_test.go

    		},
    	}
    	validSpec := batch.JobSpec{
    		CompletionMode: completionModePtr(batch.NonIndexedCompletion),
    		Selector:       nil,
    		Template:       validPodTemplate,
    	}
    
    	testcases := map[string]struct {
    		job               *batch.Job
    		wantWarningsCount int32
    	}{
    		"happy path job": {
    			job: &batch.Job{
    				ObjectMeta: metav1.ObjectMeta{
    					Name:      "myjob2",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 101.5K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/gateway_test.go

    	"istio.io/istio/pkg/proto"
    	"istio.io/istio/pkg/slices"
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/util/sets"
    	"istio.io/istio/pkg/wellknown"
    )
    
    func TestBuildGatewayListenerTlsContext(t *testing.T) {
    	testCases := []struct {
    		name              string
    		server            *networking.Server
    		result            *auth.DownstreamTlsContext
    		transportProtocol istionetworking.TransportProtocol
    		mesh              *meshconfig.MeshConfig
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 144K bytes
    - Viewed (0)
Back to top