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

Function TestSetupAndValidateLoggingWithLoggingConfig

rest/config_test.go:691–699  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

689}
690
691func TestSetupAndValidateLoggingWithLoggingConfig(t *testing.T) {
692 t.Skip("Skipping TestSetupAndValidateLoggingWithLoggingConfig")
693 base.SetUpTestLogging(t, base.LevelInfo, base.KeyAll)
694 logFilePath := "/var/log/sync_gateway"
695 sc := &StartupConfig{Logging: base.LoggingConfig{LogFilePath: logFilePath, RedactionLevel: base.RedactFull}}
696 err := sc.SetupAndValidateLogging(base.TestCtx(t))
697 assert.NoError(t, err, "Setup and validate logging should be successful")
698 assert.Equal(t, base.RedactFull, sc.Logging.RedactionLevel)
699}
700
701func TestAuditLogConfigDatabaseEventInGlobal(t *testing.T) {
702 base.ResetGlobalTestLogging(t)

Callers

nothing calls this directly

Calls 4

SetUpTestLoggingFunction · 0.92
TestCtxFunction · 0.92
EqualMethod · 0.45

Tested by

no test coverage detected