Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 483 for testCases (1.58 sec)

  1. pilot/cmd/pilot-agent/status/server_test.go

    	case "status":
    		code, _ := strconv.Atoi(segments[1])
    		w.Header().Set("Location", "/")
    		w.WriteHeader(code)
    	default:
    		return
    	}
    }
    
    func TestNewServer(t *testing.T) {
    	testCases := []struct {
    		probe string
    		err   string
    	}{
    		// Json can't be parsed.
    		{
    			probe: "invalid-prober-json-encoding",
    			err:   "failed to decode",
    		},
    		// map key is not well formed.
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  2. testing/internal-testing/src/main/groovy/org/gradle/integtests/fixtures/JUnitTestClassExecutionResult.groovy

         * This method exists for compatibility purposes, but is equivalent to {@link #assertTestsExecuted(java.lang.String[])}.
         */
        @Override
        TestClassExecutionResult assertTestsExecuted(TestCase... testCases) {
            return assertTestsExecuted(testCases.collect { it.displayName } as String[])
        }
    
        TestClassExecutionResult assertTestCount(int tests, int failures, int errors) {
            assert testClassNode.@tests == tests
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/net/http_test.go

    			},
    			ExpectedIP: ip,
    		},
    	}
    
    	for i, test := range testCases {
    		if a, e := GetClientIP(&test.Request), test.ExpectedIP; reflect.DeepEqual(e, a) != true {
    			t.Fatalf("test case %d failed. expected: %v, actual: %v", i, e, a)
    		}
    	}
    }
    
    func TestAppendForwardedForHeader(t *testing.T) {
    	testCases := []struct {
    		addr, forwarded, expected string
    	}{
    		{"1.2.3.4:8000", "", "1.2.3.4"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:21:56 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/grpc_service_unix_test.go

    		{"emptyConfiguration", ""},
    		{"invalidScheme", "tcp://localhost:6060"},
    	}
    
    	for _, testCase := range invalidConfigs {
    		t.Run(testCase.name, func(t *testing.T) {
    			_, err := NewGRPCService(ctx, testCase.endpoint, testProviderName, 1*time.Second)
    			if err == nil {
    				t.Fatalf("should fail to create envelope service for %s.", testCase.name)
    			}
    		})
    	}
    }
    
    func TestKMSOperationsMetric(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 19:25:52 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/cmd/init_test.go

    	}
    	defer cfgFile.Close()
    	if _, err = cfgFile.WriteString(testInitConfig); err != nil {
    		t.Fatalf("Unable to write file %q: %v", configFilePath, err)
    	}
    
    	testCases := []struct {
    		name        string
    		args        []string
    		flags       map[string]string
    		validate    func(*testing.T, *initData)
    		expectError bool
    	}{
    		// Init data passed using flags
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 12:26:20 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/plugin_test.go

    	stopCh := make(chan struct{})
    	defer close(stopCh)
    
    	testCases := append(webhooktesting.NewMutatingTestCases(serverURL, "test-webhooks"),
    		webhooktesting.ConvertToMutatingTestCases(webhooktesting.NewNonMutatingTestCases(serverURL), "test-webhooks")...)
    
    	for _, tt := range testCases {
    		// For now, skip failure cases or tests that explicitly skip benchmarking
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. 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)
  8. cmd/kube-proxy/app/server_linux_test.go

    	proxyutil "k8s.io/kubernetes/pkg/proxy/util"
    	"k8s.io/kubernetes/test/utils/ktesting"
    	netutils "k8s.io/utils/net"
    	"k8s.io/utils/ptr"
    )
    
    func Test_platformApplyDefaults(t *testing.T) {
    	testCases := []struct {
    		name                string
    		mode                proxyconfigapi.ProxyMode
    		expectedMode        proxyconfigapi.ProxyMode
    		detectLocal         proxyconfigapi.LocalMode
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 28 15:51:23 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  9. 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)
  10. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go

    			decodeIntoObject: &testapigroupv1.Carp{}, // which client-go's scheme doesn't recognize
    			baseErr:          nil,
    		},
    	}
    	for _, testCase := range testCases {
    		err := transformDecodeError(testCase.typer, testCase.baseErr, testCase.decodeIntoObject, testCase.decodedGVK, []byte(``))
    		if apiStatus, ok := err.(apierrors.APIStatus); !ok || apiStatus.Status().Code != http.StatusBadRequest {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 41.8K bytes
    - Viewed (0)
Back to top