Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for wantModes (0.16 sec)

  1. tests/integration/security/authz_test.go

    					for _, c := range cases {
    						c := c
    						testName := fmt.Sprintf("%s(%s)/http", c.host, c.allow)
    						t.NewSubTest(testName).Run(func(t framework.TestContext) {
    							wantCode := http.StatusOK
    							if !c.allow {
    								wantCode = http.StatusForbidden
    							}
    
    							opts := echo.CallOptions{
    								Port: echo.Port{
    									Protocol: protocol.HTTP,
    								},
    								HTTP: echo.HTTP{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  2. src/net/http/httputil/reverseproxy_test.go

    	tests := []struct {
    		name           string
    		wantCode       int
    		errorHandler   func(http.ResponseWriter, *http.Request, error)
    		transport      http.RoundTripper // defaults to failingRoundTripper
    		modifyResponse func(*http.Response) error
    	}{
    		{
    			name:     "default",
    			wantCode: http.StatusBadGateway,
    		},
    		{
    			name:         "errorhandler",
    			wantCode:     http.StatusTeapot,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  3. src/net/textproto/reader_test.go

    		r := reader(tt.in + "\nFOLLOWING DATA")
    		code, msg, err := r.ReadResponse(tt.inCode)
    		if err != nil {
    			t.Errorf("#%d: ReadResponse: %v", i, err)
    			continue
    		}
    		if code != tt.wantCode {
    			t.Errorf("#%d: code=%d, want %d", i, code, tt.wantCode)
    		}
    		if msg != tt.wantMsg {
    			t.Errorf("#%d: msg=%q, want %q", i, msg, tt.wantMsg)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 05 18:31:56 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  4. src/net/http/fs_test.go

    		if !reflect.DeepEqual(log, tt.wantOpen) {
    			t.Logf("For %s: Opens = %q; want %q", tt.path, log, tt.wantOpen)
    		}
    		if rr.Code != tt.wantCode {
    			t.Logf("For %s: Response code = %d; want %d", tt.path, rr.Code, tt.wantCode)
    		}
    	}
    }
    
    type fileServerCleanPathDir struct {
    	log *[]string
    }
    
    func (d fileServerCleanPathDir) Open(path string) (File, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  5. pkg/controller/job/job_controller_test.go

    		pods              []*v1.Pod
    		wantPods          []string
    		wantPodsFinalizer []string
    	}{
    		"only matching": {
    			pods: []*v1.Pod{
    				buildPod().name("pod1").job(job).trackingFinalizer().Pod,
    				buildPod().name("pod2").job(otherJob).Pod,
    				buildPod().name("pod3").ns(job.Namespace).Pod,
    				buildPod().name("pod4").job(job).Pod,
    			},
    			wantPods:          []string{"pod1", "pod4"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  6. src/net/http/transport_test.go

    	c := &Client{Transport: tr}
    
    	testResponse := func(req *Request, name string, wantCode int) {
    		t.Helper()
    		res, err := c.Do(req)
    		if err != nil {
    			t.Fatalf("%s: Do: %v", name, err)
    		}
    		if res.StatusCode != wantCode {
    			t.Fatalf("%s: Response Statuscode=%d; want %d", name, res.StatusCode, wantCode)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top