- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for wantCode (0.15 sec)
-
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) -
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) -
src/net/http/fs_test.go
} body, err := io.ReadAll(res.Body) res.Body.Close() if err != nil { t.Fatal(err) } wantBody := file if method == MethodHead { wantBody = nil } if !bytes.Equal(body, wantBody) { t.Fatalf("%v: got body %q, want %q", method, body, wantBody) } if got, want := res.Header.Get("Content-Length"), fmt.Sprint(len(file)); got != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 23:39:44 UTC 2024 - 49.9K bytes - Viewed (0) -
pkg/registry/core/pod/strategy_test.go
t.Errorf("Unexpected error: %v", errs.ToAggregate()) } Strategy.PrepareForCreate(genericapirequest.NewContext(), pod) wantPod.Spec.TopologySpreadConstraints = append(wantPod.Spec.TopologySpreadConstraints, tc.wantTopologySpreadConstraints...) if diff := cmp.Diff(wantPod, pod, cmpopts.IgnoreFields(pod.Status, "Phase", "QOSClass")); diff != "" { t.Errorf("%s unexpected result (-want, +got): %s", tc.name, diff) } })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 76.2K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/volumebinding/binder_test.go
os.Exit(1) } } // Add storageclasses waitMode := storagev1.VolumeBindingWaitForFirstConsumer immediateMode := storagev1.VolumeBindingImmediate classes := []*storagev1.StorageClass{ { ObjectMeta: metav1.ObjectMeta{ Name: waitClassWithProvisioner, }, VolumeBindingMode: &waitMode, Provisioner: provisioner, AllowedTopologies: []v1.TopologySelectorTerm{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 09:46:58 UTC 2024 - 82.8K bytes - Viewed (0) -
src/net/http/client_test.go
t.Fatal(err) } defer resp.Body.Close() if resp.StatusCode != 200 { t.Fatal(resp.Status) } if got, err := io.ReadAll(resp.Body); err != nil || string(got) != wantBody { t.Errorf("body = %q; want %q", got, wantBody) } } // Issue 17494: cookies should be altered when Client follows redirects. func TestClientAltersCookiesOnRedirect(t *testing.T) { run(t, testClientAltersCookiesOnRedirect) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:30:50 UTC 2024 - 63.8K bytes - Viewed (0)