From 942f56ebb960cf061ad4e45b58f9abf77660ef44 Mon Sep 17 00:00:00 2001 From: Juan Martinez Ramirez Date: Wed, 27 Mar 2024 16:33:49 -0600 Subject: [PATCH] Fixed test to be able to run with local parameters. A port should be added to the regex to bypass the server if is different than default 80. --- Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs b/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs index cc8355348..da4628588 100644 --- a/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs +++ b/Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs @@ -1542,8 +1542,8 @@ public void TestInvalidProxySettingFromConnectionString() [Test] [TestCase("*")] - [TestCase("*{0}")] - [TestCase("^*{0}$")] + [TestCase("*{0}*")] + [TestCase("^*{0}*$")] [TestCase("^nonmatch*{0}$|*")] [TestCase("*a*", "a")] [TestCase("*la*", "la")] @@ -1612,7 +1612,7 @@ public void TestInvalidProxySettingWithByPassListFromConnectionString() = ConnectionString + String.Format( ";useProxy=true;proxyHost=Invalid;proxyPort=8080;nonProxyHosts={0}", - $"*.foo.com %7C{testConfig.account}.snowflakecomputing.com|*{testConfig.host}"); + $"*.foo.com %7C{testConfig.account}.snowflakecomputing.com|*{testConfig.host}*"); conn.Open(); // Because testConfig.host is in the bypass list, the proxy should not be used }