aboutsummaryrefslogtreecommitdiff
path: root/test/support
AgeCommit message (Collapse)Author
2021-10-06CI: Bump lint stage to elixir-1.12Haelwenn (lanodan) Monnier
Elixir 1.12 changed formatting rules, this allows to avoid having to rollback to run `mix format`
2021-08-09Merge branch 'poll-notification' into 'develop'Haelwenn
MastodonAPI: Support poll notification See merge request pleroma/pleroma!3484
2021-08-06Add tests for setting `:instance, :quarantined_instances`Ilja
No test was done for quarantined instances yet. I added a factory for followers_only notes and checked * That no followers only post is send when the target server is quarantined * That a followers only post is send when the target server is not quarantined
2021-07-18Merge remote-tracking branch 'pleroma/develop' into poll-notification-fixesAlex Gleason
2021-07-18Poll notification: trigger PollWorker through common_pipelineAlex Gleason
2021-07-17MastodonAPI: Support poll notificationAlex Gleason
2021-06-07MRF: create MRF.Policy behaviour separate from MRF moduleAlex Gleason
Speeds up recompilation by reducing compile-time deps
2021-06-04Fix warning for misuse of clear_config/2Mark Felder
The old warning message was producing an improperly formatted suggestion.
2021-06-03factory: Fix article_factoryHaelwenn (lanodan) Monnier
2021-03-25removeing corresponding add activityAlexander Strizhakov
2021-03-25refetch user on incoming add/remove activityAlexander Strizhakov
if featured_address is nil
2021-03-25validator renaming & add validation for targetAlexander Strizhakov
2021-03-25Let pins federateAlexander Strizhakov
- save object ids on pin, instead of activity ids - pins federation - removed pinned_activities field from the users table - activityPub endpoint for user pins - pulling remote users pins
2021-03-22Copy emoji in the subject from parent postrinpatch
Sometimes people put emoji in the subject, which results in the subject looking broken if someone replies to it from a server that does not have the said emoji under the same shortcode. This patch solves the problem by extending the emoji set available in the summary to that of the parent post.
2021-03-19respect content-type header in finger requestAlexander Strizhakov
2021-03-05Update OpenApiSpex dependencyEgor Kislitsyn
2021-02-21Video: Handle peertube videos only stashing attachments in x-mpegURLHaelwenn (lanodan) Monnier
Closes: https://git.pleroma.social/pleroma/pleroma/-/issues/2535
2021-02-03Merge branch 'develop' into 'fix/2412-filters'feld
# Conflicts: # CHANGELOG.md
2021-02-01list timeline filtration by paramsAlexander Strizhakov
2021-01-26support for expires_in/expires_at in filtersAlexander Strizhakov
2021-01-21Merge branch 'test-cases-mox-setup' into 'develop'lain
Mox mode setup tweak; refactoring See merge request pleroma/pleroma!3263
2021-01-20Merge branch 'deprecate-public_endpoint' into 'develop'feld
Deprecate Uploaders.S3, :public_endpoint See merge request pleroma/pleroma!3251
2021-01-19Mox mode setup tweak; refactoring.Ivan Tashkinov
2021-01-16[#3251] Fixed wrong test-env config setting for [Pleroma.Upload]. ↵Ivan Tashkinov
Refactoring. Added warning to `clear_config/_` to minimize such issues in future.
2021-01-14Hack to fix tests not passing. Unclear why the filters are being set to nil.Mark Felder
Both of these changes are needed or it doesn't work.
2021-01-14Pbkdf2: Use it everywhere.Lain 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/>;'
2021-01-05Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into ↵lain
object-normalize-refactor
2021-01-04SideEffects.DeleteTest: asyncify.lain
Replace Mock with Mox, mock out Logger.
2021-01-04Object: Rework how Object.normalize workslain
Now it defaults to not fetching, and the option is named.
2020-12-28Revert "Merge branch 'features/hashtag-column' into 'develop'"Haelwenn
This reverts merge request !2824
2020-12-28Merge branch 'features/hashtag-column' into 'develop'Haelwenn
Insert text representation of hashtags into object["hashtags"] See merge request pleroma/pleroma!2824
2020-12-22Insert text representation of hashtags into object["hashtags"]Haelwenn (lanodan) Monnier
Includes a new mix task: pleroma.database fill_old_hashtags
2020-12-21Tests: Stub the pipeline in all tests.lain
Restores the old un-moxed behavior.
2020-12-21Pipeline test: Switch from Mock to Mox.lain
Speeds up the test and makes it possible to run async.
2020-12-21Tests: Add a helper method to reduce sleeping times in test.lain
This will 'time travel', i.e. change the inserted_at and update_at fields of the object in question. This is used to backdate things were we used sleeping before to ensure time differences.
2020-12-21Caching: Add caching behavior, add null implementation.lain
2020-12-18Tests: Use NullCache for async tests.lain
Caching can't work in async tests, so for them it is mocked to a null cache that is always empty. Synchronous tests are stubbed with the real Cachex, which is emptied after every test.
2020-12-18Tests: Reset all cachex caches between synchronous testslain
Don't bother in the async case, it doesn't make sense there.
2020-11-23Use Jason instead of Poison in testsMark Felder
2020-11-19fix for forwarded reportsAlexander Strizhakov
2020-11-12Fix object spoofing vulnerability in attachmentsrinpatch
Validate the content-type of the response when fetching an object, according to https://www.w3.org/TR/activitypub/#x3-2-retrieving-objects. content-type headers had to be added to many mocks in order to support this, some of this was done with a regex. While I did go over the resulting files to check I didn't modify anything unrelated, there is a possibility I missed something. Closes pleroma#1948
2020-10-30Merge remote-tracking branch 'origin/develop' into feature/account-exportEgor Kislitsyn
2020-10-28Merge remote-tracking branch 'remotes/origin/develop' into ↵Ivan Tashkinov
ostatus-controller-no-auth-check-on-non-federating-instances # Conflicts: # CHANGELOG.md
2020-10-27Merge branch 'develop' into feature/account-exportMark Felder
2020-10-20Merge remote-tracking branch 'origin/develop' into feature/account-exportEgor Kislitsyn
2020-10-17Merge remote-tracking branch 'remotes/origin/develop' into chore/elixir-1.11Ivan Tashkinov
2020-10-17Merge remote-tracking branch 'remotes/origin/develop' into ↵Ivan Tashkinov
ostatus-controller-no-auth-check-on-non-federating-instances # Conflicts: # lib/pleroma/web/feed/user_controller.ex # lib/pleroma/web/o_status/o_status_controller.ex # lib/pleroma/web/router.ex # lib/pleroma/web/static_fe/static_fe_controller.ex
2020-10-14Merge branch 'develop' into feature/account-exportMark Felder