X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/58f60163b826a04085cbc69a6be1660c37174d7c..e1276d6ebfbf073b747825cfcbfdd0054b95efa4:/apps/workbench/test/integration_helper.rb diff --git a/apps/workbench/test/integration_helper.rb b/apps/workbench/test/integration_helper.rb index 48d2cb5f6d..785912d324 100644 --- a/apps/workbench/test/integration_helper.rb +++ b/apps/workbench/test/integration_helper.rb @@ -126,6 +126,20 @@ module HeadlessHelper end end +module KeepWebConfig + def getport service + File.read(File.expand_path("../../../../tmp/#{service}.port", __FILE__)) + end + + def use_keep_web_config + @kwport = getport 'keep-web-ssl' + @kwdport = getport 'keep-web-dl-ssl' + Rails.configuration.keep_web_url = "https://localhost:#{@kwport}/c=%{uuid_or_pdh}" + Rails.configuration.keep_web_download_url = "https://localhost:#{@kwdport}/c=%{uuid_or_pdh}" + CollectionsController.any_instance.expects(:file_enumerator).never + end +end + class ActionDispatch::IntegrationTest # Make the Capybara DSL available in all integration tests include Capybara::DSL