From b7c5661215c431c8590a60e029f3c340132574b7 Mon Sep 17 00:00:00 2001 From: Yuan <45984206+Yuan325@users.noreply.github.com> Date: Tue, 4 Feb 2025 14:54:36 -0800 Subject: [PATCH] fix: typos at test cases (#265) Fix port and host typo at test cases --- internal/sources/mysql/mysql_test.go | 8 ++++---- internal/sources/postgres/postgres_test.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/internal/sources/mysql/mysql_test.go b/internal/sources/mysql/mysql_test.go index 633fc9aa2..e74de4321 100644 --- a/internal/sources/mysql/mysql_test.go +++ b/internal/sources/mysql/mysql_test.go @@ -37,7 +37,7 @@ func TestParseFromYamlCloudSQLMySQL(t *testing.T) { my-mysql-instance: kind: mysql host: 0.0.0.0 - port: my-host + port: my-port database: my_db user: my_user password: my_pass @@ -47,7 +47,7 @@ func TestParseFromYamlCloudSQLMySQL(t *testing.T) { Name: "my-mysql-instance", Kind: mysql.SourceKind, Host: "0.0.0.0", - Port: "my-host", + Port: "my-port", Database: "my_db", User: "my_user", Password: "my_pass", @@ -86,7 +86,7 @@ func TestFailParseFromYaml(t *testing.T) { my-mysql-instance: kind: mysql host: 0.0.0.0 - port: my-host + port: my-port database: my_db user: my_user password: my_pass @@ -100,7 +100,7 @@ func TestFailParseFromYaml(t *testing.T) { sources: my-mysql-instance: kind: mysql - port: my-host + port: my-port database: my_db user: my_user password: my_pass diff --git a/internal/sources/postgres/postgres_test.go b/internal/sources/postgres/postgres_test.go index 09603ebf8..eca7894c5 100644 --- a/internal/sources/postgres/postgres_test.go +++ b/internal/sources/postgres/postgres_test.go @@ -37,7 +37,7 @@ func TestParseFromYamlPostgres(t *testing.T) { my-pg-instance: kind: postgres host: my-host - port: 0.0.0.0 + port: my-port database: my_db user: my_user password: my_pass @@ -47,7 +47,7 @@ func TestParseFromYamlPostgres(t *testing.T) { Name: "my-pg-instance", Kind: postgres.SourceKind, Host: "my-host", - Port: "0.0.0.0", + Port: "my-port", Database: "my_db", User: "my_user", Password: "my_pass", @@ -86,7 +86,7 @@ func TestFailParseFromYaml(t *testing.T) { my-pg-instance: kind: postgres host: my-host - port: 0.0.0.0 + port: my-port database: my_db user: my_user password: my_pass @@ -101,7 +101,7 @@ func TestFailParseFromYaml(t *testing.T) { my-pg-instance: kind: postgres host: my-host - port: 0.0.0.0 + port: my-port database: my_db user: my_user `,