-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix #208 * added code to group entities by servicepath when multiple notifications arrive at once (#208) * add tests and integration tests (so we have also test with orion triggering such case) * fix notification tests to rely only on api calls (remove call to translator) * changed error code to 400 when due to invalid request * upgraded python to 3.8.5 * fix integration test to use new docker image with entrypoint (#362) * minor fixes * remove build (we can assume a build is available) * remove volumes at the end of the test * increase timesleep for one test * improve code * fix #347 * fix wrong delete logic not keeping into account correctly servicePath!=None * add test for #347 bug * add test for selective service path delete * add drop all also to single entity delete if table is empty * fix tests to correctly delete entities with service paths * dont drop table when deleting entities, use a separate endpoint for that. * factor out common http code from delete module. * make delete api work w/ any translator. * keep timescale version in env var as done for other services. * temp solution to automate delete tests for timescale, ditch when timescale support is complete. * use droptable query param to drop entity table instead of separate endpoint. Co-authored-by: c0c0n3 <andrea.falconi@gmail.com>
- Loading branch information
Showing
16 changed files
with
778 additions
and
77 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
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,15 @@ | ||
from flask import request | ||
|
||
|
||
def fiware_s() -> str: | ||
""" | ||
:return: The content of the FiWare service header if any. | ||
""" | ||
return request.headers.get('fiware-service', None) | ||
|
||
|
||
def fiware_sp() -> str: | ||
""" | ||
:return: The content of the FiWare service path header if any. | ||
""" | ||
return request.headers.get('fiware-servicepath', None) |
Oops, something went wrong.