generated from GenomicDataInfrastructure/oss-project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle correctly missing beacon access token and empty beacon re…
…sponse We will skip beacon query in the following Keycloak 4xx status: - 400 = invalid/missing keycloak access token - 401 = unauthorized access - 403 = Forbidden access Even when access to beacon is valid, the beacon can retrieve empty response. In that situation, we must retrieve directly empty results and skip CKAN query.
- Loading branch information
1 parent
7b5a26a
commit 7d41534
Showing
7 changed files
with
134 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"priority": 2, | ||
"request": { | ||
"method": "POST", | ||
"url": "/v2.0.0/individuals" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"priority": 1, | ||
"request": { | ||
"method": "POST", | ||
"url": "/v2.0.0/individuals", | ||
"bodyPatterns": [ | ||
{ | ||
"matchesJsonPath": "$.query.filters[?(@.id == 'DUMMY:FILTER')]" | ||
} | ||
] | ||
}, | ||
"response": { | ||
"status": 200, | ||
"headers": { | ||
"Content-Type": "application/json" | ||
}, | ||
"jsonBody": { | ||
"meta": { | ||
"apiVersion": "v2.0.0", | ||
"beaconId": "es.elixir.bsc.beacon-network", | ||
"receivedRequestSummary": { | ||
"apiVersion": "2.0", | ||
"filters": [ | ||
"DUMMY:FILTER" | ||
], | ||
"pagination": { | ||
"limit": 0, | ||
"skip": 0 | ||
}, | ||
"requestedGranularity": "count", | ||
"requestedSchemas": [], | ||
"testMode": false | ||
}, | ||
"returnedGranularity": "count" | ||
}, | ||
"responseSummary": { | ||
"exists": false, | ||
"numTotalResults": 0 | ||
}, | ||
"response": { | ||
"resultSets": [] | ||
} | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
src/test/resources/mappings/individuals_no_results.json.license
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SPDX-FileCopyrightText: 2024 PNED G.I.E. | ||
|
||
SPDX-License-Identifier: Apache-2.0 |