Skip to content

Commit

Permalink
add searchparameter to docker for integration testing
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKonar committed Oct 30, 2024
1 parent 3d2f965 commit e9d83c6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ setup: requirements.txt ## Install required packages
test: setup ## Run unit test
$(PYTEST_COMMAND) $(PYTEST_ARGS) test/unit
integration: setup ## Run integration test
docker run --name blaze --rm -d -e JAVA_TOOL_OPTIONS=-Xmx2g -p 8080:8080 samply/blaze:latest
docker run --name blaze --rm -d -e JAVA_TOOL_OPTIONS=-Xmx2g -e DB_SEARCH_PARAM_BUNDLE=/app/searchParamBundle.json -v ./searchParamBundle.json:/app/searchParamBundle.json -p 8080:8080 samply/blaze:latest
.github/scripts/wait-for-url.sh http://localhost:8080/health
$(PYTEST_COMMAND) $(PYTEST_ARGS) test/service
docker stop blaze
Expand Down
35 changes: 35 additions & 0 deletions SearchParamBundle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"entry": [
{
"request": {
"method": "POST",
"url": "SearchParameter"
},
"resource": {
"resourceType": "SearchParameter",
"id": "ExtensionMemberEntitySearch",
"url": "https://fhir.bbmri-eric.eu/fhir/SearchParameter/GroupMember",
"base": [
"Group"
],
"target": [
"Specimen",
"Group",
"Organization"
],
"chain": [
"*"
],
"name": "groupMember",
"description": "Search parameter for searching Group by provided members via extension",
"status": "active",
"code": "groupMember",
"type": "reference",
"expression": "Group.extension('http://hl7.org/fhir/5.0/StructureDefinition/extension-Group.member.entity').value"
}

}
],
"type": "transaction",
"resourceType": "Bundle"
}

0 comments on commit e9d83c6

Please sign in to comment.