Skip to content
Snippets Groups Projects
Commit 3e263ba2 authored by Muskan Srivastava's avatar Muskan Srivastava
Browse files

updated NOTICE

parent e72d888e
No related branches found
No related tags found
1 merge request!147Enabling retry for indexer to storage service calls
Pipeline #43679 failed
......@@ -382,10 +382,10 @@ The following software have components provided under the terms of this license:
- Microsoft Azure Java Core Library (from https://github.com/Azure/azure-sdk-for-java)
- Microsoft Azure Netty HTTP Client Library (from https://github.com/Azure/azure-sdk-for-java)
- Microsoft Azure SDK for SQL API of Azure Cosmos DB Service (from https://github.com/Azure/azure-sdk-for-java)
- Mockito (from http://www.mockito.org)
- Mockito (from http://mockito.org)
- Mockito (from http://mockito.org)
- Mockito (from http://mockito.org)
- Mockito (from http://www.mockito.org)
- Mojo's Maven plugin for Cobertura (from http://mojo.codehaus.org/cobertura-maven-plugin/)
- MongoDB Driver (from http://www.mongodb.org)
- MongoDB Java Driver Core (from http://www.mongodb.org)
......@@ -487,6 +487,8 @@ The following software have components provided under the terms of this license:
- StAX (from http://stax.codehaus.org/)
- StAX API (from http://stax.codehaus.org/)
- T-Digest (from https://github.com/tdunning/t-digest)
- Vavr (from http://vavr.io)
- Vavr Match (from http://vavr.io)
- Woodstox (from https://github.com/FasterXML/woodstox)
- Xerces2-j (from https://xerces.apache.org/xerces2-j/)
- aalto-xml (from )
......@@ -561,6 +563,8 @@ The following software have components provided under the terms of this license:
- proton-j (from )
- rank-eval (from https://github.com/elastic/elasticsearch)
- rank-eval (from https://github.com/elastic/elasticsearch)
- resilience4j (from https://github.com/resilience4j/resilience4j)
- resilience4j (from https://github.com/resilience4j/resilience4j)
- rest (from https://github.com/elastic/elasticsearch)
- rest (from https://github.com/elastic/elasticsearch)
- rest-high-level (from https://github.com/elastic/elasticsearch)
......
......@@ -33,7 +33,7 @@ import static org.junit.Assert.assertTrue;
@RunWith(MockitoJUnitRunner.class)
public class RetryPolicyTest {
private static final String JSON1 = "{\n" +
private static final String JSON_RESPONSE_WITH_NOT_FOUND = "{\n" +
" \"records\": [\n" +
" {\n" +
" \"data\": {\n" +
......@@ -73,7 +73,7 @@ public class RetryPolicyTest {
" \"conversionStatuses\": []\n" +
"}";
private static final String JSON2 = "{\n" +
private static final String JSON_RESPONSE1_WITHOUT_NOT_FOUND = "{\n" +
" \"records\": [\n" +
" {\n" +
" \"data\": {\n" +
......@@ -111,7 +111,7 @@ public class RetryPolicyTest {
" \"conversionStatuses\": []\n" +
"}";
private static final String JSON3 = "{\n" +
private static final String JSON_RESPONSE2_WITHOUT_NOT_FOUND = "{\n" +
" \"records\" :[],\n" +
" \"conversionStatuses\":[]\n" +
"}";
......@@ -130,7 +130,7 @@ public class RetryPolicyTest {
public void retry_should_be_true_for_json1() {
RetryConfig config = this.retryPolicy.retryConfig();
Predicate<HttpResponse> retry = config.getResultPredicate();
response.setBody(JSON1);
response.setBody(JSON_RESPONSE_WITH_NOT_FOUND);
assert retry != null;
boolean value = retry.test(response);
......@@ -141,7 +141,7 @@ public class RetryPolicyTest {
public void retry_should_be_false_for_json2() {
RetryConfig config = this.retryPolicy.retryConfig();
Predicate<HttpResponse> retry = config.getResultPredicate();
response.setBody(JSON2);
response.setBody(JSON_RESPONSE1_WITHOUT_NOT_FOUND);
boolean value = retry.test(response);
assertFalse(value);
......@@ -151,7 +151,7 @@ public class RetryPolicyTest {
public void retry_should_be_false_for_json3() {
RetryConfig config = this.retryPolicy.retryConfig();
Predicate<HttpResponse> retry = config.getResultPredicate();
response.setBody(JSON3);
response.setBody(JSON_RESPONSE2_WITHOUT_NOT_FOUND);
boolean value = retry.test(response);
assertFalse(value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment