Lines Matching refs:got
31 if got := res.status; got != want {
32 t.Errorf("status = %v; want %v", got, want)
53 if got := res.status; got != want {
54 t.Errorf("status = %v; want %v", got, want)
74 if got, want := res.status, 501; got != want {
75 t.Errorf("status = %v; want %v", got, want)
103 if got := resp.StatusCode; got != want {
104 t.Errorf("status: %v; want %v", got, want)
142 if got, want := res.status, 200; got != want {
143 t.Errorf("status = %v; want %v", got, want)
148 if got := res.header.Get("Set-Cookie"); !validCookie.MatchString(got) {
149 t.Errorf("Set-Cookie: %v; want pattern %v", got, pattern)
166 if got, want := res.status, 200; got != want {
167 t.Errorf("status = %v; want %v", got, want)
172 if got := res.header.Get("Set-Cookie"); !validCookie.MatchString(got) {
173 t.Errorf("Set-Cookie: %v; want pattern %v", got, pattern)
189 if got, want := res.status, 200; got != want {
190 t.Errorf("status: %v; want %v", got, want)
203 if got, want := res.status, 200; got != want {
204 t.Errorf("status: %v; want %v", got, want)
207 if got, want := res.connClose, true; got != want {
208 t.Errorf("res.connClose: %v; want %v", got, want)
231 if got, want := res.status, 200; got != want {
232 t.Errorf("status: %v; want %v", got, want)
234 if got, want := res.header.Get("request-host"), st.backendHost; got != want {
235 t.Errorf("request-host: %v; want %v", got, want)
254 if got, want := resp.StatusCode, 400; got != want {
255 t.Errorf("status: %v; want %v", got, want)
274 if got, want := resp.StatusCode, 400; got != want {
275 t.Errorf("status: %v; want %v", got, want)
294 if got, want := resp.StatusCode, 400; got != want {
295 t.Errorf("status: %v; want %v", got, want)
316 if got, want := resp.StatusCode, 200; got != want {
317 t.Errorf("status: %v; want %v", got, want)
319 if got, want := resp.Header.Get("request-host"), st.backendHost; got != want {
320 t.Errorf("request-host: %v; want %v", got, want)
342 if got, want := resp.StatusCode, 200; got != want {
343 t.Errorf("status: %v; want %v", got, want)
345 if got, want := resp.Header.Get("request-host"), st.backendHost; got != want {
346 t.Errorf("request-host: %v; want %v", got, want)
364 if got, want := r.Trailer.Get("foo"), "bar"; got != want {
365 t.Errorf("r.Trailer.Get(foo): %v; want %v", got, want)
380 if got, want := res.status, 200; got != want {
381 t.Errorf("res.status: %v; want %v", got, want)
403 if got, want := res.status, 431; got != want {
404 t.Errorf("status: %v; want %v", got, want)
422 if got, want := res.status, 431; got != want {
423 t.Errorf("status: %v; want %v", got, want)
446 if got, want := res.status, 431; got != want {
447 t.Errorf("status: %v; want %v", got, want)
466 if got, want := res.body, content; !bytes.Equal(got, want) {
467 t.Errorf("echo: %q; want %q", got, want)
475 if got, want := r.Header.Get("User-Agent"), "mruby"; got != want {
476 t.Errorf("User-Agent = %v; want %v", got, want)
488 if got, want := res.status, 200; got != want {
489 t.Errorf("status = %v; want %v", got, want)
508 if got, want := res.status, 404; got != want {
509 t.Errorf("status = %v; want %v", got, want)
519 if got, want := res.header.Get(tt.k), tt.v; got != want {
520 t.Errorf("%v = %v; want %v", tt.k, got, want)
524 if got, want := string(res.body), "Hello World from req"; got != want {
525 t.Errorf("body = %v; want %v", got, want)
542 if got, want := res.status, 200; got != want {
543 t.Errorf("status = %v; want %v", got, want)
546 if got, want := res.header.Get("alpha"), "bravo"; got != want {
547 t.Errorf("alpha = %v; want %v", got, want)
564 if got, want := res.status, 404; got != want {
565 t.Errorf("status = %v; want %v", got, want)
575 if got, want := res.header.Get(tt.k), tt.v; got != want {
576 t.Errorf("%v = %v; want %v", tt.k, got, want)
580 if got, want := string(res.body), "Hello World from resp"; got != want {
581 t.Errorf("body = %v; want %v", got, want)
598 if got, want := res.status, 308; got != want {
599 t.Errorf("status = %v; want %v", got, want)
601 if got, want := res.header.Get("location"), "https://127.0.0.1/"; got != want {
602 t.Errorf("location: %v; want %v", got, want)
620 if got, want := res.status, 308; got != want {
621 t.Errorf("status = %v; want %v", got, want)
623 if got, want := res.header.Get("location"), "https://127.0.0.1:8443/foo?bar"; got != want {
624 t.Errorf("location: %v; want %v", got, want)
641 if got, want := res.status, 200; got != want {
642 t.Errorf("res.status: %v; want %v", got, want)
652 if got, want := res.status, 200; got != want {
653 t.Errorf("res.status: %v; want %v", got, want)
697 if got := resp.StatusCode; got != want {
698 t.Errorf("status: %v; want %v", got, want)
719 if got, want := resp.StatusCode, 200; got != want {
720 t.Errorf("status: %v; want %v", got, want)
722 if got, want := resp.Header.Get("request-host"), st.backendHost; got != want {
723 t.Errorf("request-host: %v; want %v", got, want)
745 if got, want := resp.StatusCode, 200; got != want {
746 t.Errorf("status: %v; want %v", got, want)
748 if got, want := resp.Header.Get("request-host"), st.backendHost; got != want {
749 t.Errorf("request-host: %v; want %v", got, want)
759 if got, want := r.Header.Get("Cookie"), "alpha; bravo; charlie"; got != want {
760 t.Errorf("Cookie: %v; want %v", got, want)
774 if got, want := res.status, 200; got != want {
775 t.Errorf("status: %v; want %v", got, want)
783 if got, want := r.Header.Get("Via"), "1.1 nghttpx"; got != want {
784 t.Errorf("Via: %v; want %v", got, want)
795 if got, want := res.header.Get("Via"), "2 nghttpx"; got != want {
796 t.Errorf("Via: %v; want %v", got, want)
804 if got, want := r.Header.Get("Via"), "foo, 1.1 nghttpx"; got != want {
805 t.Errorf("Via: %v; want %v", got, want)
820 if got, want := res.header.Get("Via"), "bar, 2 nghttpx"; got != want {
821 t.Errorf("Via: %v; want %v", got, want)
829 if got, want := r.Header.Get("Via"), "foo"; got != want {
830 t.Errorf("Via: %v; want %v", got, want)
845 if got, want := res.header.Get("Via"), "bar"; got != want {
846 t.Errorf("Via: %v; want %v", got, want)
865 if got, want := res.status, 404; got != want {
866 t.Errorf("status = %v; want %v", got, want)
876 if got, want := res.header.Get(tt.k), tt.v; got != want {
877 t.Errorf("%v = %v; want %v", tt.k, got, want)
881 if got, want := string(res.body), "Hello World from req"; got != want {
882 t.Errorf("body = %v; want %v", got, want)
899 if got, want := res.status, 404; got != want {
900 t.Errorf("status = %v; want %v", got, want)
910 if got, want := res.header.Get(tt.k), tt.v; got != want {
911 t.Errorf("%v = %v; want %v", tt.k, got, want)
915 if got, want := string(res.body), "Hello World from resp"; got != want {
916 t.Errorf("body = %v; want %v", got, want)
924 if got, want := r.Header.Get("te"), "trailers"; got != want {
925 t.Errorf("te: %v; want %v", got, want)
939 if got, want := res.status, 200; got != want {
940 t.Errorf("status: %v; want %v", got, want)
964 if got, want := res.status, 200; got != want {
965 t.Errorf("res.status: %v; want %v", got, want)
973 if got, want := apiResp.Status, "Success"; got != want {
974 t.Errorf("apiResp.Status: %v; want %v", got, want)
976 if got, want := apiResp.Code, 200; got != want {
977 t.Errorf("apiResp.Status: %v; want %v", got, want)
1001 if got, want := res.status, 200; got != want {
1002 t.Errorf("res.status: %v; want %v", got, want)
1010 if got, want := apiResp.Status, "Success"; got != want {
1011 t.Errorf("apiResp.Status: %v; want %v", got, want)
1013 if got, want := apiResp.Code, 200; got != want {
1014 t.Errorf("apiResp.Status: %v; want %v", got, want)
1038 if got, want := res.status, 405; got != want {
1039 t.Errorf("res.status: %v; want %v", got, want)
1047 if got, want := apiResp.Status, "Failure"; got != want {
1048 t.Errorf("apiResp.Status: %v; want %v", got, want)
1050 if got, want := apiResp.Code, 405; got != want {
1051 t.Errorf("apiResp.Status: %v; want %v", got, want)
1070 if got, want := res.status, 200; got != want {
1071 t.Errorf("res.status: %v; want = %v", got, want)
1081 if got, want := apiResp.Status, "Success"; got != want {
1082 t.Errorf("apiResp.Status: %v; want %v", got, want)
1084 if got, want := apiResp.Code, 200; got != want {
1085 t.Errorf("apiResp.Status: %v; want %v", got, want)
1087 if got, want := apiResp.Data["configRevision"], json.Number("0"); got != want {
1088 t.Errorf(`apiResp.Data["configRevision"]: %v %t; want %v`, got, got, want)
1112 if got, want := res.status, 404; got != want {
1113 t.Errorf("res.status: %v; want %v", got, want)
1121 if got, want := apiResp.Status, "Failure"; got != want {
1122 t.Errorf("apiResp.Status: %v; want %v", got, want)
1124 if got, want := apiResp.Code, 404; got != want {
1125 t.Errorf("apiResp.Status: %v; want %v", got, want)
1143 if got, want := res.status, 200; got != want {
1144 t.Errorf("res.status: %v; want %v", got, want)
1170 if got, want := resp.StatusCode, 404; got != want {
1171 t.Errorf("status: %v; want %v", got, want)