Fix RSpec unit testing when using Docker dev setup (#10950)

This commit is contained in:
Tudor Pavel 2020-10-20 17:36:41 +03:00 committed by GitHub
parent 1f562783fc
commit 65336d6ff3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -48,6 +48,7 @@ allowed_sites = [
"selenium-release.storage.googleapis.com",
"developer.microsoft.com/en-us/microsoft-edge/tools/webdriver",
"api.knapsackpro.com",
"elasticsearch",
]
WebMock.disable_net_connect!(allow_localhost: true, allow: allowed_sites)

View file

@ -13,7 +13,8 @@ VCR.configure do |config|
"github.com/mozilla/geckodriver/releases",
"selenium-release.storage.googleapis.com",
"developer.microsoft.com/en-us/microsoft-edge/tools/webdriver",
"api.knapsackpro.com", "localhost", "127.0.0.1", "0.0.0.0"
"api.knapsackpro.com", "localhost", "127.0.0.1", "0.0.0.0",
"elasticsearch"
)
# Removes all private data (Basic Auth, Set-Cookie headers...)