summaryrefslogtreecommitdiff
path: root/config/test.exs
AgeCommit message (Collapse)Author
2025-03-10Merge branch 'assorted-test-fixes' into secfixLain Soykaf
2025-03-01Config: Deactivate client api by defaultLain Soykaf
2025-02-25Mogrify/Mogrifun: AsyncifyLain Soykaf
2025-02-25AnonymizeFilename: AsyncifyLain Soykaf
2025-02-23UserRelationshipTest: Don't use Mock.Lain Soykaf
2024-07-29Merge branch 'oban/backup' into 'develop'feld
Backups Refactoring See merge request pleroma/pleroma!4158
2024-07-25Merge remote-tracking branch 'origin/develop' into oban/backupMark Felder
2024-07-25Extract validate_signature/2 from the HTTPSignaturePlugMark Felder
This logic only exists in the Plug, so attempting to validate the signature by calling the library function HTTPSignature.validate_conn/2 directly will never work because we do not attempt to construct the (request-target) and @request-target headers with both the commonly misinterpreted and correct implementation of this field. Therefore all attempts to validate a signature from an Oban Job will fail.
2024-07-23Refactor backups to be fully controlled by ObanMark Felder
2024-07-23Fix dialyzer errorMark Felder
lib/pleroma/application.ex:1:pattern_match The pattern can never match the type true.
2024-06-24RichMedia: test that activity is streamed outMark Felder
2024-06-19RichMedia backfill processing through ObanMark Felder
2024-06-18Disable Ecto logging in testsMark Felder
The debug logs are very noisy and can be enabled during analysis of a specific error believed to be SQL-related
2024-06-12FormattingMark Felder
2024-06-12Tests: Don't spawn processes in tests.Lain Soykaf
2024-05-28HTTPSignaturePlugTest: Rewrite to use mox.Lain Soykaf
2024-05-27HTTPSecurityPlug: Fix testsLain Soykaf
2024-05-27HttpSecurityPlug: Don't allow unsafe-eval by defaultLain Soykaf
2024-05-27IPFSTest: Fix configuration mockingLain Soykaf
2024-05-07Increase the :max_body for Rich Media to 5MBMark Felder
Websites are increasingly getting more bloated with tricks like inlining content (e.g., CNN.com) which puts pages at or above 5MB. This value may still be too low.
2024-05-07RichMedia refactorMark Felder
Rich Media parsing was previously handled on-demand with a 2 second HTTP request timeout and retained only in Cachex. Every time a Pleroma instance is restarted it will have to request and parse the data for each status with a URL detected. When fetching a batch of statuses they were processed in parallel to attempt to keep the maximum latency at 2 seconds, but often resulted in a timeline appearing to hang during loading due to a URL that could not be successfully reached. URLs which had images links that expire (Amazon AWS) were parsed and inserted with a TTL to ensure the image link would not break. Rich Media data is now cached in the database and fetched asynchronously. Cachex is used as a read-through cache. When the data becomes available we stream an update to the clients. If the result is returned quickly the experience is almost seamless. Activities were already processed for their Rich Media data during ingestion to warm the cache, so users should not normally encounter the asynchronous loading of the Rich Media data. Implementation notes: - The async worker is a Task with a globally unique process name to prevent duplicate processing of the same URL - The Task will attempt to fetch the data 3 times with increasing sleep time between attempts - The HTTP request obeys the default HTTP request timeout value instead of 2 seconds - URLs that cannot be successfully parsed due to an unexpected error receives a negative cache entry for 15 minutes - URLs that fail with an expected error will receive a negative cache with no TTL - Activities that have no detected URLs insert a nil value in the Cachex :scrubber_cache so we do not repeat parsing the object content with Floki every time the activity is rendered - Expiring image URLs are handled with an Oban job - There is no automatic cleanup of the Rich Media data in the database, but it is safe to delete at any time - The post draft/preview feature makes the URL processing synchronous so the rendered post preview will have an accurate rendering Overall performance of timelines and creating new posts which contain URLs is greatly improved.
2024-03-19Tests: Explicitly set db pool size and max cases to the same value.Lain Soykaf
2024-01-22Use config to control inclusion of test emojiMark Felder
2024-01-22Use config to control Uploader callback timeoutMark Felder
2024-01-20Use config to control starting all HTTP pools in test envMark Felder
2024-01-20Use config to control streamer registryMark Felder
2024-01-20Use config to control background migratorsMark Felder
2024-01-20Use config to control loading of custom modulesMark Felder
2024-01-20Use config to control max_restartsMark Felder
2023-12-20Fix invalid string comparison for OTP versions and replace with configMark Felder
Old way was wrong for multiple reasons. If we do this as a config value it fixes :slave.start/3 being picked up as a compile warning on OTP26. Also if we want to do any real clustering we'll need something like this to support OTP25 and older.
2023-12-20Fix more Logger warn -> warningMark Felder
2023-12-12Revert "EmailTest: use config mock"Lain Soykaf
This reverts commit dca41cc4a37999a6971b70ef5e0996e528b79bf5.
2023-12-12EmailTest: use config mockLain Soykaf
2023-12-12Tests: More test fixesLain Soykaf
2023-12-12RichMediaTest: Use mocked configLain Soykaf
2023-12-12ScheduledActivity: Use config mockingLain Soykaf
2023-12-11S3 Test: Remove global state dependenciesLain Soykaf
2023-12-10Backup: Fix configLain Soykaf
2023-12-10Tests: Fix all the tests.Lain Soykaf
2023-12-10Backup Tests: Split out async tests, use mox.Lain Soykaf
2023-12-10Config/Test: Don't start promex during testing.Lain Soykaf
2023-11-12B Getting: Add default implementation, delegate, prepare test support.Lain Soykaf
2022-12-20Merge remote-tracking branch 'upstream/develop' into meilisearchEkaterina Vaartis
2022-12-15Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into update-depsLain Soykaf
2022-11-11fix envvarlain
2022-11-11allow custom db portIván Raskovsky
2022-11-03Update to Phoenix 1.6 and chase dependenciesMark Felder
Also bump minimum Elixir to 1.11
2022-11-03expanding WebFingerAlexander Strizhakov
2022-10-10Rename Activity.Search to Search.DatabaseSearchEkaterina Vaartis
2022-10-10Add tests for local post indexing for meilisearchEkaterina Vaartis