You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can reuse the tests in test_integration.py to test the Rust autoendpoint server. However, switching them off of Python autoendpoint means that we would no longer be testing autopush-rs against the autoendpoint version we use in production (at least until autoendpoint-rs goes into production). We may want to duplicate/parameterize the tests.
The text was updated successfully, but these errors were encountered:
* 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
We can reuse the tests in
test_integration.py
to test the Rust autoendpoint server. However, switching them off of Python autoendpoint means that we would no longer be testing autopush-rs against the autoendpoint version we use in production (at least until autoendpoint-rs goes into production). We may want to duplicate/parameterize the tests.The text was updated successfully, but these errors were encountered: