feat(generic_sender): add url-json transport to generic_sender
Description
feat(generic_sender): add url-json transport to generic_sender
- Created new UrlJsonTransport class and corresponding destination as an extension of existing UrlTransport.
- This new class only sends a single JSON file instead of archiving the entire generated directory.
- For now this class can only be used with generic_json_gen send script.
How to test
- generate data with
generic_json_gen
gen script - if you have access to slave script playground machine (
147.251.255.67
), you can start and use existing test server script withpython3 /opt/test/test-server.py
- run
generic_json_gen
send script as./generic_json_gen <facility-name> http://147.251.255.67:8080 url-json generic_json_gen
- If you used the existing
test-server.py
, then the server responds with some basic info and a number representing size in bytes of the received json file. It also stores the json file in the script's directory
Author's checklist
-
I have followed the contribution guidelines -
This MR has been tested or does not change functionality -
I have added relevant merge request dependencies (if this MR has any) -
I have added the correct labels -
I have assigned reviewers (if any are relevant) -
I have edited the documentation (if the changes require it) or I have noted the need for the change if I do not have access to the documentation -
I have marked all introduced BREAKING CHANGES or necessary DEPLOYMENT NOTES in the commit message(s)
Reviewer's checklist
-
This MR has been tested or does not change functionality -
This MR has correct commit message format
Related issues
Closes STR-1469