profiling_enabled: true
secret_token: <%= rand(2**256).to_s(36) %>
secret_key_base: <%= rand(2**256).to_s(36) %>
- # This setting is to allow workbench start when running tests, it should be
- # set to a correct value when testing relevant features.
- keep_web_url: http://example.com/c=%{uuid_or_pdh}
-
- # When you run the Workbench's integration tests, it starts the API
- # server as a dependency. These settings should match the API
- # server's Rails defaults. If you adjust those, change these
- # settings in application.yml to match.
- arvados_login_base: https://localhost:3000/login
- arvados_v1_base: https://localhost:3000/arvados/v1
- arvados_insecure_https: true
-
site_name: Workbench:test
# Enable user profile with one required field
test "browse using arv-git-http" do
repo = api_fixture('repositories')['foo']
- portfile =
- File.expand_path('../../../../../tmp/arv-git-httpd-ssl.port', __FILE__)
- gitsslport = File.read(portfile)
Repository.any_instance.
stubs(:http_fetch_url).
- returns "https://localhost:#{gitsslport}/#{repo['name']}.git"
+ returns "#{Rails.configuration.Services.GitHTTP.ExternalURL.to_s}/#{repo['name']}.git"
commit_sha1 = '1de84a854e2b440dc53bf42f8548afa4c17da332'
visit page_with_token('active', "/repositories/#{repo['uuid']}/commit/#{commit_sha1}")
assert_text "Date: Tue Mar 18 15:55:28 2014 -0400"
end
assert_text ":active/workbenchtest.git"
assert_match /git@git.*:active\/workbenchtest.git/, page.text
- assert_match /https:\/\/git.*\/active\/workbenchtest.git/, page.text
+ assert_match /#{Rails.configuration.Services.GitHTTP.ExternalURL.to_s}\/active\/workbenchtest.git/, page.text
end
[
else
base = URI(default_base_fmt % prefix)
end
+ if base.path == ""
+ base.path = "/"
+ end
if base.scheme == "ssh"
'%s@%s:%s.git' % [base.user, base.host, name]
else