Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 483 for testCases (0.22 sec)

  1. pkg/kubeapiserver/options/authentication_test.go

    		},
    	}
    
    	for _, testcase := range testCases {
    		t.Run(testcase.name, func(t *testing.T) {
    			options := NewBuiltInAuthenticationOptions()
    			options.OIDC = testcase.testOIDC
    			options.ServiceAccounts = testcase.testSA
    			options.WebHook = testcase.testWebHook
    			options.AuthenticationConfigFile = testcase.testAuthenticationConfigFile
    			for _, f := range testcase.enabledFeatures {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 36.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/conversion/webhook_converter_test.go

    	v3Object := &unstructured.Unstructured{Object: map[string]interface{}{"apiVersion": "foo/v3", "kind": "Widget", "metadata": map[string]interface{}{"name": "myv3"}}}
    
    	testcases := []struct {
    		Name       string
    		Object     runtime.Object
    		APIVersion string
    
    		ExpectObjects []runtime.RawExtension
    	}{
    		{
    			Name:          "empty list",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 13 15:27:39 UTC 2023
    - 19.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/egressselector/config_test.go

    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apiserver/pkg/apis/apiserver"
    )
    
    func strptr(s string) *string {
    	return &s
    }
    
    func TestReadEgressSelectorConfiguration(t *testing.T) {
    	testcases := []struct {
    		name           string
    		contents       string
    		createFile     bool
    		expectedResult *apiserver.EgressSelectorConfiguration
    		expectedError  *string
    	}{
    		{
    			name:           "empty",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 05 02:24:38 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  4. pkg/credentialprovider/config_test.go

    		}
    
    		if string(tt.expect) != string(actual) {
    			t.Errorf("case %d: expected %v, got %v", i, string(tt.expect), string(actual))
    		}
    	}
    }
    
    func TestReadDockerConfigFileFromBytes(t *testing.T) {
    	testCases := []struct {
    		id               string
    		input            []byte
    		expectedCfg      DockerConfig
    		errorExpected    bool
    		expectedErrorMsg string
    	}{
    		{
    			id:    "valid input, no error expected",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 19 15:11:57 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  5. src/image/image_test.go

    		NewRGBA64(r),
    		NewUniform(color.RGBA64{}),
    		NewYCbCr(r, YCbCrSubsampleRatio444),
    		r,
    	}
    	for _, tc := range testCases {
    		switch tc := tc.(type) {
    		// Most of the concrete image types in the testCases implement the
    		// draw.RGBA64Image interface: they have a SetRGBA64 method. We use an
    		// interface literal here, instead of importing "image/draw", to avoid
    		// an import cycle.
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 30 02:00:49 UTC 2021
    - 10.8K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/kubeconfig/kubeconfig_test.go

    		},
    	}
    	for _, rt := range testCases {
    		t.Run(rt.name, func(t *testing.T) {
    			r := getCurrentAuthInfo(rt.config)
    			if rt.expected != (r != nil) {
    				t.Errorf(
    					"failed TestHasCredentials:\n\texpected: %v\n\t  actual: %v",
    					rt.expected,
    					r,
    				)
    			}
    		})
    	}
    }
    
    func TestHasCredentials(t *testing.T) {
    	var testCases = []struct {
    		name     string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 18 06:49:59 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  7. pkg/quota/v1/evaluator/core/pods_test.go

    			},
    		},
    	}
    	t.Parallel()
    	for testName, testCase := range testCases {
    		t.Run(testName, func(t *testing.T) {
    			actual, err := evaluator.Usage(testCase.pod)
    			if err != nil {
    				t.Error(err)
    			}
    			if !quota.Equals(testCase.usage, actual) {
    				t.Errorf("expected: %v, actual: %v", testCase.usage, actual)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  8. build-logic/performance-testing/src/main/groovy/gradlebuild/performance/tasks/PerformanceTest.groovy

        static String collectFailures(JUnitTestCase testCase) {
            List<JUnitFailure> failures = testCase.failures ?: []
            return failures.collect { it.value }.join("\n")
        }
    
        private List<ScenarioBuildResultData> extractResultFromTestSuite(JUnitTestSuite testSuite, String testProject) {
            List<JUnitTestCase> testCases = testSuite.testCases ?: []
            return testCases.findAll { !it.skipped }.collect {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Dec 03 03:46:18 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  9. pkg/proxy/iptables/number_generated_rules_test.go

    // on their changes. It also runs multiple number of rules test cases to check
    // if the number of rules grows linearly.
    func TestNumberIptablesRules(t *testing.T) {
    	testCases := []struct {
    		name                string
    		epsFunc             func(eps *discovery.EndpointSlice)
    		svcFunc             func(svc *v1.Service)
    		services            int
    		epPerService        int
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. cmd/bucket-policy-handlers_test.go

    		},
    	}
    	// Iterating over the cases, fetching the policy and validating the response.
    	for i, testCase := range testCases {
    		// expected bucket policy json string.
    		expectedBucketPolicyStr := fmt.Sprintf(testCase.expectedBucketPolicy, testCase.bucketName, testCase.bucketName)
    		// initialize HTTP NewRecorder, this records any mutations to response writer inside the handler.
    		recV4 := httptest.NewRecorder()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
Back to top