projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
19675: Merge branch '19675-instance-types-panel' from arvados-workbench2.git
[arvados.git]
/
services
/
api
/
test
/
unit
/
repository_test.rb
diff --git
a/services/api/test/unit/repository_test.rb
b/services/api/test/unit/repository_test.rb
index 3fb0cce60ad4011b1749b6cea84395a5a3e784d9..674a34ffd8defb5d368c9818598f73e7cabe15ae 100644
(file)
--- a/
services/api/test/unit/repository_test.rb
+++ b/
services/api/test/unit/repository_test.rb
@@
-1,3
+1,7
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
require 'test_helper'
require 'helpers/git_test_helper'
require 'test_helper'
require 'helpers/git_test_helper'
@@
-19,15
+23,15
@@
class RepositoryTest < ActiveSupport::TestCase
def default_git_url(repo_name, user_name=nil)
if user_name
"git@git.%s.arvadosapi.com:%s/%s.git" %
def default_git_url(repo_name, user_name=nil)
if user_name
"git@git.%s.arvadosapi.com:%s/%s.git" %
- [Rails.configuration.
uuid_prefix
, user_name, repo_name]
+ [Rails.configuration.
ClusterID
, user_name, repo_name]
else
"git@git.%s.arvadosapi.com:%s.git" %
else
"git@git.%s.arvadosapi.com:%s.git" %
- [Rails.configuration.
uuid_prefix
, repo_name]
+ [Rails.configuration.
ClusterID
, repo_name]
end
end
def assert_server_path(path_tail, repo_sym)
end
end
def assert_server_path(path_tail, repo_sym)
- assert_equal(File.join(Rails.configuration.
git_repositories_dir
, path_tail),
+ assert_equal(File.join(Rails.configuration.
Git.Repositories
, path_tail),
repositories(repo_sym).server_path)
end
repositories(repo_sym).server_path)
end
@@
-259,7
+263,7
@@
class RepositoryTest < ActiveSupport::TestCase
test "non-admin can rename own repo" do
act_as_user users(:active) do
test "non-admin can rename own repo" do
act_as_user users(:active) do
- assert repositories(:foo).update
_attributes
(name: 'active/foo12345')
+ assert repositories(:foo).update(name: 'active/foo12345')
end
end
end
end