-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #171 from teamclairvoyant/REST-45-RB
[REST-45] Added code for supporting compression in response body
- Loading branch information
Showing
17 changed files
with
336 additions
and
60 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
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
Binary file added
BIN
+245 Bytes
src/it/resources/mock_data/response_body/__files/sample_gzip_csv_response_body.gz
Binary file not shown.
26 changes: 26 additions & 0 deletions
26
src/it/resources/mock_data/response_body/expected_gzip_csv_response.json
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,26 @@ | ||
[ | ||
{ | ||
"Product line": "Aparatos de cuidado personal", | ||
"Seller": "Amazon.es", | ||
"Tracking ID": "eselmundo-21", | ||
"Date shipped": "October 30, 2021", | ||
"Price": 41.24, | ||
"Referral fee rate": "8.00%", | ||
"Quantity": 1, | ||
"Revenue": 41.24, | ||
"Earnings": 3.3, | ||
"Sub Tag": "-" | ||
}, | ||
{ | ||
"Product line": "Aparatos & cuidado personal", | ||
"Seller": "Amazon.es", | ||
"Tracking ID": "eselmundo-21", | ||
"Date shipped": "October 30, 2021", | ||
"Price": 82.3, | ||
"Referral fee rate": "8.00%", | ||
"Quantity": 1, | ||
"Revenue": 82.3, | ||
"Earnings": 4.5, | ||
"Sub Tag": "-" | ||
} | ||
] |
10 changes: 10 additions & 0 deletions
10
...ources/mock_data/response_body/mappings/mocked_gzip_csv_response_dataframe_converter.json
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,10 @@ | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"url": "/gzip-csv-response-converter" | ||
}, | ||
"response": { | ||
"status": 200, | ||
"bodyFileName": "sample_gzip_csv_response_body.gz" | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...r_context/checkpoints/response_body/checkpoint_gzip_csv_response_dataframe_converter.conf
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,25 @@ | ||
name = "checkpoint_gzip_csv_response_dataframe_converter" | ||
|
||
data = { | ||
data-request = { | ||
url = "http://localhost:8080/gzip-csv-response-converter" | ||
} | ||
|
||
data-response = { | ||
body = { | ||
type = "Text" | ||
text-format = { | ||
type = "CSVTextFormat" | ||
} | ||
compression = "GZIP" | ||
} | ||
|
||
persistence = { | ||
type = "LocalFileSystem" | ||
file-format = { | ||
type = "ParquetFileFormat" | ||
} | ||
file-path = "/tmp/response_body" | ||
} | ||
} | ||
} |
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
Oops, something went wrong.