Files
seaweedfs/weed/filer/postgres2/postgres2_store_test.go
T
Chris LuandClaude Opus 5.5 6c6cd81b89 filer: run postgres2 and mysql2 through the conformance suite
RUN_POSTGRES_TESTS and RUN_MYSQL_TESTS enable them, as RUN_REDIS_TESTS
does the Redis stores; each test gets a schema or database of its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK
2026-12-01 16:34:54 -08:00

18 lines
476 B
Go

package postgres2
import (
"testing"
"github.com/seaweedfs/seaweedfs/weed/filer/store_test"
)
func TestStoreConformance(t *testing.T) {
db := store_test.NewPostgresTestDatabase(t)
store := &PostgresStore2{}
if err := store.initialize("", "", true, db.User, db.Password, db.Hostname, db.Port, db.Database, db.Schema, db.SSLMode, "", "", "", "", false, 10, 0, 60); err != nil {
t.Fatal(err)
}
defer store.Shutdown()
store_test.TestFilerStoreConformance(t, store)
}