-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update existing REST mappings for conciseness * Move gateway HTTP proxy tests into package structure * Remove gw test for base gRPC protocol (depends on HTTP/2) * Update platform test and config helpers to handle multiple config files (platform + gw) * Add unit test config for the gateway to the test library * Add POST method support to the HTTP test client used for testing the gateway * Add some unit tests for gRPC-Web protocol in the gateway * Update existing REST mappings for conciseness * Add GW rest proxy test for platform-info and list-tenants * Add platform-info and list-tenants to REST API mapping * Include content type headers in REST proxy test * Add a test case for the REST API to create, search for and retrieve a FLOW * Remove un-used test code * Fix REST get-method validators for metadata API * Fix REST get-method API mapping for metadata API * Add tests for some error cases in the REST API * Make REST API proxy check for correct content type and accept headers, rather than just assuming JSON * Refactor RestApiTranslator - extract the body field using descriptors without an explicit third type argument * Remove embedded channel logic in core router for REST routes * Simplify REST API proxy builder - executor and channel params no longer needed * Do not error on missing content type in gRPC-Web proxy * Updates in RestApiTranslator * Update usage of RestApiTranslator for new constructors * Use HTTP/2 flow control in rest proxy builder * gRPC helper methods to encode / decode LPMs * Working version of REST API proxy and translator * Remove gateway dependency on gRPC implementation libraries * Use protobuf-style descriptor in rest API method class * Allow body = * in rest API field mapping * Read REST API mapping from proto files * Add download file methods into proto file for data service definition * Update shipped gateway configs to include REST mapping for the data service * Add implementation of file download methods in the data service API impl * Clean up one warning * Add some unit tests for file download * Fix a bug in the validation constants * Add validators for file download methods * Support single-segment wildcard in REST API matcher * Test fixes * Validator fix * Update content type checking to allow for downloads * Fix handling of content headers for GET requests * Include response body in REST API method class * Working HTTP download - needs cleaning up * Clean up LPM decoding * Clean up LPM decoding * Move data API test helpers to the test lib * Add a unit test for downloading a larger file * Handle misalignment between gRPC LPM and HTTP DATA frame in REST download streams * Extra assertions in REST download tests * Increase aggregation limit in HTTP test client for gateway tests * Handle trailers and EOS in rest API proxy for download streams * Do not use HTTP headers in route matching (just use method and URI) * Do not use HTTP headers in route matching (just use method and URI) * Flag to indicate which REST API methods are download endpoints * Handle content headers for download endpoints in the REST API proxy * Include content headers in unit tests for downloads * Fix check for download endpoints in RestApiMethod * Fix some warnings * Fix some warnings * Include gateway config when starting platform for end-to-end tests * Fix some test warnings
- Loading branch information
Martin Traverse
authored
Jun 13, 2023
1 parent
7053814
commit f3da052
Showing
50 changed files
with
1,987 additions
and
882 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
Oops, something went wrong.