aboutsummaryrefslogtreecommitdiff
path: root/test/pleroma/web/o_auth
AgeCommit message (Collapse)Author
2022-03-06Merge branch 'fix_test_get_user_apps' into 'develop'Haelwenn
Fix test get_user_apps/1 See merge request pleroma/pleroma!3636
2022-02-25Copyright bump for 2022Sean King
2022-02-22Fix test get_user_apps/1Ilja
For some reason I had a test who suddenly failed, mix test test/pleroma/web/o_auth/app_test.exs:54. A user has a list of applications and this test adds them and then sees if the list it gets back is the same as the apps it added. When I ran mix test a day before I didn't have this problem and when I pushed code today in a different MR, the pipeline succeeded (see https://git.pleroma.social/ilja/pleroma/-/jobs/205827), yet locally it failed. So it seems the test can sometimes succeed and sometimes fail, which makes it untrustworthy. The failure I see is because the returned list is in reverse order. I assume that's not per sé wrong. You just want to know if the apps you added are actually there. I fixed the test by first ordering the lists before comparing. AFAICT (and as far as that's relevant) the test got introduced in commit cb2a072e6252b7c3f6473f7cfd1af5c0ec732d7b
2021-12-27Apps: add test for get_user_apps/1Alex Gleason
2021-03-24Return token's primary key with POST /oauth/tokenAlex Gleason
2021-01-26Convert tests to all use clear_config instead of Pleroma.Config.putMark Felder
2021-01-18Merge branch 'develop' into refactor/deactivated_user_fieldMark Felder
2021-01-18Merge branch 'develop' into refactor/approval_pending_user_fieldMark Felder
2021-01-15Remove toggle_confirmation; require explicit state changeMark Felder
Also cosmetic changes to make the code clearer
2021-01-15Change user.confirmation_pending field to user.is_confirmedMark Felder
2021-01-15Change user.deactivated field to user.is_activeMark Felder
2021-01-15Change user.approval_pending field to user.is_approvedMark Felder
2021-01-14Pbkdf2: Use it everywhere.Lain Soykaf
2021-01-13LintingLain Soykaf
2021-01-13Password: Replace Pbkdf2 with Password.lain
2021-01-13Bump Copyright to 2021Haelwenn (lanodan) Monnier
grep -rl '# Copyright © .* Pleroma' * | xargs sed -i 's;Copyright © .* Pleroma .*;Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>;'
2020-12-21Tests: Make as many tests as possible async.lain
In general, tests that match these criteria can be made async: - Doesn't use real Cachex. - Doesn't write to the Config / Application Environment. - Uses Mock. Using Mox is fine. - Uses the streamer.
2020-12-09Tweaks to OAuth entities expiration: changed default to 30 days, removed ↵Ivan Tashkinov
hardcoded values usage, fixed OAuthView (expires_in).
2020-11-30[#3112] Allowed revoking same-user token from any apps. Added tests.Ivan Tashkinov
2020-11-28OAuth form user remembering feature. Local MastoFE login / logout fixes.Ivan Tashkinov
2020-11-25Merge remote-tracking branch 'remotes/origin/develop' into auth-improvementsIvan Tashkinov
2020-11-25Session token setting on token exchange. Auth-related refactoring.Ivan Tashkinov
2020-11-23Use Jason instead of Poison in testsMark Felder
2020-10-15Fix warningsEgor Kislitsyn
2020-10-13tests consistencyAlexander Strizhakov