5490: Test API server finds Docker images with hash names.
[arvados.git] / services / api / test / unit / collection_test.rb
index d8b8365efa212f3447aceddec6decd2154520584..93f472af60bbcb7fe5b38897b9acc28baf29a50d 100644 (file)
@@ -253,4 +253,11 @@ class CollectionTest < ActiveSupport::TestCase
       assert c.valid?
     end
   end
+
+  test "find_all_for_docker_image resolves names that look like hashes" do
+    coll_list = Collection.
+      find_all_for_docker_image('a' * 64, nil, [users(:active)])
+    coll_uuids = coll_list.map(&:uuid)
+    assert_includes(coll_uuids, collections(:docker_image).uuid)
+  end
 end