0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 07:23:30 +08:00
discourse/plugins/discourse-subscriptions/spec
David Taylor b447f12556
DEV: Block external requests in system specs via Chrome DNS resolver (#40685)
Add a catch-all `MAP * ~NOTFOUND` to Chrome's --host-resolver-rules so
any non-excluded host fails to resolve, instead of system specs reaching
the real internet. Local/test hosts (the Capybara server, *.localhost,
MinIO) are excluded. Unlike Playwright request interception this leaves
the browser HTTP cache enabled.

Specs that need an external host opt in with `allow_network:
["example.com"]`, which runs them in a dedicated browser with those
hosts excluded from the block.
2026-06-17 12:29:57 +01:00
..
fabricators
fixtures/json
jobs DEV: Remove unnecessary rails_helper requires (#33812) 2025-07-24 13:50:04 +02:00
models DEV: Remove unnecessary rails_helper requires (#33812) 2025-07-24 13:50:04 +02:00
requests SECURITY: Subscription contributors expose full user profile fields to anonymous viewers (#40891) 2026-06-15 10:24:06 -05:00
serializers FIX: Use signed checkout user references in discourse-subscriptions (#40058) 2026-05-28 22:19:56 +05:30
services SECURITY: Fixes for discourse-subscriptions 2026-03-31 15:12:45 +01:00
system DEV: Block external requests in system specs via Chrome DNS resolver (#40685) 2026-06-17 12:29:57 +01:00
plugin_helper.rb