16007: Fix FUSE test
[arvados.git] / services / api / test / unit / user_test.rb
index 5d25361eda4aafac1ed926fb7c72c3de9f5b835c..7fcd36d7091a4c7a00a9af6ae50f10f5a413871d 100644 (file)
@@ -168,9 +168,6 @@ class UserTest < ActiveSupport::TestCase
         act_as_system_user do
           users(:admin).update_attributes!(is_admin: false)
         end
-        # need to manually call clear_permissions because we used 'delete' instead of 'destory'
-        # we use delete here because 'destroy' will throw an error
-        #users(:admin).clear_permissions
         @all_users = User.where("uuid not like '%-000000000000000'").where(:is_admin => true)
         assert_equal 0, @all_users.count, "No admin users should exist (except for the system user)"
       end
@@ -481,15 +478,6 @@ class UserTest < ActiveSupport::TestCase
 
     vm = VirtualMachine.create
 
-    # Set up the bogus Link
-    bad_uuid = 'zzzzz-tpzed-xyzxyzxyzxyzxyz'
-
-    resp_link = Link.create ({tail_uuid: email, link_class: 'permission',
-        name: 'can_login', head_uuid: bad_uuid})
-    resp_link.save(validate: false)
-
-    verify_link resp_link, 'permission', 'can_login', email, bad_uuid
-
     response = user.setup(repo_name: 'foo/testrepo',
                           vm_uuid: vm.uuid)