Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing Test database #935

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions lib/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
10 changes: 4 additions & 6 deletions lib/config/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Loading