[ARVADOS] updated: 05fab15b6771960ab0b9350113f8c04c1ac0a58f
git at public.curoverse.com
git at public.curoverse.com
Thu Apr 2 10:38:45 EDT 2015
Summary of changes:
.../test/functional/arvados/v1/repositories_controller_test.rb | 9 +++++++++
1 file changed, 9 insertions(+)
via 05fab15b6771960ab0b9350113f8c04c1ac0a58f (commit)
from 0b9904612ffa33ed488817659c00509661ac4865 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 05fab15b6771960ab0b9350113f8c04c1ac0a58f
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date: Thu Apr 2 10:38:39 2015 -0400
5626: Add test for git_hostname configuration option.
diff --git a/services/api/test/functional/arvados/v1/repositories_controller_test.rb b/services/api/test/functional/arvados/v1/repositories_controller_test.rb
index 128e490..36d5c1d 100644
--- a/services/api/test/functional/arvados/v1/repositories_controller_test.rb
+++ b/services/api/test/functional/arvados/v1/repositories_controller_test.rb
@@ -96,6 +96,15 @@ class Arvados::V1::RepositoriesControllerTest < ActionController::TestCase
"git at git.zzzzz.arvadosapi.com:active/foo.git")
end
+ test "setting git_host changes fetch_url" do
+ Rails.configuration.git_host = "example.com"
+ authorize_with :active
+ get(:index)
+ assert_response :success
+ assert_includes(json_response["items"].map { |r| r["fetch_url"] },
+ "git at example.com:active/foo.git")
+ end
+
test "can select push_url in index" do
authorize_with :active
get(:index, {select: ["uuid", "push_url"]})
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list