MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / TestBootstrapPingAPI

Function TestBootstrapPingAPI

rest/bootstrap_test.go:189–197  ·  view source on GitHub ↗

TestBootstrapDiagnosticAPI asserts on diagnostic API endpoints

(t *testing.T)

Source from the content-addressed store, hash-verified

187
188// TestBootstrapDiagnosticAPI asserts on diagnostic API endpoints
189func TestBootstrapPingAPI(t *testing.T) {
190 base.SetUpTestLogging(t, base.LevelInfo, base.KeyHTTP)
191
192 sc, closeFn := StartBootstrapServer(t)
193 defer closeFn()
194
195 resp := doBootstrapRequest(t, sc, http.MethodGet, "/_ping/", "", nil, diagnosticServer)
196 resp.RequireStatus(http.StatusOK)
197}
198
199// Development-time test, expects locally running Couchbase Server and designed for long-running memory profiling
200func DevTestFetchConfigManual(t *testing.T) {

Callers

nothing calls this directly

Calls 4

SetUpTestLoggingFunction · 0.92
StartBootstrapServerFunction · 0.85
doBootstrapRequestFunction · 0.85
RequireStatusMethod · 0.80

Tested by

no test coverage detected