X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6cef86f2d748be96695293b48afac61e2ae640df..ef4ca87900bd023849aca62952ad2a27cfe40d34:/services/api/test/fixtures/collections.yml diff --git a/services/api/test/fixtures/collections.yml b/services/api/test/fixtures/collections.yml index 4ba5a3b52d..f8d79bd79e 100644 --- a/services/api/test/fixtures/collections.yml +++ b/services/api/test/fixtures/collections.yml @@ -26,11 +26,11 @@ foo_file: uuid: zzzzz-4zz18-znfnqtbbv4spc3w portable_data_hash: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45 owner_uuid: zzzzz-tpzed-000000000000000 - created_at: 2014-02-03T17:22:54Z + created_at: 2015-02-03T17:22:54Z modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f - modified_at: 2014-02-03T17:22:54Z - updated_at: 2014-02-03T17:22:54Z + modified_at: 2015-02-03T17:22:54Z + updated_at: 2015-02-03T17:22:54Z manifest_text: ". acbd18db4cc2f85cedef654fccc4a4d8+3 0:3:foo\n" name: foo_file @@ -38,11 +38,11 @@ bar_file: uuid: zzzzz-4zz18-ehbhgtheo8909or portable_data_hash: fa7aeb5140e2848d39b416daeef4ffc5+45 owner_uuid: zzzzz-tpzed-000000000000000 - created_at: 2014-02-03T17:22:54Z + created_at: 2015-02-03T17:22:54Z modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f - modified_at: 2014-02-03T17:22:54Z - updated_at: 2014-02-03T17:22:54Z + modified_at: 2015-02-03T17:22:54Z + updated_at: 2015-02-03T17:22:54Z manifest_text: ". 37b51d194a7513e45b56f6524f2d51f2+3 0:3:bar\n" name: bar_file @@ -92,14 +92,14 @@ multilevel_collection_2: modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f modified_at: 2014-02-03T17:22:54Z updated_at: 2014-02-03T17:22:54Z - manifest_text: "./dir1/sub1 0:0:a 0:0:b\n./dir2/sub2 0:0:c 0:0:d\n" + manifest_text: "./dir1/sub1 d41d8cd98f00b204e9800998ecf8427e+0 0:0:a 0:0:b\n./dir2/sub2 d41d8cd98f00b204e9800998ecf8427e+0 0:0:c 0:0:d\n" name: multilevel_collection_2 docker_image: uuid: zzzzz-4zz18-1v45jub259sjjgb # This Collection has links with Docker image metadata. portable_data_hash: fa3c1a9cb6783f85f2ecda037e07b8c3+167 - owner_uuid: qr1hi-tpzed-000000000000000 + owner_uuid: zzzzz-tpzed-000000000000000 created_at: 2014-06-11T17:22:54Z modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f @@ -108,12 +108,25 @@ docker_image: manifest_text: ". d21353cfe035e3e384563ee55eadbb2f+67108864 5c77a43e329b9838cbec18ff42790e57+55605760 0:122714624:d8309758b8fe2c81034ffc8a10c36460b77db7bc5e7b448c4e5b684f9d95a678.tar\n" name: docker_image +# tagged docker image with sha256:{hash}.tar filename +docker_image_1_12: + uuid: zzzzz-4zz18-1g4g0vhpjn9wq7i + portable_data_hash: d740a57097711e08eb9b2a93518f20ab+174 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + created_at: 2016-10-19 08:50:45.653552268 Z + modified_by_client_uuid: zzzzz-ozdt8-teyxzyd8qllg11h + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + modified_at: 2016-10-19 08:50:45.652930000 Z + updated_at: 2016-10-19 08:50:45.652930000 Z + manifest_text: ". d21353cfe035e3e384563ee55eadbb2f+67108864 5c77a43e329b9838cbec18ff42790e57+55605760 0:122714624:sha256:d8309758b8fe2c81034ffc8a10c36460b77db7bc5e7b448c4e5b684f9d95a678.tar\n" + name: docker_image_1_12 + unlinked_docker_image: uuid: zzzzz-4zz18-d0d8z5wofvfgwad # This Collection contains a file that looks like a Docker image, # but has no Docker metadata links pointing to it. portable_data_hash: 9ae44d5792468c58bcf85ce7353c7027+124 - owner_uuid: qr1hi-tpzed-000000000000000 + owner_uuid: zzzzz-tpzed-000000000000000 created_at: 2014-06-11T17:22:54Z modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f @@ -208,6 +221,8 @@ collection_to_move_around_in_aproject: manifest_text: ". 73feffa4b7f6bb68e44cf984c85f6e88+3 0:3:baz\n" name: collection_to_move_around +# Note: collections(:expired_collection) fixture finder won't work +# because it is not in default scope expired_collection: uuid: zzzzz-4zz18-mto52zx1s7sn3ih portable_data_hash: 0b21a217243bfce5617fb9224b95bcb9+49 @@ -217,10 +232,44 @@ expired_collection: modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f modified_at: 2014-02-03T17:22:54Z updated_at: 2014-02-03T17:22:54Z - expires_at: 2001-01-01T00:00:00Z + is_trashed: true + trash_at: 2001-01-01T00:00:00Z + delete_at: 2038-01-01T00:00:00Z manifest_text: ". 37b51d194a7513e45b56f6524f2d51f2+3 0:3:expired\n" name: expired_collection +trashed_on_next_sweep: + uuid: zzzzz-4zz18-4guozfh77ewd2f0 + portable_data_hash: 0b21a217243bfce5617fb9224b95bcb9+49 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + created_at: 2016-12-07T22:01:00.123456Z + modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr + modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f + modified_at: 2016-12-27T22:01:30.123456Z + updated_at: 2016-12-27T22:01:30.123456Z + is_trashed: false + trash_at: 2016-12-07T22:01:30.123456Z + delete_at: 2112-01-01T00:00:00Z + manifest_text: ". 37b51d194a7513e45b56f6524f2d51f2+3 0:3:expired\n" + name: trashed_on_next_sweep + +# Note: collections(:deleted_on_next_sweep) fixture finder won't work +# because it is not in default scope +deleted_on_next_sweep: + uuid: zzzzz-4zz18-3u1p5umicfpqszp + portable_data_hash: 0b21a217243bfce5617fb9224b95bcb9+49 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + created_at: 2016-12-07T22:01:00.234567Z + modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr + modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f + modified_at: 2016-12-27T22:01:30.234567Z + updated_at: 2016-12-27T22:01:30.234567Z + is_trashed: true + trash_at: 2016-12-07T22:01:30.234567Z + delete_at: 2016-12-27T22:01:30.234567Z + manifest_text: ". 37b51d194a7513e45b56f6524f2d51f2+3 0:3:expired\n" + name: deleted_on_next_sweep + collection_expires_in_future: uuid: zzzzz-4zz18-padkqo7yb8d9i3j portable_data_hash: 0b21a217243bfce5617fb9224b95bcb9+49 @@ -230,10 +279,41 @@ collection_expires_in_future: modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f modified_at: 2014-02-03T17:22:54Z updated_at: 2014-02-03T17:22:54Z - expires_at: 2038-01-01T00:00:00Z + trash_at: 2038-01-01T00:00:00Z + delete_at: 2038-03-01T00:00:00Z manifest_text: ". 37b51d194a7513e45b56f6524f2d51f2+3 0:3:expired\n" name: collection_expires_in_future +unique_expired_collection: + uuid: zzzzz-4zz18-mto52zx1s7sn3jk + portable_data_hash: 4ad199f90029935844dc3f098f4fca2a+49 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + created_at: 2014-02-03T17:22:54Z + modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr + modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f + modified_at: 2014-02-03T17:22:54Z + updated_at: 2014-02-03T17:22:54Z + is_trashed: true + trash_at: 2001-01-01T00:00:00Z + delete_at: 2038-01-01T00:00:00Z + manifest_text: ". 29d7797f1888013986899bc9083783fa+3 0:3:expired\n" + name: unique_expired_collection1 + +unique_expired_collection2: + uuid: zzzzz-4zz18-mto52zx1s7sn3jr + portable_data_hash: 4ad199f90029935844dc3f098f4fca2b+49 + owner_uuid: zzzzz-tpzed-000000000000000 + created_at: 2014-02-03T17:22:54Z + modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr + modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f + modified_at: 2014-02-03T17:22:54Z + updated_at: 2014-02-03T17:22:54Z + is_trashed: true + trash_at: 2001-01-01T00:00:00Z + delete_at: 2038-01-01T00:00:00Z + manifest_text: ". 29d7797f1888013986899bc9083783fa+3 0:3:expired\n" + name: unique_expired_collection2 + # a collection with a log file that can be parsed by the log viewer # This collection hash matches the following log text: # 2014-01-01_12:00:01 zzzzz-8i9sb-abcdefghijklmno 0 log message 1 @@ -244,6 +324,7 @@ real_log_collection: uuid: zzzzz-4zz18-op4e2lbej01tcvu owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz created_at: 2014-09-01 12:00:00 + modified_at: 2014-09-01 12:00:00 portable_data_hash: 0b9a7787660e1fce4a93f33e01376ba6+81 manifest_text: ". cdd549ae79fe6640fa3d5c6261d8303c+195 0:195:zzzzz-8i9sb-0vsrcqi7whchuil.log.txt\n" name: real_log_collection @@ -278,6 +359,7 @@ collection_owned_by_foo: manifest_text: ". 73feffa4b7f6bb68e44cf984c85f6e88+3 0:3:baz\n" owner_uuid: zzzzz-tpzed-81hsbo6mk8nl05c created_at: 2014-02-03T17:22:54Z + modified_at: 2014-02-03T17:22:54Z name: collection_owned_by_foo collection_to_remove_from_subproject: @@ -287,6 +369,7 @@ collection_to_remove_from_subproject: manifest_text: ". 8258b505536a9ab47baa2f4281cb932a+9 0:9:missingno\n" owner_uuid: zzzzz-j7d0g-axqo7eu9pwvna1x created_at: 2014-10-15T10:45:00 + modified_at: 2014-10-15T10:45:00 name: Collection to remove from subproject collection_with_files_in_subdir: @@ -307,6 +390,8 @@ graph_test_collection1: portable_data_hash: fa7aeb5140e2848d39b416daeef4ffc5+45 manifest_text: ". 37b51d194a7513e45b56f6524f2d51f2+3 0:3:bar\n" name: bar_file + created_at: 2014-02-03T17:22:54Z + modified_at: 2014-02-03T17:22:54Z graph_test_collection2: uuid: zzzzz-4zz18-uukreo9rbgwsujx @@ -314,6 +399,8 @@ graph_test_collection2: portable_data_hash: 65b17c95fdbc9800fc48acda4e9dcd0b+93 manifest_text: ". 6a4ff0499484c6c79c95cd8c566bd25f+249025 0:249025:FOO_General_Public_License,_version_3.pdf\n" name: "FOO General Public License, version 3" + created_at: 2014-02-03T17:22:54Z + modified_at: 2014-02-03T17:22:54Z graph_test_collection3: uuid: zzzzz-4zz18-uukreo9rbgwsujj @@ -321,6 +408,8 @@ graph_test_collection3: portable_data_hash: ea10d51bcf88862dbcc36eb292017dfd+45 manifest_text: ". 73feffa4b7f6bb68e44cf984c85f6e88+3 0:3:baz\n" name: "baz file" + created_at: 2014-02-03T17:22:54Z + modified_at: 2014-02-03T17:22:54Z collection_1_owned_by_fuse: uuid: zzzzz-4zz18-ovx05bfzormx3bg @@ -473,7 +562,7 @@ collection_with_one_property: # The following four collections are used to test combining collections with repeated filenames collection_with_repeated_filenames_and_contents_in_two_dirs_1: uuid: zzzzz-4zz18-duplicatenames1 - portable_data_hash: fa7aeb5140e2848d39b416daeef4ffc5+45 + portable_data_hash: f3a67fad3a19c31c658982fb8158fa58+144 owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz created_at: 2014-02-03T17:22:54Z modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr @@ -485,7 +574,7 @@ collection_with_repeated_filenames_and_contents_in_two_dirs_1: collection_with_repeated_filenames_and_contents_in_two_dirs_2: uuid: zzzzz-4zz18-duplicatenames2 - portable_data_hash: fa7aeb5140e2848d39b416daeef4ffc5+45 + portable_data_hash: f3a67fad3a19c31c658982fb8158fa58+144 owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz created_at: 2014-02-03T17:22:54Z modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr @@ -544,6 +633,73 @@ collection_with_several_unsupported_file_types: manifest_text: ". d41d8cd98f00b204e9800998ecf8427e+0 0:0:file 0:0:file.bam\n" name: collection_with_several_unsupported_file_types +collection_not_readable_by_active: + uuid: zzzzz-4zz18-cd42uwvy3neko21 + portable_data_hash: bb89eb5140e2848d39b416daeef4ffc5+45 + owner_uuid: zzzzz-tpzed-000000000000000 + created_at: 2014-02-03T17:22:54Z + modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr + modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f + modified_at: 2014-02-03T17:22:54Z + updated_at: 2014-02-03T17:22:54Z + manifest_text: ". 37b51d194a7513e45b56f6524f2d51f2+3 0:3:bar\n" + name: collection_not_readable_by_active + +collection_to_remove_and_rename_files: + uuid: zzzzz-4zz18-a21ux3541sxa8sf + portable_data_hash: 80cf6dd2cf079dd13f272ec4245cb4a8+48 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + created_at: 2014-02-03T17:22:54Z + modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr + modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f + modified_at: 2014-02-03T17:22:54Z + updated_at: 2014-02-03T17:22:54Z + manifest_text: ". d41d8cd98f00b204e9800998ecf8427e+0 0:0:file1 0:0:file2\n" + name: collection to remove and rename files + +collection_with_tags_owned_by_active: + uuid: zzzzz-4zz18-taggedcolletion + portable_data_hash: fa7aeb5140e2848d39b416daeef4ffc5+45 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + created_at: 2014-02-03T17:22:54Z + modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr + modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f + modified_at: 2014-02-03T17:22:54Z + updated_at: 2014-02-03T17:22:54Z + manifest_text: ". 37b51d194a7513e45b56f6524f2d51f2+3 0:3:bar\n" + name: collection with tags + properties: + existing tag 1: value for existing tag 1 + existing tag 2: value for existing tag 2 + +trashed_collection_to_test_name_conflict_on_untrash: + uuid: zzzzz-4zz18-trashedcolnamec + portable_data_hash: 80cf6dd2cf079dd13f272ec4245cb4a8+48 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + created_at: 2014-02-03T17:22:54Z + modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr + modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f + modified_at: 2014-02-03T17:22:54Z + updated_at: 2014-02-03T17:22:54Z + manifest_text: ". d41d8cd98f00b204e9800998ecf8427e+0 0:0:file1 0:0:file2\n" + name: same name for trashed and persisted collections + is_trashed: true + trash_at: 2001-01-01T00:00:00Z + delete_at: 2038-01-01T00:00:00Z + +same_name_as_trashed_coll_to_test_name_conflict_on_untrash: + uuid: zzzzz-4zz18-namesameastrash + portable_data_hash: 80cf6dd2cf079dd13f272ec4245cb4a8+48 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + created_at: 2014-02-03T17:22:54Z + modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr + modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f + modified_at: 2014-02-03T17:22:54Z + updated_at: 2014-02-03T17:22:54Z + manifest_text: ". d41d8cd98f00b204e9800998ecf8427e+0 0:0:file1 0:0:file2\n" + name: same name for trashed and persisted collections + + # Test Helper trims the rest of the file # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper @@ -557,6 +713,7 @@ collection_<%=i%>_of_10: uuid: zzzzz-4zz18-10gneyn6brkx<%= i.to_s.rjust(3, '0') %> owner_uuid: zzzzz-j7d0g-0010collections created_at: <%= i.minute.ago.to_s(:db) %> + modified_at: <%= i.minute.ago.to_s(:db) %> <% end %> # collections in project_with_201_collections @@ -568,6 +725,7 @@ collection_<%=i%>_of_201: uuid: zzzzz-4zz18-201gneyn6brd<%= i.to_s.rjust(3, '0') %> owner_uuid: zzzzz-j7d0g-0201collections created_at: <%= i.minute.ago.to_s(:db) %> + modified_at: <%= i.minute.ago.to_s(:db) %> <% end %> # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper