3 class Arvados::V1::CollectionsControllerTest < ActionController::TestCase
5 test "should get index" do
8 assert_response :success
9 assert_not_nil assigns(:objects)
12 test "should create" do
13 authorize_with :active
16 manifest_text: ". d41d8cd98f00b204e9800998ecf8427e 0:0:foo.txt\n",
17 uuid: "d30fe8ae534397864cb96c544f4cf102"
20 assert_response :success
21 assert_nil assigns(:objects)
24 test "should create with collection passed as json" do
25 authorize_with :active
29 "manifest_text":". d41d8cd98f00b204e9800998ecf8427e 0:0:foo.txt\n",\
30 "uuid":"d30fe8ae534397864cb96c544f4cf102"\
34 assert_response :success
37 test "should fail to create with checksum mismatch" do
38 authorize_with :active
42 "manifest_text":". d41d8cd98f00b204e9800998ecf8427e 0:0:bar.txt\n",\
43 "uuid":"d30fe8ae534397864cb96c544f4cf102"\