X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fb429aa6a8dd1d28d08038abd8de8b9206a1d51e..a1cc22fad427a935d7747bd6dc2c6b901c8a799a:/services/api/test/functional/sys_controller_test.rb diff --git a/services/api/test/functional/sys_controller_test.rb b/services/api/test/functional/sys_controller_test.rb index e13d702983..ab304c1c7c 100644 --- a/services/api/test/functional/sys_controller_test.rb +++ b/services/api/test/functional/sys_controller_test.rb @@ -96,7 +96,6 @@ class SysControllerTest < ActionController::TestCase g_bar = groups(:trashed_subproject) g_baz = groups(:trashed_subproject3) col = collections(:collection_in_trashed_subproject) - job = jobs(:job_in_trashed_project) cr = container_requests(:cr_in_trashed_project) # Save how many objects were before the sweep user_nr_was = User.all.length @@ -104,12 +103,10 @@ class SysControllerTest < ActionController::TestCase group_nr_was = Group.where('group_class<>?', 'project').length project_nr_was = Group.where(group_class: 'project').length cr_nr_was = ContainerRequest.all.length - job_nr_was = Job.all.length assert_not_empty Group.where(uuid: g_foo.uuid) assert_not_empty Group.where(uuid: g_bar.uuid) assert_not_empty Group.where(uuid: g_baz.uuid) assert_not_empty Collection.where(uuid: col.uuid) - assert_not_empty Job.where(uuid: job.uuid) assert_not_empty ContainerRequest.where(uuid: cr.uuid) authorize_with :admin @@ -120,7 +117,6 @@ class SysControllerTest < ActionController::TestCase assert_empty Group.where(uuid: g_bar.uuid) assert_empty Group.where(uuid: g_baz.uuid) assert_empty Collection.where(uuid: col.uuid) - assert_empty Job.where(uuid: job.uuid) assert_empty ContainerRequest.where(uuid: cr.uuid) # No unwanted deletions should have happened assert_equal user_nr_was, User.all.length @@ -129,7 +125,6 @@ class SysControllerTest < ActionController::TestCase assert_equal group_nr_was, Group.where('group_class<>?', 'project').length assert_equal project_nr_was-3, Group.where(group_class: 'project').length assert_equal cr_nr_was-1, ContainerRequest.all.length - assert_equal job_nr_was-1, Job.all.length end end