DEV: Allow `CAPYBARA_REMOTE_DRIVER_URL` through webmock (#23476)
Why this change? When using a remote capybara driver configured through the `CAPYBARA_REMOTE_DRIVER_URL` env, webmock is thinking that is an external request and blocking it. As such, we need to set the URL to the allowlist for webmock.
This commit is contained in:
parent
6beed147cd
commit
8ce5b82aa5
|
@ -294,7 +294,8 @@ RSpec.configure do |config|
|
||||||
allow: [
|
allow: [
|
||||||
*MinioRunner.config.minio_urls,
|
*MinioRunner.config.minio_urls,
|
||||||
URI(MinioRunner::MinioBinary.platform_binary_url).host,
|
URI(MinioRunner::MinioBinary.platform_binary_url).host,
|
||||||
],
|
ENV["CAPYBARA_REMOTE_DRIVER_URL"],
|
||||||
|
].compact,
|
||||||
)
|
)
|
||||||
|
|
||||||
if ENV["CAPYBARA_DEFAULT_MAX_WAIT_TIME"].present?
|
if ENV["CAPYBARA_DEFAULT_MAX_WAIT_TIME"].present?
|
||||||
|
|
Loading…
Reference in New Issue