[ARVADOS] updated: 1.3.0-616-ga5cd06261

Git user git at public.curoverse.com
Wed Apr 3 20:21:40 UTC 2019


Summary of changes:
 .../arvados/v1/collections_controller_test.rb          | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

       via  a5cd06261d3ef5005c3bd921c610abfa21dc672f (commit)
      from  425836b285a32c31ef643f8c5d4b48b8b42b7ac4 (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 a5cd06261d3ef5005c3bd921c610abfa21dc672f
Author: Eric Biagiotti <ebiagiotti at veritasgenetics.com>
Date:   Wed Apr 3 16:20:26 2019 -0400

    14484: Adds test for updating a collection with file stats and manifest changes
    
    Arvados-DCO-1.1-Signed-off-by: Eric Biagiotti <ebiagiotti at veritasgenetics.com>

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 27d4fee79..ff581e442 100644
--- a/services/api/test/functional/arvados/v1/collections_controller_test.rb
+++ b/services/api/test/functional/arvados/v1/collections_controller_test.rb
@@ -1003,6 +1003,24 @@ EOS
   end
 
   [
+    ['file_count', 1],
+    ['file_size_total', 34]
+  ].each do |attribute, val|
+    test "update collection with #{attribute} and manifest and expect manifest values" do
+      authorize_with :active
+      post :update, {
+        id: collections(:collection_owned_by_active_with_file_stats).uuid,
+        collection: {
+          manifest_text: ". d41d8cd98f00b204e9800998ecf8427e 0:34:foo.txt\n",
+          "#{attribute}": 10
+        }
+      }
+      assert_response 200
+      assert_equal val, json_response[attribute]
+    end
+  end
+
+  [
     ". 0:0:foo.txt",
     ". d41d8cd98f00b204e9800998ecf8427e foo.txt",
     "d41d8cd98f00b204e9800998ecf8427e 0:0:foo.txt",

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list