Lines Matching refs:got
33 if got, want := res.status, http.StatusOK; got != want {
34 t.Errorf("status = %v; want %v", got, want)
45 if got, want := xfp, "foo, http"; got != want {
46 t.Errorf("X-Forwarded-Proto = %q; want %q", got, want)
62 if got, want := res.status, http.StatusOK; got != want {
63 t.Errorf("status = %v; want %v", got, want)
77 if got, want := xfp, "foo"; got != want {
78 t.Errorf("X-Forwarded-Proto = %q; want %q", got, want)
94 if got, want := res.status, http.StatusOK; got != want {
95 t.Errorf("status = %v; want %v", got, want)
105 if got, want := xfp, "http"; got != want {
106 t.Errorf("X-Forwarded-Proto = %q; want %q", got, want)
122 if got, want := res.status, http.StatusOK; got != want {
123 t.Errorf("status = %v; want %v", got, want)
133 if got, found := r.Header["X-Forwarded-Proto"]; found {
134 t.Errorf("X-Forwarded-Proto = %q; want nothing", got)
150 if got, want := res.status, http.StatusOK; got != want {
151 t.Errorf("status = %v; want %v", got, want)
177 if got, want := res.status, http.StatusOK; got != want {
178 t.Errorf("status = %v; want %v", got, want)
207 if got, want := res.status, http.StatusOK; got != want {
208 t.Errorf("status = %v; want %v", got, want)
235 if got, want := res.status, http.StatusOK; got != want {
236 t.Errorf("status = %v; want %v", got, want)
268 if got, want := res.status, http.StatusOK; got != want {
269 t.Errorf("status = %v; want %v", got, want)
281 got := r.Header.Get("Forwarded")
283 if !validFwd.MatchString(got) {
284 t.Errorf("Forwarded = %v; want pattern %v", got, pattern)
297 if got, want := res.status, http.StatusOK; got != want {
298 t.Errorf("status: %v; want %v", got, want)
310 if got := r.Header.Get("Forwarded"); !validFwd.MatchString(got) {
311 t.Errorf("Forwarded = %v; want pattern %v", got, pattern)
324 if got, want := res.status, http.StatusOK; got != want {
325 t.Errorf("status: %v; want %v", got, want)
340 if got := r.Header.Get("Forwarded"); got != want {
341 t.Errorf("Forwarded = %v; want %v", got, want)
354 if got, want := res.status, http.StatusOK; got != want {
355 t.Errorf("status: %v; want %v", got, want)
366 if got, want := r.Header.Get("Forwarded"), `host=foo, proto=http`; got != want {
367 t.Errorf("Forwarded = %v; want %v", got, want)
383 if got, want := res.status, http.StatusOK; got != want {
384 t.Errorf("status: %v; want %v", got, want)
398 if got, want := r.Header.Get("Forwarded"), `proto=http`; got != want {
399 t.Errorf("Forwarded = %v; want %v", got, want)
415 if got, want := res.status, http.StatusOK; got != want {
416 t.Errorf("status: %v; want %v", got, want)
426 if got, found := r.Header["Forwarded"]; found {
427 t.Errorf("Forwarded = %v; want nothing", got)
443 if got, want := res.status, http.StatusOK; got != want {
444 t.Errorf("status: %v; want %v", got, want)
460 if got := r.Header.Get("Forwarded"); !validFwd.MatchString(got) {
461 t.Errorf("Forwarded = %v; want pattern %v", got, pattern)
474 if got, want := res.status, http.StatusOK; got != want {
475 t.Errorf("status: %v; want %v", got, want)
484 if got, want := r.Header.Get("Via"), "2 nghttpx"; got != want {
485 t.Errorf("Via: %v; want %v", got, want)
498 if got, want := res.header.Get("Via"), "1.1 nghttpx"; got != want {
499 t.Errorf("Via: %v; want %v", got, want)
508 if got, want := r.Header.Get("Via"), "foo, 2 nghttpx"; got != want {
509 t.Errorf("Via: %v; want %v", got, want)
526 if got, want := res.header.Get("Via"), "bar, 1.1 nghttpx"; got != want {
527 t.Errorf("Via: %v; want %v", got, want)
537 if got, want := r.Header.Get("Via"), "foo"; got != want {
538 t.Errorf("Via: %v; want %v", got, want)
555 if got, want := res.header.Get("Via"), "bar"; got != want {
556 t.Errorf("Via: %v; want %v", got, want)
577 if got, want := res.status, http.StatusOK; got != want {
578 t.Errorf("status: %v; want %v", got, want)
580 if got, want := res.header.Get("request-host"), st.backendHost; got != want {
581 t.Errorf("request-host: %v; want %v", got, want)
602 if got, want := res.status, http.StatusOK; got != want {
603 t.Errorf("status: %v; want %v", got, want)
605 if got, want := res.header.Get("request-host"), st.frontendHost; got != want {
606 t.Errorf("request-host: %v; want %v", got, want)
688 if got := res.header.Get("Location"); got != want {
689 t.Errorf("Location: %v; want %v", got, want)
698 if got := fmt.Sprint(r.TransferEncoding); got != want {
699 t.Errorf("Transfer-Encoding: %v; want %v", got, want)
706 if got := string(body); got != want {
707 t.Errorf("body: %v; want %v", got, want)
722 if got, want := res.status, http.StatusOK; got != want {
723 t.Errorf("status = %v; want %v", got, want)
748 if got, want := res.errCode, http2.ErrCodeProtocol; got != want {
749 t.Errorf("res.errCode: %v; want %v", got, want)
773 if got, want := res.errCode, http2.ErrCodeProtocol; got != want {
774 t.Errorf("res.errCode: %v; want %v", got, want)
794 // if got := res.status; got != want {
795 // t.Errorf("status: %v; want %v", got, want)
817 if got, want := res.status, http.StatusNotImplemented; got != want {
818 t.Errorf("status: %v; want %v", got, want)
840 if got, want := res.errCode, http2.ErrCodeProtocol; got != want {
841 t.Errorf("res.errCode: %v; want %v", got, want)
863 if got, want := res.errCode, http2.ErrCodeProtocol; got != want {
864 t.Errorf("res.errCode: %v; want %v", got, want)
873 if got, want := r.Header.Get("Cookie"), "alpha; bravo; charlie"; got != want {
874 t.Errorf("Cookie: %v; want %v", got, want)
892 if got, want := res.status, http.StatusOK; got != want {
893 t.Errorf("status: %v; want %v", got, want)
912 if got, want := res.status, http.StatusOK; got != want {
913 t.Errorf("status: %v; want %v", got, want)
937 if got, want := res.errCode, http2.ErrCodeProtocol; got != want {
960 if got, want := cert.Subject.CommonName, "alt-domain"; got != want {
961 t.Errorf("CommonName: %v; want %v", got, want)
971 if got, want := r.Header.Get("x-forwarded-proto"), "http"; got != want {
972 t.Errorf("x-forwarded-proto: want %v; got %v", want, got)
986 if got, want := res.status, http.StatusOK; got != want {
987 t.Errorf("res.status: %v; want %v", got, want)
1011 if got, want := res.status, http.StatusOK; got != want {
1012 t.Errorf("res.status: %v; want %v", got, want)
1014 if got, want := len(res.pushResponse), 2; got != want {
1015 t.Fatalf("len(res.pushResponse): %v; want %v", got, want)
1018 if got, want := mainCSS.status, http.StatusOK; got != want {
1019 t.Errorf("mainCSS.status: %v; want %v", got, want)
1022 if got, want := themeCSS.status, http.StatusOK; got != want {
1023 t.Errorf("themeCSS.status: %v; want %v", got, want)
1042 if got, want := r.Trailer.Get("foo"), "bar"; got != want {
1043 t.Errorf("r.Trailer.Get(foo): %v; want %v", got, want)
1060 if got, want := res.status, http.StatusOK; got != want {
1061 t.Errorf("res.status: %v; want %v", got, want)
1083 if got, want := res.status, http.StatusRequestHeaderFieldsTooLarge; got != want {
1084 t.Errorf("status: %v; want %v", got, want)
1108 if got, want := res.status, http.StatusRequestHeaderFieldsTooLarge; got != want {
1109 t.Errorf("status: %v; want %v", got, want)
1119 if got, want := r.Header.Get("User-Agent"), "mruby"; got != want {
1120 t.Errorf("User-Agent = %v; want %v", got, want)
1134 if got, want := res.status, http.StatusOK; got != want {
1135 t.Errorf("status = %v; want %v", got, want)
1158 if got, want := res.status, http.StatusNotFound; got != want {
1159 t.Errorf("status = %v; want %v", got, want)
1169 if got, want := res.header.Get(tt.k), tt.v; got != want {
1170 t.Errorf("%v = %v; want %v", tt.k, got, want)
1174 if got, want := string(res.body), "Hello World from req"; got != want {
1175 t.Errorf("body = %v; want %v", got, want)
1195 if got, want := res.status, http.StatusOK; got != want {
1196 t.Errorf("status = %v; want %v", got, want)
1199 if got, want := res.header.Get("alpha"), "bravo"; got != want {
1200 t.Errorf("alpha = %v; want %v", got, want)
1220 if got, want := res.status, http.StatusNotFound; got != want {
1221 t.Errorf("status = %v; want %v", got, want)
1231 if got, want := res.header.Get(tt.k), tt.v; got != want {
1232 t.Errorf("%v = %v; want %v", tt.k, got, want)
1236 if got, want := string(res.body), "Hello World from resp"; got != want {
1237 t.Errorf("body = %v; want %v", got, want)
1259 if got, want := res.status, http.StatusSwitchingProtocols; got != want {
1260 t.Errorf("res.status: %v; want %v", got, want)
1269 if got, want := res.status, http.StatusOK; got != want {
1270 t.Errorf("res.status: %v; want %v", got, want)
1288 if got := r.Header.Get("Forwarded"); !validFwd.MatchString(got) {
1289 t.Errorf("Forwarded: %v; want pattern %v", got, pattern)
1308 if got, want := res.status, http.StatusOK; got != want {
1309 t.Errorf("res.status: %v; want %v", got, want)
1325 if got, want := r.Header.Get("X-Forwarded-For"), "192.168.0.2"; got != want {
1326 t.Errorf("X-Forwarded-For: %v; want %v", got, want)
1328 if got, want := r.Header.Get("Forwarded"), "for=192.168.0.2"; got != want {
1329 t.Errorf("Forwarded: %v; want %v", got, want)
1348 if got, want := res.status, http.StatusOK; got != want {
1349 t.Errorf("res.status: %v; want %v", got, want)
1365 if got, want := r.Header.Get("X-Forwarded-For"), "2001:0db8:85a3:0000:0000:8a2e:0370:7334"; got != want {
1366 t.Errorf("X-Forwarded-For: %v; want %v", got, want)
1368 if got, want := r.Header.Get("Forwarded"), `for="[2001:0db8:85a3:0000:0000:8a2e:0370:7334]"`; got != want {
1369 t.Errorf("Forwarded: %v; want %v", got, want)
1388 if got, want := res.status, http.StatusOK; got != want {
1389 t.Errorf("res.status: %v; want %v", got, want)
1405 if got, want := r.Header.Get("X-Forwarded-For"), "192.168.0.2"; got != want {
1406 t.Errorf("X-Forwarded-For: %v; want %v", got, want)
1408 if got, want := r.Header.Get("Forwarded"), "for=192.168.0.2"; got != want {
1409 t.Errorf("Forwarded: %v; want %v", got, want)
1426 if got, want := res.status, http.StatusOK; got != want {
1427 t.Errorf("res.status: %v; want %v", got, want)
1443 if got, want := r.Header.Get("X-Forwarded-For"), "2001:0db8:85a3:0000:0000:8a2e:0370:7334"; got != want {
1444 t.Errorf("X-Forwarded-For: %v; want %v", got, want)
1446 if got, want := r.Header.Get("Forwarded"), `for="[2001:0db8:85a3:0000:0000:8a2e:0370:7334]"`; got != want {
1447 t.Errorf("Forwarded: %v; want %v", got, want)
1464 if got, want := res.status, http.StatusOK; got != want {
1465 t.Errorf("res.status: %v; want %v", got, want)
1480 if got, notWant := r.Header.Get("X-Forwarded-For"), "192.168.0.2"; got == notWant {
1481 t.Errorf("X-Forwarded-For: %v; want something else", got)
1483 if got, notWant := r.Header.Get("Forwarded"), "for=192.168.0.2"; got == notWant {
1484 t.Errorf("Forwarded: %v; want something else", got)
1503 if got, want := res.status, http.StatusOK; got != want {
1504 t.Errorf("res.status: %v; want %v", got, want)
1532 if got, want := res.status, http.StatusOK; got != want {
1533 t.Errorf("res.status: %v; want %v", got, want)
1885 if got, want := r.Header.Get("X-Forwarded-For"), "192.168.0.2"; got != want {
1886 t.Errorf("X-Forwarded-For: %v; want %v", got, want)
1888 if got, want := r.Header.Get("Forwarded"), "for=192.168.0.2"; got != want {
1889 t.Errorf("Forwarded: %v; want %v", got, want)
1924 if got, want := res.status, http.StatusOK; got != want {
1925 t.Errorf("res.status: %v; want %v", got, want)
1941 if got, want := r.Header.Get("X-Forwarded-For"), "2001:db8:85a3::8a2e:370:7334"; got != want {
1942 t.Errorf("X-Forwarded-For: %v; want %v", got, want)
1944 if got, want := r.Header.Get("Forwarded"), `for="[2001:db8:85a3::8a2e:370:7334]"`; got != want {
1945 t.Errorf("Forwarded: %v; want %v", got, want)
1980 if got, want := res.status, http.StatusOK; got != want {
1981 t.Errorf("res.status: %v; want %v", got, want)
2013 if got, want := r.Header.Get("X-Forwarded-For"), "192.168.0.2"; got != want {
2014 t.Errorf("X-Forwarded-For: %v; want %v", got, want)
2016 if got, want := r.Header.Get("Forwarded"), "for=192.168.0.2"; got != want {
2017 t.Errorf("Forwarded: %v; want %v", got, want)
2034 if got, want := res.status, http.StatusOK; got != want {
2035 t.Errorf("res.status: %v; want %v", got, want)
2067 if got, want := r.Header.Get("X-Forwarded-For"), "2001:db8:85a3::8a2e:370:7334"; got != want {
2068 t.Errorf("X-Forwarded-For: %v; want %v", got, want)
2070 if got, want := r.Header.Get("Forwarded"), `for="[2001:db8:85a3::8a2e:370:7334]"`; got != want {
2071 t.Errorf("Forwarded: %v; want %v", got, want)
2088 if got, want := res.status, http.StatusOK; got != want {
2089 t.Errorf("res.status: %v; want %v", got, want)
2104 if got, want := r.Header.Get("X-Forwarded-For"), "127.0.0.1"; got != want {
2105 t.Errorf("X-Forwarded-For: %v; want %v", got, want)
2107 if got, want := r.Header.Get("Forwarded"), "for=127.0.0.1"; got != want {
2108 t.Errorf("Forwarded: %v; want %v", got, want)
2143 if got, want := res.status, http.StatusOK; got != want {
2144 t.Errorf("res.status: %v; want %v", got, want)
2197 if got, want := r.Header.Get("X-Forwarded-For"), "127.0.0.1"; got != want {
2198 t.Errorf("X-Forwarded-For: %v; want %v", got, want)
2200 if got, want := r.Header.Get("Forwarded"), "for=127.0.0.1"; got != want {
2201 t.Errorf("Forwarded: %v; want %v", got, want)
2236 if got, want := res.status, http.StatusOK; got != want {
2237 t.Errorf("res.status: %v; want %v", got, want)
2252 if got, want := r.Header.Get("X-Forwarded-For"), "127.0.0.1"; got != want {
2253 t.Errorf("X-Forwarded-For: %v; want %v", got, want)
2255 if got, want := r.Header.Get("Forwarded"), "for=127.0.0.1"; got != want {
2256 t.Errorf("Forwarded: %v; want %v", got, want)
2283 if got, want := res.status, http.StatusOK; got != want {
2284 t.Errorf("res.status: %v; want %v", got, want)
2304 if got, want := res.status, http.StatusOK; got != want {
2305 t.Errorf("status = %v; want %v", got, want)
2325 if got, want := res.status, http.StatusOK; got != want {
2326 t.Errorf("status = %v; want %v", got, want)
2346 if got, want := res.status, http.StatusPermanentRedirect; got != want {
2347 t.Errorf("status = %v; want %v", got, want)
2349 if got, want := res.header.Get("location"), "https://127.0.0.1/"; got != want {
2350 t.Errorf("location: %v; want %v", got, want)
2374 if got, want := res.status, http.StatusPermanentRedirect; got != want {
2375 t.Errorf("status = %v; want %v", got, want)
2377 if got, want := res.header.Get("location"), "https://127.0.0.1:8443/foo?bar"; got != want {
2378 t.Errorf("location: %v; want %v", got, want)
2400 if got, want := res.status, http.StatusNoContent; got != want {
2401 t.Errorf("status = %v; want %v", got, want)
2437 if got, want := res.status, http.StatusNoContent; got != want {
2438 t.Errorf("status = %v; want %v", got, want)
2441 if got, found := res.header["Content-Length"]; found {
2442 t.Errorf("Content-Length = %v, want nothing", got)
2478 if got, want := res.status, http.StatusBadGateway; got != want {
2479 t.Errorf("status = %v; want %v", got, want)
2515 if got, want := res.status, http.StatusBadGateway; got != want {
2516 t.Errorf("status = %v; want %v", got, want)
2536 if got, want := res.status, http.StatusOK; got != want {
2537 t.Errorf("status = %v; want %v", got, want)
2542 if got := res.header.Get("Set-Cookie"); !validCookie.MatchString(got) {
2543 t.Errorf("Set-Cookie: %v; want pattern %v", got, pattern)
2565 if got, want := res.status, http.StatusOK; got != want {
2566 t.Errorf("status = %v; want %v", got, want)
2571 if got := res.header.Get("Set-Cookie"); !validCookie.MatchString(got) {
2572 t.Errorf("Set-Cookie: %v; want pattern %v", got, pattern)
2625 if got := numGoAway; got != want {
2626 t.Fatalf("numGoAway: %v; want %v", got, want)
2636 if got := f.ErrCode; got != want {
2637 t.Fatalf("f.ErrCode(%v): %v; want %v", numGoAway, got, want)
2642 if got := f.LastStreamID; got != want {
2643 t.Fatalf("f.LastStreamID(%v): %v; want %v", numGoAway, got, want)
2647 if got := f.LastStreamID; got != want {
2648 t.Fatalf("f.LastStreamID(%v): %v; want %v", numGoAway, got, want)
2676 if got, want := res.errCode, http2.ErrCodeInternal; got != want {
2677 t.Errorf("res.errCode: %v; want %v", got, want)
2700 if got, want := res.errCode, http2.ErrCodeInternal; got != want {
2701 t.Errorf("res.errCode: %v; want %v", got, want)
2724 // if got := res.status; got != want {
2725 // t.Errorf("status: %v; want %v", got, want)
2746 if got, want := res.status, http.StatusOK; got != want {
2747 t.Errorf("status: %v; want %v", got, want)
2749 if got, want := res.header.Get("request-host"), st.backendHost; got != want {
2750 t.Errorf("request-host: %v; want %v", got, want)
2772 if got, want := res.status, http.StatusOK; got != want {
2773 t.Errorf("status: %v; want %v", got, want)
2775 if got, want := res.header.Get("request-host"), st.frontendHost; got != want {
2776 t.Errorf("request-host: %v; want %v", got, want)
2787 if got, want := r.Header.Get("x-forwarded-proto"), "http"; got != want {
2788 t.Errorf("x-forwarded-proto: want %v; got %v", want, got)
2802 if got, want := res.status, http.StatusOK; got != want {
2803 t.Errorf("res.status: %v; want %v", got, want)
2817 if got, want := xfp, "foo, http"; got != want {
2818 t.Errorf("X-Forwarded-Proto = %q; want %q", got, want)
2835 if got, want := res.status, http.StatusOK; got != want {
2836 t.Errorf("status = %v; want %v", got, want)
2851 if got, want := xfp, "foo"; got != want {
2852 t.Errorf("X-Forwarded-Proto = %q; want %q", got, want)
2869 if got, want := res.status, http.StatusOK; got != want {
2870 t.Errorf("status = %v; want %v", got, want)
2881 if got, want := xfp, "http"; got != want {
2882 t.Errorf("X-Forwarded-Proto = %q; want %q", got, want)
2899 if got, want := res.status, http.StatusOK; got != want {
2900 t.Errorf("status = %v; want %v", got, want)
2910 if got, found := r.Header["X-Forwarded-Proto"]; found {
2911 t.Errorf("X-Forwarded-Proto = %q; want nothing", got)
2928 if got, want := res.status, http.StatusOK; got != want {
2929 t.Errorf("status = %v; want %v", got, want)
2956 if got, want := res.status, http.StatusOK; got != want {
2957 t.Errorf("status = %v; want %v", got, want)
2987 if got, want := res.status, http.StatusOK; got != want {
2988 t.Errorf("status = %v; want %v", got, want)
3019 if got, want := res.status, http.StatusOK; got != want {
3020 t.Errorf("status = %v; want %v", got, want)
3054 if got, want := res.status, http.StatusOK; got != want {
3055 t.Errorf("status = %v; want %v", got, want)
3071 if got := r.Header.Get("Forwarded"); !validFwd.MatchString(got) {
3072 t.Errorf("Forwarded = %v; want pattern %v", got, pattern)
3087 if got, want := res.status, http.StatusOK; got != want {
3088 t.Errorf("status: %v; want %v", got, want)
3104 if got := r.Header.Get("Forwarded"); got != want {
3105 t.Errorf("Forwarded = %v; want %v", got, want)
3123 if got, want := res.status, http.StatusOK; got != want {
3124 t.Errorf("status: %v; want %v", got, want)
3141 if got := r.Header.Get("Forwarded"); got != want {
3142 t.Errorf("Forwarded = %v; want %v", got, want)
3160 if got, want := res.status, http.StatusOK; got != want {
3161 t.Errorf("status: %v; want %v", got, want)
3171 if got, found := r.Header["Forwarded"]; found {
3172 t.Errorf("Forwarded = %v; want nothing", got)
3190 if got, want := res.status, http.StatusOK; got != want {
3191 t.Errorf("status: %v; want %v", got, want)
3217 if got, want := res.status, http.StatusNotFound; got != want {
3218 t.Errorf("status = %v; want %v", got, want)
3228 if got, want := res.header.Get(tt.k), tt.v; got != want {
3229 t.Errorf("%v = %v; want %v", tt.k, got, want)
3233 if got, want := string(res.body), "Hello World from req"; got != want {
3234 t.Errorf("body = %v; want %v", got, want)
3257 if got, want := res.status, http.StatusNotFound; got != want {
3258 t.Errorf("status = %v; want %v", got, want)
3268 if got, want := res.header.Get(tt.k), tt.v; got != want {
3269 t.Errorf("%v = %v; want %v", tt.k, got, want)
3273 if got, want := string(res.body), "Hello World from resp"; got != want {
3274 t.Errorf("body = %v; want %v", got, want)
3294 if got, want := res.status, http.StatusOK; got != want {
3295 t.Errorf("status = %v; want %v", got, want)
3315 if got, want := res.status, http.StatusOK; got != want {
3316 t.Errorf("status = %v; want %v", got, want)
3339 if got, want := res.status, http.StatusNoContent; got != want {
3340 t.Errorf("status = %v; want %v", got, want)
3369 if got, want := res.status, http.StatusOK; got != want {
3370 t.Errorf("res.status: %v; want %v", got, want)
3378 if got, want := apiResp.Status, "Success"; got != want {
3379 t.Errorf("apiResp.Status: %v; want %v", got, want)
3381 if got, want := apiResp.Code, 200; got != want {
3382 t.Errorf("apiResp.Status: %v; want %v", got, want)
3411 if got, want := res.status, http.StatusOK; got != want {
3412 t.Errorf("res.status: %v; want %v", got, want)
3420 if got, want := apiResp.Status, "Success"; got != want {
3421 t.Errorf("apiResp.Status: %v; want %v", got, want)
3423 if got, want := apiResp.Code, 200; got != want {
3424 t.Errorf("apiResp.Status: %v; want %v", got, want)
3453 if got, want := res.status, http.StatusMethodNotAllowed; got != want {
3454 t.Errorf("res.status: %v; want %v", got, want)
3462 if got, want := apiResp.Status, "Failure"; got != want {
3463 t.Errorf("apiResp.Status: %v; want %v", got, want)
3465 if got, want := apiResp.Code, 405; got != want {
3466 t.Errorf("apiResp.Status: %v; want %v", got, want)
3490 if got, want := res.status, http.StatusOK; got != want {
3491 t.Errorf("res.status: %v; want = %v", got, want)
3501 if got, want := apiResp.Status, "Success"; got != want {
3502 t.Errorf("apiResp.Status: %v; want %v", got, want)
3504 if got, want := apiResp.Code, 200; got != want {
3505 t.Errorf("apiResp.Status: %v; want %v", got, want)
3507 if got, want := apiResp.Data["configRevision"], json.Number("0"); got != want {
3508 t.Errorf(`apiResp.Data["configRevision"]: %v %t; want %v`, got, got, want)
3537 if got, want := res.status, http.StatusNotFound; got != want {
3538 t.Errorf("res.status: %v; want %v", got, want)
3546 if got, want := apiResp.Status, "Failure"; got != want {
3547 t.Errorf("apiResp.Status: %v; want %v", got, want)
3549 if got, want := apiResp.Code, 404; got != want {
3550 t.Errorf("apiResp.Status: %v; want %v", got, want)
3573 if got, want := res.status, http.StatusOK; got != want {
3574 t.Errorf("res.status: %v; want %v", got, want)
3597 if got, want := res.status, http.StatusNotFound; got != want {
3598 t.Errorf("res.status: %v; want %v", got, want)
3634 if got, want := res.errCode, http2.ErrCodeInternal; got != want {
3635 t.Errorf("res.errCode = %v; want %v", got, want)
3659 if got, want := res.status, http.StatusBadRequest; got != want {
3660 t.Errorf("status = %v; want %v", got, want)
3685 if got, want := res.status, http.StatusBadRequest; got != want {
3686 t.Errorf("status = %v; want %v", got, want)
3711 if got, want := res.status, http.StatusBadRequest; got != want {
3712 t.Errorf("status = %v; want %v", got, want)
3737 if got, want := res.status, http.StatusBadRequest; got != want {
3738 t.Errorf("status = %v; want %v", got, want)