[ARVADOS] updated: d9cfb1a387937e93cd9c194273c1f03da4664b4d

git at public.curoverse.com git at public.curoverse.com
Fri Aug 22 11:16:46 EDT 2014


Summary of changes:
 services/api/test/unit/user_test.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

       via  d9cfb1a387937e93cd9c194273c1f03da4664b4d (commit)
      from  9624ed0931aac929f0d773dfee8b9e620b9352ad (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 d9cfb1a387937e93cd9c194273c1f03da4664b4d
Author: radhika <radhika at curoverse.com>
Date:   Fri Aug 22 11:14:32 2014 -0400

    3153: when exsiting repository name or vm login link is used as username, assert the generated unique username starts with the given username and ends with a number.

diff --git a/services/api/test/unit/user_test.rb b/services/api/test/unit/user_test.rb
index c410787..30ca254 100644
--- a/services/api/test/unit/user_test.rb
+++ b/services/api/test/unit/user_test.rb
@@ -501,9 +501,9 @@ class UserTest < ActiveSupport::TestCase
       end
 
       # if username is existing vm login name, make sure the username used to generate any repo is unique
-      if username == 'auto_setup_vm_login'
+      if username == 'auto_setup_vm_login' || username == 'auto_setup_repo'
         if repo_names.any?
-          assert repo_names.first.start_with? 'auto_setup_vm_login'
+          assert repo_names.first.start_with? username
           assert_not_nil /\d$/.match(repo_names.first)
         end
       end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list