Skip to content

Commit

Permalink
SNOW-1446174: Allow 513 in SFTrustManager tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dprzybysz committed Jun 5, 2024
1 parent d84639c commit 828cf77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ private static void accessHost(String host, HttpClient client) throws IOExceptio
assertThat(
String.format("response code for %s", host),
statusCode,
anyOf(equalTo(200), equalTo(403), equalTo(400)));
anyOf(equalTo(200), equalTo(403), equalTo(400), equalTo(513)));
}

/**
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/net/snowflake/client/jdbc/RestRequestTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ class TestCase {
testCases.add(new TestCase(509, false, false));
testCases.add(new TestCase(510, false, false));
testCases.add(new TestCase(511, false, false));
testCases.add(new TestCase(513, false, false));
// do retry on HTTP 403 option
testCases.add(new TestCase(100, true, true));
testCases.add(new TestCase(101, true, true));
Expand Down Expand Up @@ -325,6 +326,7 @@ class TestCase {
testCases.add(new TestCase(509, true, false));
testCases.add(new TestCase(510, true, false));
testCases.add(new TestCase(511, true, false));
testCases.add(new TestCase(513, true, false));

for (TestCase t : testCases) {
if (t.result) {
Expand Down

0 comments on commit 828cf77

Please sign in to comment.