Skip to content

Commit d90a95c

Browse files
authored
Merge pull request #231 from aodn/feature/7208-update-schema
Sync schema and add missing test
2 parents fbb4118 + cc113fa commit d90a95c

3 files changed

Lines changed: 2520 additions & 31 deletions

File tree

server/src/test/java/au/org/aodn/ogcapi/server/common/RestApiTest.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,25 @@ public void verifyCQLPropertyIntersectOperation() throws IOException {
478478

479479
assertEquals(0, Objects.requireNonNull(collections.getBody()).getCollections().size(), "hit none");
480480
}
481+
/**
482+
* People who provide funds for the data often store in credit, the free text search given the funder, in this test
483+
* ACEAS is the funder of d14f679c-41d0-442f-a080-aa1947cefd6d
484+
* @throws IOException - Not expected
485+
*/
486+
@Test
487+
public void verifyFunderCorrect() throws IOException {
488+
super.insertJsonToElasticRecordIndex(
489+
"d14f679c-41d0-442f-a080-aa1947cefd6d.json",
490+
"7709f541-fc0c-4318-b5b9-9053aa474e0e.json"
491+
);
492+
ResponseEntity<Collections> collections = testRestTemplate.getForEntity(getBasePath() + "/collections?q=ACEAS", Collections.class);
493+
assertEquals(1, Objects.requireNonNull(collections.getBody()).getCollections().size(), "hit 1, only one record");
481494

495+
assertEquals(
496+
"d14f679c-41d0-442f-a080-aa1947cefd6d",
497+
collections.getBody().getCollections().get(0).getId(),
498+
"UUID matches");
499+
}
482500
/**
483501
* Verify filter on attribute dataset_group works
484502
*

0 commit comments

Comments
 (0)