X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0510460e9c5ad8f3d8cf20aa9428115e43284659..7086db26dce2ed43098daf1198a37412a5e42e48:/services/api/test/fixtures/logs.yml?ds=sidebyside diff --git a/services/api/test/fixtures/logs.yml b/services/api/test/fixtures/logs.yml index d805439a6c..058c38772c 100644 --- a/services/api/test/fixtures/logs.yml +++ b/services/api/test/fixtures/logs.yml @@ -1,3 +1,46 @@ log1: + id: 1 uuid: zzzzz-xxxxx-pshmckwoma9plh7 - object_uuid: zzzzz-tpzed-l1s2piq4t4mps8r \ No newline at end of file + object_uuid: zzzzz-tpzed-l1s2piq4t4mps8r + event_at: <%= 1.minute.ago.to_s(:db) %> + +log2: # admin changes repository2, which is owned by active user + id: 2 + uuid: zzzzz-xxxxx-pshmckwoma00002 + owner_uuid: zzzzz-tpzed-d9tiejq69daie8f # admin user + object_uuid: zzzzz-2x53u-382brsig8rp3667 # repository foo + object_owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz # active user + event_at: <%= 2.minute.ago.to_s(:db) %> + +log3: # admin changes specimen owned_by_spectator + id: 3 + uuid: zzzzz-xxxxx-pshmckwoma00003 + owner_uuid: zzzzz-tpzed-d9tiejq69daie8f # admin user + object_uuid: zzzzz-2x53u-3b0xxwzlbzxq5yr # specimen owned_by_spectator + object_owner_uuid: zzzzz-tpzed-l1s2piq4t4mps8r # spectator user + event_at: <%= 3.minute.ago.to_s(:db) %> + +log4: # foo collection added, readable by active through link + id: 4 + uuid: zzzzz-xxxxx-pshmckwoma00004 + owner_uuid: zzzzz-tpzed-000000000000000 # system user + object_uuid: zzzzz-4zz18-znfnqtbbv4spc3w # foo file + object_owner_uuid: zzzzz-tpzed-000000000000000 # system user + event_at: <%= 4.minute.ago.to_s(:db) %> + +log5: # baz collection added, readable by active and spectator through group 'all users' group membership + id: 5 + uuid: zzzzz-xxxxx-pshmckwoma00005 + owner_uuid: zzzzz-tpzed-000000000000000 # system user + object_uuid: zzzzz-4zz18-y9vne9npefyxh8g # baz file + object_owner_uuid: zzzzz-tpzed-000000000000000 # system user + event_at: <%= 5.minute.ago.to_s(:db) %> + +log_owned_by_active: + id: 6 + uuid: zzzzz-xxxxx-pshmckwoma12345 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz # active user + object_uuid: zzzzz-2x53u-382brsig8rp3667 # repository foo + object_owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz # active user + event_at: <%= 2.minute.ago.to_s(:db) %> + summary: non-admin use can read own logs