From ccdde6f3edaaf2c58f5cd64a0ee4670efcef33b3 Mon Sep 17 00:00:00 2001 From: sfc-gh-dszmolka Date: Mon, 16 Dec 2024 13:55:18 +0100 Subject: [PATCH] * removed Info level log message from Region containing us-west-2 * removed wrong test --- dsn.go | 1 - dsn_test.go | 9 --------- 2 files changed, 10 deletions(-) diff --git a/dsn.go b/dsn.go index 160a306f5..001ed73fd 100644 --- a/dsn.go +++ b/dsn.go @@ -141,7 +141,6 @@ func (c *Config) ocspMode() string { func DSN(cfg *Config) (dsn string, err error) { if strings.ToLower(cfg.Region) == "us-west-2" { cfg.Region = "" - logger.Info("Ignoring Region configuration in DSN as us-west-2 is the default one.") } // in case account includes region region, posDot := extractRegionFromAccount(cfg.Account) diff --git a/dsn_test.go b/dsn_test.go index c6cdf0827..dfa133928 100644 --- a/dsn_test.go +++ b/dsn_test.go @@ -1249,15 +1249,6 @@ func TestDSN(t *testing.T) { }, dsn: "u:p@account_us-west-2.snowflakecomputing.com:443?ocspFailOpen=true&validateDefaultParameters=true", }, - { - cfg: &Config{ - User: "u", - Password: "p", - Account: "account", - Host: "account.us-west-2.snowflakecomputing.com", - }, - dsn: "u:p@account.snowflakecomputing.com:443?ocspFailOpen=true&validateDefaultParameters=true", - }, { cfg: &Config{ User: "u",