StartBootstrapServer starts a server with a default bootstrap config, and returns a function to close the server. This differs from RestTester in that this is running a real server listening on random port. Prefer use of RestTester for more ergnomic APIs.
(t *testing.T)
| 174 | |
| 175 | // StartBootstrapServer starts a server with a default bootstrap config, and returns a function to close the server. This differs from RestTester in that this is running a real server listening on random port. Prefer use of RestTester for more ergnomic APIs. |
| 176 | func StartBootstrapServer(t *testing.T) (*ServerContext, func()) { |
| 177 | return StartBootstrapServerWithGroupID(t, nil) |
| 178 | } |
| 179 | |
| 180 | // StartBootstrapServerWithGroupID starts a server with a bootstrap config, and returns a function to close the server. This differs from RestTester in that this is running a real server listening on random port. Prefer use of random groupID if appropriate. Prefer use of RestTester for more ergonomic APIs. |
| 181 | func StartBootstrapServerWithGroupID(t *testing.T, groupID *string) (*ServerContext, func()) { |