mirror of
https://github.com/EZ-Api/ez-api.git
synced 2026-01-14 02:57:52 +00:00
feat(arch): add log partitioning and provider delete sync
This commit is contained in:
@@ -4,6 +4,7 @@ import "testing"
|
||||
|
||||
func TestLoad_LogDSNOverride(t *testing.T) {
|
||||
t.Setenv("EZ_LOG_PG_DSN", "host=log-db user=postgres dbname=logs")
|
||||
t.Setenv("EZ_LOG_PARTITIONING", "monthly")
|
||||
cfg, err := Load()
|
||||
if err != nil {
|
||||
t.Fatalf("load config: %v", err)
|
||||
@@ -11,4 +12,7 @@ func TestLoad_LogDSNOverride(t *testing.T) {
|
||||
if cfg.Log.DSN != "host=log-db user=postgres dbname=logs" {
|
||||
t.Fatalf("expected log dsn to be set, got %q", cfg.Log.DSN)
|
||||
}
|
||||
if cfg.Log.Partitioning != "monthly" {
|
||||
t.Fatalf("expected log partitioning to be set, got %q", cfg.Log.Partitioning)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user