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

Function TestStartAndStopHTTPServers

rest/server_context_test.go:366–377  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

364}
365
366func TestStartAndStopHTTPServers(t *testing.T) {
367 base.SetUpTestLogging(t, base.LevelInfo, base.KeyAll)
368
369 sc, closeFn := StartBootstrapServer(t)
370 defer closeFn()
371
372 resp, err := http.Get("http://" + mustGetServerAddr(t, sc, publicServer))
373 require.NoError(t, err)
374 require.NoError(t, resp.Body.Close())
375 assert.Equal(t, http.StatusOK, resp.StatusCode)
376
377}
378
379// CBG-1518 - Test CA Certificate behaviour with and with Bootstrap.ServerTLSSkipVerify
380func TestTLSSkipVerifyCombinations(t *testing.T) {

Callers

nothing calls this directly

Calls 6

SetUpTestLoggingFunction · 0.92
StartBootstrapServerFunction · 0.85
mustGetServerAddrFunction · 0.85
CloseMethod · 0.65
GetMethod · 0.45
EqualMethod · 0.45

Tested by

no test coverage detected