Merge branch '4464-api-project-contents-wip'
[arvados.git] / services / api / test / functional / arvados / v1 / groups_controller_test.rb
index 502c58044bcf7229217772ddde41e95a95c98b58..922612fb38cd53bb3387569b477121f537cc575a 100644 (file)
@@ -291,6 +291,20 @@ class Arvados::V1::GroupsControllerTest < ActionController::TestCase
     end
   end
 
+  test "Collection contents don't include manifest_text" do
+    authorize_with :active
+    get :contents, {
+      id: groups(:aproject).uuid,
+      filters: [["uuid", "is_a", "arvados#collection"]],
+      format: :json,
+    }
+    assert_response :success
+    refute(json_response["items"].any? { |c| not c["portable_data_hash"] },
+           "response included an item without a portable data hash")
+    refute(json_response["items"].any? { |c| c.include?("manifest_text") },
+           "response included an item with a manifest text")
+  end
+
   test 'get writable_by list for owned group' do
     authorize_with :active
     get :show, {