[ARVADOS] updated: 51a9aa4e9072ffec919187b3ed51bf624c0ba291
Git user
git at public.curoverse.com
Thu Jun 8 13:56:28 EDT 2017
Summary of changes:
.../arvados/v1/collections_controller_test.rb | 23 ++++++++++++++++++++++
1 file changed, 23 insertions(+)
via 51a9aa4e9072ffec919187b3ed51bf624c0ba291 (commit)
from cd584f6095b0c543a16b77b2041de887d99492d8 (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 51a9aa4e9072ffec919187b3ed51bf624c0ba291
Author: radhika <radhika at curoverse.com>
Date: Thu Jun 8 13:55:59 2017 -0400
11837: add api test
diff --git a/services/api/test/functional/arvados/v1/collections_controller_test.rb b/services/api/test/functional/arvados/v1/collections_controller_test.rb
index 7618985..055af9e 100644
--- a/services/api/test/functional/arvados/v1/collections_controller_test.rb
+++ b/services/api/test/functional/arvados/v1/collections_controller_test.rb
@@ -1042,4 +1042,27 @@ EOS
}
assert_response 422
end
+
+ [:active, :admin].each do |user|
+ test "get trashed collections as #{user}" do
+ authorize_with :active
+ get :index, {
+ filters: [["is_trashed", "=", true]],
+ include_trash: true,
+ }
+ assert_response :success
+
+ items = []
+ json_response["items"].each do |coll|
+ items << coll['uuid']
+ end
+
+ assert_includes(items, collections('unique_expired_collection')['uuid'])
+ if user == :admin
+ assert_includes(items, collections('unique_expired_collection2')['uuid'])
+ else
+ assert_not_includes(items, collections('unique_expired_collection2')['uuid'])
+ end
+ end
+ end
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list