Skip to content

Commit

Permalink
Merge pull request #154 from aodn/bugs/5916-fix-fail-ingest
Browse files Browse the repository at this point in the history
Fix bug on report incorrect status
  • Loading branch information
vietnguyengit authored Oct 18, 2024
2 parents 7e87e70 + 26be87f commit e91cbe9
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ public BulkResponse executeBulk(BulkRequest.Builder bulkRequest, Callback callba
protected BulkResponse reduceResponse(BulkResponse in) {
List<BulkResponseItem> errors = in.items()
.stream()
.filter(p -> p.status() != HttpStatus.CREATED.value())
.filter(p -> p.status() != HttpStatus.CREATED.value() || p.status() != HttpStatus.OK.value())
.toList();

return errors.isEmpty() ?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public void verifyPolygonMissingDimensionAttributeWorks() throws IOException, JS
@Test
public void verifyProviderNameNullWorks() throws IOException, JSONException {
String xml = readResourceFile("classpath:canned/sample16.xml");
String expected = readResourceFile("classpath:canned/sample16.json");
String expected = readResourceFile("classpath:canned/sample16_stac.json");
indexerService.indexMetadata(xml);

verify(expected);
Expand All @@ -333,7 +333,7 @@ public void verifyProviderNameNullWorks() throws IOException, JSONException {
@Test
public void verifyCiRoleCodeNullWorks() throws IOException, JSONException {
String xml = readResourceFile("classpath:canned/sample17.xml");
String expected = readResourceFile("classpath:canned/sample17.json");
String expected = readResourceFile("classpath:canned/sample17_stac.json");
indexerService.indexMetadata(xml);

verify(expected);
Expand Down

0 comments on commit e91cbe9

Please sign in to comment.