Skip to content

Commit

Permalink
adding experimental replicated function to clickhouse #40
Browse files Browse the repository at this point in the history
  • Loading branch information
raoptimus committed Dec 3, 2024
1 parent b43ee9b commit be4351b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions internal/migrator/db_service_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ func TestIntegrationDBService_UpDown_Successfully(t *testing.T) {
options *Options
}{
{
name: "postgres",
name: "postgres",
selectQuery: "select * from test",
options: &Options{
DSN: os.Getenv("POSTGRES_DSN"),
Directory: migrationsPathAbs(os.Getenv("POSTGRES_MIGRATIONS_PATH")),
Expand All @@ -40,7 +41,8 @@ func TestIntegrationDBService_UpDown_Successfully(t *testing.T) {
},
},
{
name: "mysql",
name: "mysql",
selectQuery: "select * from test",
options: &Options{
DSN: os.Getenv("MYSQL_DSN"),
Directory: migrationsPathAbs(os.Getenv("MYSQL_MIGRATIONS_PATH")),
Expand All @@ -50,7 +52,8 @@ func TestIntegrationDBService_UpDown_Successfully(t *testing.T) {
},
},
{
name: "clickhouse",
name: "clickhouse",
selectQuery: "select * from test",
options: &Options{
DSN: os.Getenv("CLICKHOUSE_DSN"),
Directory: migrationsPathAbs(os.Getenv("CLICKHOUSE_MIGRATIONS_PATH")),
Expand All @@ -60,7 +63,8 @@ func TestIntegrationDBService_UpDown_Successfully(t *testing.T) {
},
},
{
name: "clickhouse_cluster",
name: "clickhouse_cluster",
selectQuery: "select * from raw.test",
options: &Options{
DSN: os.Getenv("CLICKHOUSE_CLUSTER_DSN"),
Directory: migrationsPathAbs(os.Getenv("CLICKHOUSE_CLUSTER_MIGRATIONS_PATH")),
Expand Down

0 comments on commit be4351b

Please sign in to comment.