Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
Indexer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Indexer
Commits
3e263ba2
Commit
3e263ba2
authored
3 years ago
by
Muskan Srivastava
Browse files
Options
Downloads
Patches
Plain Diff
updated NOTICE
parent
e72d888e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!147
Enabling retry for indexer to storage service calls
Pipeline
#43679
failed
3 years ago
Stage: .pre
Stage: review
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NOTICE
+5
-1
5 additions, 1 deletion
NOTICE
provider/indexer-azure/src/test/java/org/opengroup/osdu/indexer/azure/service/RetryPolicyTest.java
+6
-6
6 additions, 6 deletions
...opengroup/osdu/indexer/azure/service/RetryPolicyTest.java
with
11 additions
and
7 deletions
NOTICE
+
5
−
1
View file @
3e263ba2
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
provider/indexer-azure/src/test/java/org/opengroup/osdu/indexer/azure/service/RetryPolicyTest.java
+
6
−
6
View file @
3e263ba2
...
...
@@ -33,7 +33,7 @@ import static org.junit.Assert.assertTrue;
@RunWith
(
MockitoJUnitRunner
.
class
)
public
class
RetryPolicyTest
{
private
static
final
String
JSON
1
=
"{\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
JSON
2
=
"{\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
JSON
3
=
"{\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
(
JSON
1
);
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
(
JSON
2
);
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
(
JSON
3
);
response
.
setBody
(
JSON
_RESPONSE2_WITHOUT_NOT_FOUND
);
boolean
value
=
retry
.
test
(
response
);
assertFalse
(
value
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment