discourse/spec/components
Régis Hanol 664e90bd17 FIX: ensure local images use local CDN when uploads are stored on S3
When the S3 store was enabled, we were only applying the S3 CDN.
So all images stored locally, like the emojis, were never put on the local CDN.

Fixed a bunch of CookedPostProcessor test by adding a call to 'optimize_urls'
in order to get final URLs.

I also removed the unnecessary PrettyText.add_s3_cdn method since this is already
handled in the CookedPostProcessor.
2019-02-20 19:24:38 +01:00
..
active_record/connection_adapters DEV: Fix heisentest. 2019-02-19 08:21:51 +08:00
auth Fix rubocop. 2019-01-22 18:37:55 +08:00
common_passwords Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
concern FIX: ignore and log bad json values for custom fields 2018-09-13 14:26:30 +05:30
email FIX: PostActionCreator was not checking the guardian properly 2019-01-31 14:48:42 -05:00
file_store FIX: Remove double quotes from etag value in API response 2019-02-08 14:31:19 +05:30
freedom_patches FIX: async reload of locales could result in missing translations 2018-10-01 17:14:36 +02:00
guardian SECURITY: Users can pick non-avatar uploads. 2018-12-18 13:38:25 +08:00
highlight_js Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
import Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
middleware FIX: error in response body to blocked crawlers, showing 500 Internal Server Error with status of 403 2018-09-14 15:40:20 -04:00
migration FEATURE: Use amazon s3 inventory to manage upload stats (#6867) 2019-02-01 10:10:48 +05:30
onebox/engine SECURITY: correct local onebox category checks 2018-02-14 10:40:46 +11:00
plugin FIX: moment_js locale files provided by plugins were ignored 2019-02-19 15:28:47 +01:00
rate_limiter Add specs for RateLimiter::LimitExceeded#description. 2018-06-19 07:48:03 +08:00
scheduler dev, give spec a bit more time waiting on timeout 2018-11-19 16:21:39 +11:00
site_settings DEV: Restore textarea type for site settings 2019-02-04 15:41:58 -05:00
stylesheet FIX: Fix safe mode regression 2019-01-25 17:00:30 +00:00
svg_sprite FEATURE: Calculate sprite-sheet based on currently active themes (#6973) 2019-02-06 15:51:23 +00:00
theme_store DEV: Correct spec for theme export change 2019-01-31 17:52:03 +00:00
validators FIX: use ordered_posts for last post check, not the posts relation 2019-01-18 13:18:40 +11:00
wizard FIX: Use CDN for logos and icons. (#6698) 2018-12-19 10:20:48 +01:00
admin_confirmation_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
admin_user_index_query_spec.rb Improve specs to assert for the right record instead of just a count. 2018-05-17 08:47:24 +08:00
archetype_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
avatar_lookup_spec.rb UX: show full name on /latest page 2018-08-23 14:41:06 +05:30
cache_spec.rb dashboard next: caching, mobile support and new charts 2018-05-03 15:41:41 +02:00
category_badge_spec.rb SECURITY: category badges should HTML escape names 2018-06-28 18:15:07 +10:00
composer_messages_finder_spec.rb Remove unused variable. 2018-10-04 13:21:37 +08:00
content_buffer_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
cooked_post_processor_spec.rb FIX: ensure local images use local CDN when uploads are stored on S3 2019-02-20 19:24:38 +01:00
crawler_detection_spec.rb FIX: cubot android devices were detected as crawlers 2018-06-21 10:56:46 +10:00
current_user_spec.rb FEATURE: per client user tokens 2017-02-07 09:22:16 -05:00
directory_helper_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
discourse_diff_spec.rb correct spec regression 2018-01-30 08:54:37 +11:00
discourse_event_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
discourse_hub_spec.rb fix failing spec when HUB_BASE_URL is present 2018-10-15 15:06:02 -04:00
discourse_i18n_spec.rb FIX: async reload of locales could result in missing translations 2018-10-01 17:14:36 +02:00
discourse_plugin_registry_spec.rb REFACTOR: Serve auth provider information in the site serializer. 2018-08-06 09:25:48 +01:00
discourse_plugin_spec.rb More randomly failing specs fixes. 2016-09-05 19:33:03 +08:00
discourse_redis_spec.rb FIX: Fallback Redis by checking status on master instead of slave. 2019-01-22 12:38:12 +08:00
discourse_spec.rb FIX: Clear anon cache when clearing recently readonly. 2019-01-22 09:53:04 +08:00
discourse_tagging_spec.rb FIX: Can't clean a tag if the given string is frozen. 2018-10-15 14:48:45 +08:00
discourse_updates_spec.rb REFACTOR: Avoid duplicated logic on server and client. 2017-11-21 17:10:04 +08:00
distributed_memoizer_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
distributed_mutex_spec.rb DEV: Validity of distributed mutex configurable once per instance. 2019-02-20 09:29:45 +08:00
email_cook_spec.rb FEATURE: convert plain text emails to markdown 2017-12-06 01:47:51 +01:00
email_updater_spec.rb FEATURE: the hide_email_address_taken setting works with the change email address form in user preferences 2017-10-04 11:41:25 -04:00
enum_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
excerpt_parser_spec.rb FIX: Calculation of text length for <details> in excerpt was wrong 2018-03-12 16:55:23 +01:00
fallback_locale_list_spec.rb FEATURE: Allow plugins to register a new locale 2018-01-25 14:57:41 +01:00
feed_element_installer_spec.rb FEATURE: Replace SimpleRSS with Ruby RSS module (#5311) 2017-12-06 10:45:09 +11:00
feed_item_accessor_spec.rb FEATURE: Replace SimpleRSS with Ruby RSS module (#5311) 2017-12-06 10:45:09 +11:00
file_helper_spec.rb Include response body when raising an error in FileHelper#download. 2018-09-13 15:43:58 +08:00
filter_best_posts_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
final_destination_spec.rb FIX: preserve github fragment URL 2018-12-19 12:34:47 +05:30
flag_query_spec.rb Adjusts the minimum_flag_threshold for TL3/TL4 actions 2019-01-04 13:16:44 -05:00
flag_settings_spec.rb Refactor flag types for more customization 2017-10-19 13:55:23 -04:00
gaps_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
global_path_spec.rb Revert "Revert "FIX: GlobalPath#upload_cdn_path when S3 bucket has a folder (#6523)"" 2018-10-24 15:14:01 +11:00
guardian_spec.rb FIX: allow sending PMs to staff via flag even when PMs are disabled (#6938) 2019-01-24 16:56:59 +05:30
has_errors_spec.rb FIX: show proper error message when no user selected for private message 2016-05-05 18:47:08 +05:30
hijack_spec.rb Add Cache-Control header to CORS (#6490) 2018-10-16 10:46:55 +11:00
html_prettify_spec.rb FEATURE: stop escaping special chars in title prettify 2017-03-13 10:02:20 -04:00
html_to_markdown_spec.rb FIX: Font tag resulted in wrong email trimming 2018-12-18 11:40:54 +01:00
image_sizer_spec.rb FIX: raise exception when getting dimensions of missing image 2018-12-03 10:19:49 -05:00
inline_oneboxer_spec.rb remove unnecessary expectation lines 2018-11-13 16:52:08 +05:30
js_locale_helper_spec.rb Update Rubocop to 0.60 2018-12-04 10:48:16 +01:00
json_error_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
letter_avatar_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
method_profiler_spec.rb FIX: stop double counting net calls in logs 2018-02-28 10:45:11 +11:00
new_post_manager_spec.rb FIX: Don't enqueue topics if the user can't create them 2018-11-09 18:24:28 +01:00
new_post_result_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
oneboxer_spec.rb FIX: Generate Onebox for posts of type moderator_action. (#6466) 2018-10-10 18:39:03 +08:00
onpdiff_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
pbkdf2_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
pinned_check_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
plain_text_to_markdown_spec.rb FEATURE: convert plain text emails to markdown 2017-12-06 01:47:51 +01:00
post_action_creator_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
post_creator_spec.rb FIX: Set unique post key for a user outside of transaction. 2019-01-08 15:22:22 +08:00
post_destroyer_spec.rb SPEC: Use I18n translation instead of using raw text 2019-01-21 20:21:09 +05:30
post_enqueuer_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
post_locker_spec.rb FEATURE: Staff members can lock posts 2018-01-26 14:01:30 -05:00
post_merger_spec.rb Improve MessageBus.track_publish to allow filter by channel. 2017-10-02 11:34:57 +08:00
post_revisor_spec.rb FIX: make staff_edit_locks_post work with download_remote_images_to_local 2018-12-03 14:14:59 +11:00
pretty_text_spec.rb FIX: ensure local images use local CDN when uploads are stored on S3 2019-02-20 19:24:38 +01:00
promotion_spec.rb FIX: do not send tl1 welcome message when a user has the basic user badge 2018-09-19 12:53:36 -07:00
quote_comparer_spec.rb FEATURE: Add quote-modified class if a quote has been modified 2018-03-13 13:41:06 -04:00
rate_limiter_spec.rb Add guard for nil in our RateLimiter. 2018-03-01 13:20:42 +08:00
redis_store_spec.rb Prepare for separation of RSpec helper files 2015-12-01 20:39:42 +00:00
retrieve_title_spec.rb PERF: ability to crawl for titles without extra HEAD req 2018-01-29 15:40:12 +11:00
rtl_spec.rb Nuke all SiteSetting.stubs from our codebase. 2017-07-07 15:09:14 +09:00
s3_helper_spec.rb FEATURE: Add SiteSetting for s3_configure_tombstone_policy 2018-09-17 10:57:50 +10:00
s3_inventory_spec.rb DEV: Add 'backfill_etags_' to the method name since it also backfilling the etags 2019-02-19 21:54:35 +05:30
score_calculator_spec.rb remove uneeded specs 2018-07-05 15:34:58 +10:00
search_spec.rb FIX: in:title should work irrespective of the order. (#6968) 2019-02-05 10:54:52 +01:00
secure_session_spec.rb SECURITY: prevent reuse of password reset 2016-12-19 18:00:22 +11:00
site_setting_extension_spec.rb DEV: Stablize the multisite tests. 2019-01-16 10:29:36 +08:00
slug_spec.rb FIX: strip emoji string from slug 2018-04-18 11:32:32 +05:30
spam_handler_spec.rb Nuke all SiteSetting.stubs from our codebase. 2017-07-07 15:09:14 +09:00
stats_socket_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
suggested_topics_builder_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
system_message_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
text_cleaner_spec.rb FIX: Skip gsub for normalizing whitespaces when text is nil (#6631) 2018-11-20 09:12:32 +01:00
text_sentinel_spec.rb rename 'min_private_message_{post/title}_length' to 'min_personal_message_{post/title}_length' 2018-02-01 13:25:29 +05:30
theme_settings_manager_spec.rb FEATURE: Allow string theme settings to display with multiple lines 2019-02-05 14:14:53 +00:00
theme_settings_parser_spec.rb FEATURE: introduces list/compact_list components 2018-08-03 16:41:37 -04:00
timeline_lookup_spec.rb PERF: Don't pluck all the columns just to retrieve a single value. 2018-06-27 11:41:35 +08:00
topic_creator_spec.rb FIX: allow sending PMs to staff via flag even when PMs are disabled (#6938) 2019-01-24 16:56:59 +05:30
topic_publisher_spec.rb FIX: Update last_version_at when publishing 2018-03-26 16:06:20 -04:00
topic_query_spec.rb FIX: Only hide shared draft topics from latest (#6737) 2018-12-07 12:44:23 +00:00
topic_retriever_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
topic_view_spec.rb FIX: remove slow platform detection from server side 2018-12-13 13:57:05 +11:00
topics_bulk_action_spec.rb Use PostDestroyer to delete topics when performing bulk operation (#5202) 2017-09-28 14:22:49 +02:00
trashable_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
trust_level_spec.rb Enums that are used in tables need to be stable 2016-01-08 20:43:11 +05:30
unread_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
url_helper_spec.rb FIX: URLs containing two # would fail to work 2018-12-11 18:03:13 +11:00
user_name_suggester_spec.rb FIX: don't raise an error on integer usernames 2018-09-10 22:17:56 +05:30
version_spec.rb Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00