Skip to content

Commit

Permalink
Fixed test to be able to run with local parameters. A port should be …
Browse files Browse the repository at this point in the history
…added to the regex to bypass the server if is different than default 80.
  • Loading branch information
sfc-gh-jmartinezramirez committed Apr 1, 2024
1 parent 11ce229 commit 85f3608
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 85f3608

Please sign in to comment.