Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for testPass (0.43 sec)

  1. pkg/kubelet/eviction/helpers_test.go

    		},
    	}
    	for testName, testCase := range testCases {
    		thresholds, err := ParseThresholdConfig(testCase.allocatableConfig, testCase.evictionHard, testCase.evictionSoft, testCase.evictionSoftGracePeriod, testCase.evictionMinReclaim)
    		if testCase.expectErr != (err != nil) {
    			t.Errorf("Err not as expected, test: %v, error expected: %v, actual: %v", testName, testCase.expectErr, err)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/memorymanager/policy_static_test.go

    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.description, func(t *testing.T) {
    			t.Logf("TestStaticPolicyAllocate %s", testCase.description)
    			p, s, err := initTests(t, &testCase, testCase.topologyHint, nil)
    			if err != nil {
    				t.Fatalf("Unexpected error: %v", err)
    			}
    
    			err = p.Allocate(s, testCase.pod, &testCase.pod.Spec.Containers[0])
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 17 05:49:15 UTC 2023
    - 100.4K bytes
    - Viewed (0)
  3. cmd/object-handlers_test.go

    				getPutObjectURL("", testCase.bucketName, testCase.objectName),
    				int64(testCase.dataLen), testCase.chunkSize, bytes.NewReader(testCase.data),
    				testCase.accessKey, testCase.secretKey)
    		case testCase.contentEncoding == "":
    			req, err = newTestStreamingSignedRequest(http.MethodPut,
    				getPutObjectURL("", testCase.bucketName, testCase.objectName),
    				int64(testCase.dataLen), testCase.chunkSize, bytes.NewReader(testCase.data),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
  4. pkg/proxy/nftables/proxier_test.go

    				},
    			},
    		},
    	}
    
    	for _, testcase := range testcases {
    		t.Run(testcase.name, func(t *testing.T) {
    			nft, fp := NewFakeProxier(v1.IPv4Protocol)
    			fp.OnServiceSynced()
    			fp.OnEndpointSlicesSynced()
    
    			fp.OnServiceAdd(service)
    
    			fp.OnEndpointSliceAdd(testcase.endpointslice)
    			fp.syncProxyRules()
    			runPacketFlowTests(t, testcase.line, nft, testNodeIPs, testcase.flowTests)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 01:31:57 UTC 2024
    - 173.5K bytes
    - Viewed (0)
  5. pkg/controller/statefulset/stateful_set_control_test.go

    		{RecreatesPVCForPendingPod, simpleSetFn},
    	}
    
    	for _, testCase := range testCases {
    		fnName := runtime.FuncForPC(reflect.ValueOf(testCase.fn).Pointer()).Name()
    		if i := strings.LastIndex(fnName, "."); i != -1 {
    			fnName = fnName[i+1:]
    		}
    		testObj := testCase.obj
    		testFn := testCase.fn
    		runTestOverPVCRetentionPolicies(
    			t,
    			fmt.Sprintf("%s/Monotonic", fnName),
    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/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)
  7. 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)
  8. pkg/kubelet/kubelet_pods_test.go

    fe00::2	ip6-allrouters
    203.0.113.1	podFoo.domainFoo	podFoo
    fd00::6	podFoo.domainFoo	podFoo
    `,
    		},
    	}
    
    	for _, testCase := range testCases {
    		actualContent := managedHostsFileContent(testCase.hostIPs, testCase.hostName, testCase.hostDomainName, testCase.hostAliases)
    		assert.Equal(t, testCase.expectedContent, string(actualContent), "hosts file content not expected")
    	}
    }
    
    func TestRunInContainerNoSuchPod(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  9. pkg/proxy/ipvs/proxier_test.go

    				t.Errorf("Case [%d], unexpected add IPVS virtual server error: %v", i, err)
    			}
    		}
    		if err := proxier.syncService(testCases[i].svcName, testCases[i].newVirtualServer, testCases[i].bindAddr, testCases[i].alreadyBoundAddrs); err != nil {
    			t.Errorf("Case [%d], unexpected sync IPVS virtual server error: %v", i, err)
    		}
    		// check
    		list, err := proxier.ipvs.GetVirtualServers()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 01:31:57 UTC 2024
    - 186.8K bytes
    - Viewed (0)
  10. 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)
Back to top