[ARVADOS] updated: 8caf2878e9afa8a9c9d1a2637b819109e35e16ca
Git user
git at public.curoverse.com
Mon Jul 4 17:23:33 EDT 2016
Summary of changes:
.../arvados/v1/groups_controller_test.rb | 25 +++++++++++++++++++++
services/api/test/integration/groups_test.rb | 26 ----------------------
2 files changed, 25 insertions(+), 26 deletions(-)
via 8caf2878e9afa8a9c9d1a2637b819109e35e16ca (commit)
from a10ff78a14eae5d13dc49ca382ed22fbc2c11d1a (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 8caf2878e9afa8a9c9d1a2637b819109e35e16ca
Author: radhika <radhika at curoverse.com>
Date: Mon Jul 4 17:18:05 2016 -0400
9498: test update
diff --git a/services/api/test/functional/arvados/v1/groups_controller_test.rb b/services/api/test/functional/arvados/v1/groups_controller_test.rb
index 0084679..10534a7 100644
--- a/services/api/test/functional/arvados/v1/groups_controller_test.rb
+++ b/services/api/test/functional/arvados/v1/groups_controller_test.rb
@@ -423,4 +423,29 @@ class Arvados::V1::GroupsControllerTest < ActionController::TestCase
end
assert_equal true, found_projects.include?(groups(:starred_and_shared_active_user_project).uuid)
end
+
+ [
+ [['owner_uuid', '!=', 'zzzzz-tpzed-xurymjxw79nv3jz'], 200,
+ 'zzzzz-d1hrv-subprojpipeline', 'zzzzz-d1hrv-1xfj6xkicf2muk2'],
+ [["pipeline_instances.state", "not in", ["Complete", "Failed"]], 200,
+ 'zzzzz-d1hrv-1xfj6xkicf2muk2', 'zzzzz-d1hrv-i3e77t9z5y8j9cc'],
+ [['container_requests.requesting_container_uuid', '=', nil], 200,
+ 'zzzzz-xvhdp-cr4queuedcontnr', 'zzzzz-xvhdp-cr4requestercn2'],
+ [['container_requests.no_such_column', '=', nil], 422],
+ [['container_requests.', '=', nil], 422],
+ [['.requesting_container_uuid', '=', nil], 422],
+ [['no_such_table.uuid', '!=', 'zzzzz-tpzed-xurymjxw79nv3jz'], 422],
+ ].each do |filter, expect_code, expect_uuid, not_expect_uuid|
+ test "get contents with '#{filter}' filter" do
+ authorize_with :active
+ get :contents, filters: [filter], format: :json
+ assert_response expect_code
+ if expect_code == 200
+ assert_not_empty json_response['items']
+ item_uuids = json_response['items'].collect {|item| item['uuid']}
+ assert_includes(item_uuids, expect_uuid)
+ assert_not_includes(item_uuids, not_expect_uuid)
+ end
+ end
+ end
end
diff --git a/services/api/test/integration/groups_test.rb b/services/api/test/integration/groups_test.rb
index a60b1b1..2afece9 100644
--- a/services/api/test/integration/groups_test.rb
+++ b/services/api/test/integration/groups_test.rb
@@ -91,30 +91,4 @@ class GroupsTest < ActionDispatch::IntegrationTest
}, auth(:active)
assert_response 422
end
-
- [
- [['owner_uuid', '!=', 'zzzzz-tpzed-xurymjxw79nv3jz'], 200,
- 'zzzzz-d1hrv-subprojpipeline', 'zzzzz-d1hrv-1xfj6xkicf2muk2'],
- [["pipeline_instances.state", "not in", ["Complete", "Failed"]], 200,
- 'zzzzz-d1hrv-1xfj6xkicf2muk2', 'zzzzz-d1hrv-i3e77t9z5y8j9cc'],
- [['container_requests.requesting_container_uuid', '=', nil], 200,
- 'zzzzz-xvhdp-cr4queuedcontnr', 'zzzzz-xvhdp-cr4requestercn2'],
- [['container_requests.no_such_column', '=', nil], 422],
- [['container_requests.', '=', nil], 422],
- [['.requesting_container_uuid', '=', nil], 422],
- [['no_such_table.uuid', '!=', 'zzzzz-tpzed-xurymjxw79nv3jz'], 422],
- ].each do |filter, expect_code, expect_uuid, not_expect_uuid|
- test "get contents with '#{filter}' filter" do
- get "/arvados/v1/groups/contents", {
- :filters => [filter].to_json
- }, auth(:active)
- assert_response expect_code
- if expect_code == 200
- assert_not_empty json_response['items']
- item_uuids = json_response['items'].collect {|item| item['uuid']}
- assert_includes(item_uuids, expect_uuid)
- assert_not_includes(item_uuids, not_expect_uuid)
- end
- end
- end
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list