(t *testing.T, sc *ServerContext, s serverType)
| 107 | } |
| 108 | |
| 109 | func mustGetServerAddr(t *testing.T, sc *ServerContext, s serverType) string { |
| 110 | addr, err := sc.getServerAddr(s) |
| 111 | require.NoError(t, err, "Server %s not found in server context", s) |
| 112 | return addr |
| 113 | } |
| 114 | |
| 115 | func doBootstrapAdminRequest(t *testing.T, sc *ServerContext, method, path, body string, headers map[string]string) boostrapResponse { |
| 116 | host := "http://" + mustGetServerAddr(t, sc, adminServer) |