Skip to content

Commit

Permalink
Merge pull request ballerina-platform#42755 from gayaldassanayake/fix…
Browse files Browse the repository at this point in the history
…-retry-tests

[master] Add digest to connection reset related Central API tests
  • Loading branch information
chiranSachintha authored May 15, 2024
2 parents 9c45823 + f22f3e8 commit ca6fd4b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,8 @@ public void testPullToolConnectionReset1() throws CentralClientException, IOExce
String retryOutput = "* Retrying to pull the tool: foosf:1.3.5 due to: error" +
": Connection reset. Retry attempt: ";
String responseBody = "{\"id\":14069, \"organization\":\"foo\", \"name\":\"sf\", \"version\":\"1.3.5\", " +
"\"platform\":\"java17\", \"balaURL\":\"" + this.balaUrl + "\"}";
"\"platform\":\"java17\", \"balaURL\":\"" + this.balaUrl + "\", " +
"\"digest\":\"sha-256=47e043c80d516234b1e6bd93140f126c9d9e79b5c7c0600cc6316d12504c2cf4\"}";
Path balaPath = UTILS_TEST_RESOURCES.resolve(TEST_BALA_NAME);
File balaFile = new File(String.valueOf(balaPath));
String balaFileName = "attachment; filename=sf-2020r2-any-1.3.5.bala";
Expand Down Expand Up @@ -1126,7 +1127,8 @@ public void testPullToolConnectionReset2() throws IOException {
String retryOutput = "* Retrying to pull the tool: foosf:1.3.5 due to: error" +
": Connection reset. Retry attempt: ";
String responseBody = "{\"id\":14069, \"organization\":\"foo\", \"name\":\"sf\", \"version\":\"1.3.5\", " +
"\"platform\":\"java17\", \"balaURL\":\"" + this.balaUrl + "\"}";
"\"platform\":\"java17\", \"balaURL\":\"" + this.balaUrl + "\", " +
"\"digest\":\"sha-256=47e043c80d516234b1e6bd93140f126c9d9e79b5c7c0600cc6316d12504c2cf4\"}";
Path balaPath = UTILS_TEST_RESOURCES.resolve(TEST_BALA_NAME);
File balaFile = new File(String.valueOf(balaPath));
String balaFileName = "attachment; filename=sf-2020r2-any-1.3.5.bala";
Expand Down

0 comments on commit ca6fd4b

Please sign in to comment.