From 0ac008e45be99e16ddf9add385853a261e562f34 Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Fri, 27 Sep 2024 11:39:58 -0700 Subject: [PATCH] Removing `Test` database (#935) --- lib/config/config_test.go | 10 ++-------- lib/config/constants/constants.go | 10 ++++------ 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/lib/config/config_test.go b/lib/config/config_test.go index 2e1d545e1..d3ee2847f 100644 --- a/lib/config/config_test.go +++ b/lib/config/config_test.go @@ -141,10 +141,7 @@ func TestConfig_Validate_ErrorTopicConfigInvalid(t *testing.T) { defer file.Close() - _, err = io.WriteString(file, - ` -outputSource: test -`) + _, err = io.WriteString(file, `outputSource: snowflake`) assert.Nil(t, err) config, err := readFileToConfig(randomFile) @@ -179,10 +176,7 @@ func TestConfig_Validate_ErrorKafkaInvalid(t *testing.T) { defer file.Close() - _, err = io.WriteString(file, - ` -outputSource: test -`) + _, err = io.WriteString(file, `outputSource: snowflake`) assert.Nil(t, err) config, err := readFileToConfig(randomFile) diff --git a/lib/config/constants/constants.go b/lib/config/constants/constants.go index 667c3a24e..113039d26 100644 --- a/lib/config/constants/constants.go +++ b/lib/config/constants/constants.go @@ -67,21 +67,19 @@ const ( type DestinationKind string const ( - Snowflake DestinationKind = "snowflake" - Test DestinationKind = "test" BigQuery DestinationKind = "bigquery" + MSSQL DestinationKind = "mssql" Redshift DestinationKind = "redshift" S3 DestinationKind = "s3" - MSSQL DestinationKind = "mssql" + Snowflake DestinationKind = "snowflake" ) var ValidDestinations = []DestinationKind{ BigQuery, - Snowflake, + MSSQL, Redshift, S3, - MSSQL, - Test, + Snowflake, } func IsValidDestination(destination DestinationKind) bool {