Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testRedirect (0.14 sec)

  1. src/net/http/serve_test.go

    		},
    	}
    	Redirect(rr, req, "", 304)
    	if rr.Code != 304 {
    		t.Errorf("Code = %d; want 304", rr.Code)
    	}
    }
    
    // Test different URL formats and schemes
    func TestRedirect(t *testing.T) {
    	req, _ := NewRequest("GET", "http://example.com/qux/", nil)
    
    	var tests = []struct {
    		in   string
    		want string
    	}{
    		// normal http
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  2. tests/integration/ambient/baseline_test.go

    					Check: check.BodyContains(fmt.Sprintf(`system:serviceaccount:%v:default`, apps.Namespace.Name())),
    				}
    				src.CallOrFail(t, opts)
    			})
    		}
    	})
    }
    
    func TestDirect(t *testing.T) {
    	framework.NewTest(t).Run(func(t framework.TestContext) {
    		t.NewSubTest("waypoint").Run(func(t framework.TestContext) {
    			c := common.NewCaller()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 00:07:28 UTC 2024
    - 78.4K bytes
    - Viewed (0)
Back to top