Commit graph

6,576 commits

Author SHA1 Message Date
Nicole Mikołajczyk
0b8b98f979 Add a failing test
Signed-off-by: Nicole Mikołajczyk <git@mkljczk.pl>
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
2025-10-10 05:36:46 +02:00
nicole mikołajczyk
abdb511992 Fix typo in test name
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
2025-09-07 22:41:25 +02:00
Lain Soykaf
5503247b15 PublisherTest: Linting. 2025-09-05 15:17:17 +04:00
Lain Soykaf
b023e1591c PublisherTest: Mock -> Mox 2025-09-05 15:04:33 +04:00
Lain Soykaf
3de250da23 PublisherTest: Use mox instead of mock. 2025-09-05 14:18:12 +04:00
Lain Soykaf
71785d7ff7 PublisherTest: Add test for signature replacement 2025-09-05 09:52:12 +04:00
Lain Soykaf
5bf1a384c7 Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into pleroma-from/upstream-develop/tusooa/report-anon 2025-09-04 18:10:41 +04:00
feld
14caaa8f23 Merge branch 'moderation-log-fix-3385' into 'develop'
Fix ModerationLog FunctionClauseError for unknown actions

Closes #3385

See merge request pleroma/pleroma!4384
2025-08-27 10:43:35 +00:00
lain
2980788c8e Merge branch 'admin-api-revocation' into 'develop'
Admin api revocation fix

Closes #3390

See merge request pleroma/pleroma!4382
2025-08-27 10:33:36 +00:00
lain
49376e6b75 Merge branch 'repost-repeat-filtering-3391' into 'develop'
Add only_reblogs parameter to account statuses API

Closes #3391

See merge request pleroma/pleroma!4385
2025-08-27 10:27:25 +00:00
Lain Soykaf
4ab96bbb9f EmojiPackControllerDownloadZipTest: Use a unique folder for each test. 2025-08-09 11:11:44 +04:00
Lain Soykaf
36b3aa0a97 Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into emoji-pack-upload 2025-08-08 17:17:29 +04:00
Lain Soykaf
4eeb9c1f2d EmojiPackControllerDownloadZipTest: Add tests for empty pack name and failing creation. 2025-08-08 15:43:58 +04:00
Lain Soykaf
897c1ced5f EmojiPackControllerDownloadZipTest: Add test. 2025-08-07 13:47:54 +04:00
Mark Felder
c1836c9821 Fix test that relied on previous fake hashtag behavior
This test is normally skipped on MacOS due to weird unicode behavior
2025-08-02 09:53:58 -07:00
Mark Felder
f53538b430 Merge remote-tracking branch 'origin/develop' into hashtag-search 2025-08-01 17:15:42 -07:00
feld
34efff85da Merge branch 'gun' into 'develop'
Update Plug/Cowboy/Gun

See merge request pleroma/pleroma!4393
2025-08-02 00:00:32 +00:00
feld
bb78fb5f65 Merge branch 'deactivated-404-inbox' into 'develop'
Return 404 when an activity is sent to a deactivated user's /inbox

Closes #3370

See merge request pleroma/pleroma!4371
2025-08-01 21:26:12 +00:00
Mark Felder
7b8d6eca65 Remove deprecated "use Plug.Test" 2025-08-01 13:57:06 -07:00
feld
5f93e85e0b Merge branch 'tesla-update' into 'develop'
Update Tesla to 1.15.3

See merge request pleroma/pleroma!4391
2025-08-01 20:03:27 +00:00
Mark Felder
3c36bcfaa6 Remove deprecated "use Tesla" macro usage 2025-08-01 12:19:41 -07:00
Lain Soykaf
bde52824d3 Fix ModerationLog FunctionClauseError for unknown actions
Add catchall clause to handle log entries with unknown actions or
malformed data. Prevents HTTP 500 errors in admin moderation log view.

Fixes #3385
2025-08-01 10:39:39 -07:00
Mark Felder
19f32f7b09 Strip hashtag prefixes
Users may actually type in a literal hashtag into the search, so this will ensure it still returns results.
2025-07-31 18:17:59 -07:00
Mark Felder
b1acc9281a Use ranking to improve order of results 2025-07-31 18:02:33 -07:00
Mark Felder
93c144e397 Improve hashtag search with multi word queries 2025-07-31 17:46:32 -07:00
Mark Felder
26fe604942 Hashtag searches now return real results from the database 2025-07-31 17:35:11 -07:00
Mark Felder
44e56ed756 Switch to example domain name 2025-07-30 18:26:56 -07:00
Mark Felder
4e6f0af4ce Better assertion logic 2025-07-30 17:32:49 -07:00
Mark Felder
ab4edf7933 Add proper ReverseProxy test cases 2025-07-30 17:20:42 -07:00
Mark Felder
c49dece0dd Update test to also cover query encoding 2025-07-30 15:13:43 -07:00
Mark Felder
4217ababfc Improve design so existing tests do not break 2025-07-30 13:17:50 -07:00
Mark Felder
1d8eafc0d2 Add failing test case for URL encoding issue 2025-07-30 12:20:28 -07:00
feld
ece089abab Merge branch 'improved-reachability' into 'develop'
Reachability refactor

See merge request pleroma/pleroma!4366
2025-07-29 21:13:48 +00:00
Lain Soykaf
991c5e0c44 Add ActivityPub test for only_reblogs filtering 2025-07-23 14:02:49 +04:00
Lain Soykaf
331f21111c Add only_reblogs parameter to account statuses API
Implement filtering to show only reblogs/reposts in user status queries.
This complements the existing exclude_reblogs parameter. Supports both
boolean and "1" string values for consistency with other API parameters.
2025-07-23 13:30:25 +04:00
Mark Felder
28b69f5c04 Reset Emoji cache between tests
This fixes intermittent test failures
2025-07-22 15:21:20 -07:00
Mark Felder
113261146f Fix account endorsements test
Random failures were caused by the results sometimes being returned out of order.
2025-07-22 15:21:20 -07:00
Mark Felder
b54b19a0f4 Fix test for mix task
Missing assert_receive which would cause the test to randomly fail
2025-07-22 15:21:20 -07:00
Lain Soykaf
28a2e3650d AdminAPI: Add (failing) test for admin self-revocation 2025-07-20 21:32:57 +04:00
Mark Felder
17987e3990 Enforce an exact domain match for WebFinger resolution
The regex was not being terminated with an $
2025-07-03 12:08:36 -07:00
Mark Felder
736686b4e2 Add specific tests for Webfinger aliases / also_known_as
Also reorganize similar tests to be grouped together
2025-07-03 11:19:52 -07:00
Mark Felder
122ad4603a Use correct Endpoint host and WebFinger domains in tests 2025-07-03 10:56:07 -07:00
Mark Felder
59844d0202 Rename Instance.delete_users_and_activities/1 to Instance.delete/1 2025-06-28 13:37:06 -07:00
Mark Felder
df0880d8d1 Add Instances.delete_all_unreachable/0 2025-06-28 13:23:37 -07:00
Mark Felder
29f7607910 Add Instances.check_all_unreachable/0 and Instance.check_unreachable/1 2025-06-28 12:51:10 -07:00
Mark Felder
2267ace106 Ensure ReachabilityWorker jobs can be scheduled without needing awareness of the phase design 2025-06-27 18:12:18 -07:00
Mark Felder
ff5f88aae3 Instance.set_reachable/1 should delete any existing ReachabilityWorker jobs for that instance 2025-06-27 18:07:46 -07:00
Mark Felder
77dca7c3e5 Refactor ReachabilityWorker to use a 5-phase reachability testing approach
It will check reachability for an instance deemed unreachable at the following intervals:

4 attempts, once a minute
4 attempts, once every 15 minutes
4 attempts, once every 60 minutes
4 attempts, once every 8 hours
4 attempts, once every 24 hours

This should be effective and respectful of the resources of instances on the fediverse.

We have the Oban Pruner plugin enabled to keep the Oban Jobs table from growing indefinitely. It prunes every 15 minutes, but this will interfere with our ability to enforce uniqueness on the ReachabilityWorker jobs for a time period longer than 15 minutes. The solution is to exclude the ReachabilityWorker from the pruning operation and instead schedule a custom job that will prune the table for us once a day. The ReachabilityPruner cron task will clean up the history of the ReachabilityWorker jobs older than 6 days.
2025-06-27 17:00:02 -07:00
Mark Felder
e58ecd3234 Merge remote-tracking branch 'origin/develop' into improved-reachability 2025-06-27 15:59:46 -07:00
feld
cf6587d344 Merge branch 'delete-instance-improvement' into 'develop'
Queue individual jobs for each user that needs to be deleted when deleting an instance.

See merge request pleroma/pleroma!4377
2025-06-27 20:25:41 +00:00