-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Use autoendpoint-rs in integration tests (#205)
* Fix importing SkipTest from a private module * Copy the integration tests and remove unneeded tests These integration tests will be modified to test the Rust autoendpoint code. Python autopush code will not be tested in this repo anymore. Unneeded tests include: - Legacy message ID/sort key tests - Table rotation - The "cross" tests which connected to both Rust and Python connection servers in the same test. Some more changes have been made, mostly around removing dependencies on the Python autopush code and removing table rotation mechanisms. For example, we only make one message table instead of one for this month and one for last month. * Simplify the integration test setup code * Replace the Python endpoint server with Rust in the new integration test * Avoid extra newline between log entries * Respond with 201 on direct deliveries instead of 200 * Remove some unnecessary global variables * Replace "endpoint_url" setting with "scheme" (generate the URL instead) Also removed the unused `debug` setting. * Use a timestamp in milliseconds for the message ID and sort key * Apply a fix from Python autopush tests after a Stored HTTP code change * Fix bottle routes getting added to the default bottle instance This would cause the wrong routes to be used for each test, eventually causing an assertion error when checking the megaphone token. * Set cache-control for HTTP 410 errors This is expected by an integration test * Show debug logs in integration tests * Fix repad_base64 function and add tests Sometimes it would add three padding characters, while base64 has at most two padding characters. * Fix JWT validation by decoding the base64 public key before using it * Don't pass on encryption headers if there is no data * Don't set notification encryption headers at all if there's no data * Fix flake8 formatting issues Closes #168
- Loading branch information
1 parent
b4bb163
commit 31d2d19
Showing
12 changed files
with
1,224 additions
and
45 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
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.