fix: typos at test cases (#265)

Fix port and host typo at test cases
This commit is contained in:
Yuan
2025-02-04 14:54:36 -08:00
committed by GitHub
parent a402c9e670
commit b7c5661215
2 changed files with 8 additions and 8 deletions

View File

@@ -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

View File

@@ -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
`,