-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests for the API #149
Add tests for the API #149
Conversation
eac869b
to
460489c
Compare
hi, @da2ce7 @WarmBeer this is ready to review. These are the tests I've added: test tracker_api::for_stats_resources::
should_allow_getting_tracker_statistics ... ok
should_not_allow_getting_tracker_statistics_for_unauthenticated_users ... ok
test tracker_api::for_torrent_resources::
should_allow_getting_a_torrent_info ... ok
should_allow_getting_torrents ... ok
should_allow_limiting_the_torrents_in_the_result ... ok
should_allow_the_torrents_result_pagination ... ok
should_not_allow_getting_a_torrent_info_for_unauthenticated_users ... ok
should_not_allow_getting_torrents_for_unauthenticated_users ... ok
test tracker_api::for_whitelisted_torrent_resources::
should_allow_reload_the_whitelist_from_the_database ... ok
should_allow_removing_a_torrent_from_the_whitelist ... ok
should_allow_whitelisting_a_torrent ... ok
should_allow_whitelisting_a_torrent_that_has_been_already_whitelisted ... ok
should_not_allow_removing_a_torrent_from_the_whitelist_for_unauthenticated_users ... ok
should_not_allow_whitelisting_a_torrent_for_unauthenticated_users ... ok
test tracker_api::for_key_resources::
should_allow_deleting_an_auth_key ... ok
should_allow_generating_a_new_auth_key ... ok
should_allow_reloading_keys ... ok
should_not_allow_deleting_an_auth_key_for_unauthenticated_users ... ok
should_not_allow_generating_a_new_auth_key_for_unauthenticated_users ... ok
should_not_allow_reloading_keys_for_unauthenticated_users ... ok |
460489c
to
11259e8
Compare
ACK 11259e8 |
@WarmBeer why do you need to expose the reload whitelist ( |
These commands are for reloading the states from the database. This is useful when an administrator wants to update the tracker whitelist using the database for example. |
Added some tests to the API before changing the web framework to Axum.