X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f6d1dd8018f7facf8e4c1f3c82ce777fec1d5a6a..7499f61a2912cfdb1a316808fafa6e6ee77ee2e0:/services/api/test/fixtures/logs.yml diff --git a/services/api/test/fixtures/logs.yml b/services/api/test/fixtures/logs.yml index 058c38772c..25f1efff62 100644 --- a/services/api/test/fixtures/logs.yml +++ b/services/api/test/fixtures/logs.yml @@ -1,46 +1,270 @@ -log1: +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + +noop: # nothing happened ...to the 'spectator' user id: 1 - uuid: zzzzz-xxxxx-pshmckwoma9plh7 + uuid: zzzzz-57u5n-pshmckwoma9plh7 + owner_uuid: zzzzz-tpzed-000000000000000 object_uuid: zzzzz-tpzed-l1s2piq4t4mps8r + object_owner_uuid: zzzzz-tpzed-000000000000000 event_at: <%= 1.minute.ago.to_s(:db) %> + created_at: <%= 1.minute.ago.to_s(:db) %> -log2: # admin changes repository2, which is owned by active user +admin_changes_repository2: # admin changes repository2, which is owned by active user id: 2 - uuid: zzzzz-xxxxx-pshmckwoma00002 + uuid: zzzzz-57u5n-pshmckwoma00002 owner_uuid: zzzzz-tpzed-d9tiejq69daie8f # admin user object_uuid: zzzzz-2x53u-382brsig8rp3667 # repository foo object_owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz # active user + created_at: <%= 2.minute.ago.to_s(:db) %> event_at: <%= 2.minute.ago.to_s(:db) %> + event_type: update -log3: # admin changes specimen owned_by_spectator +admin_changes_specimen: # admin changes specimen owned_by_spectator id: 3 - uuid: zzzzz-xxxxx-pshmckwoma00003 + uuid: zzzzz-57u5n-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 + created_at: <%= 3.minute.ago.to_s(:db) %> event_at: <%= 3.minute.ago.to_s(:db) %> + event_type: update -log4: # foo collection added, readable by active through link +system_adds_foo_file: # foo collection added, readable by active through link id: 4 - uuid: zzzzz-xxxxx-pshmckwoma00004 + uuid: zzzzz-57u5n-pshmckwoma00004 owner_uuid: zzzzz-tpzed-000000000000000 # system user object_uuid: zzzzz-4zz18-znfnqtbbv4spc3w # foo file object_owner_uuid: zzzzz-tpzed-000000000000000 # system user + created_at: <%= 4.minute.ago.to_s(:db) %> event_at: <%= 4.minute.ago.to_s(:db) %> + event_type: create -log5: # baz collection added, readable by active and spectator through group 'all users' group membership +system_adds_baz: # baz collection added, readable by active and spectator through group 'all users' group membership id: 5 - uuid: zzzzz-xxxxx-pshmckwoma00005 + uuid: zzzzz-57u5n-pshmckwoma00005 owner_uuid: zzzzz-tpzed-000000000000000 # system user object_uuid: zzzzz-4zz18-y9vne9npefyxh8g # baz file object_owner_uuid: zzzzz-tpzed-000000000000000 # system user + created_at: <%= 5.minute.ago.to_s(:db) %> event_at: <%= 5.minute.ago.to_s(:db) %> + event_type: create log_owned_by_active: id: 6 - uuid: zzzzz-xxxxx-pshmckwoma12345 + uuid: zzzzz-57u5n-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 + +crunchstat_for_running_job: + id: 7 + uuid: zzzzz-57u5n-tmymyrojrbtnxh1 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + modified_by_client_uuid: zzzzz-ozdt8-obw7foaks3qjyej + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + object_uuid: zzzzz-8i9sb-pshmckwoma9plh7 + event_at: 2014-11-07 23:33:42.347455000 Z + event_type: stderr + summary: ~ + properties: + text: '2014-11-07_23:33:41 zzzzz-8i9sb-pshmckwoma9plh7 31708 1 stderr crunchstat: + cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user + 0.9900 sys' + created_at: 2014-11-07 23:33:42.351913000 Z + updated_at: 2014-11-07 23:33:42.347455000 Z + modified_at: 2014-11-07 23:33:42.347455000 Z + object_owner_uuid: zzzzz-j7d0g-v955i6s2oi1cbso + +log_line_for_pipeline_in_publicly_accessible_project: + id: 8 + uuid: zzzzz-57u5n-tmymyrojrjyhb45 + owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0 + modified_by_client_uuid: zzzzz-ozdt8-obw7foaks3qjyej + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + object_uuid: zzzzz-d1hrv-n68vc490mloy4fi + event_at: 2014-11-07 23:33:42.347455000 Z + event_type: stderr + summary: ~ + properties: + text: '2014-11-07_23:33:41 zzzzz-d1hrv-n68vc490mloy4fi 31708 1 stderr crunchstat: + cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user + 0.9900 sys' + created_at: 2014-11-07 23:33:42.351913000 Z + updated_at: 2014-11-07 23:33:42.347455000 Z + modified_at: 2014-11-07 23:33:42.347455000 Z + object_owner_uuid: zzzzz-j7d0g-v955i6s2oi1cbso + +log_line_for_pipeline_in_publicly_accessible_project_but_other_objects_elsewhere: + id: 9 + uuid: zzzzz-57u5n-tmyhy56k9lnhb45 + owner_uuid: zzzzz-j7d0g-v955i6s2oi1cbso + modified_by_client_uuid: zzzzz-ozdt8-obw7foaks3qjyej + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + object_uuid: zzzzz-d1hrv-pisharednotobjs + event_at: 2014-11-07 23:33:42.347455000 Z + event_type: stderr + summary: ~ + properties: + text: '2014-11-07_23:33:41 zzzzz-d1hrv-pisharednotobjs 31708 1 stderr crunchstat: + cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user + 0.9900 sys' + created_at: 2014-11-07 23:33:42.351913000 Z + updated_at: 2014-11-07 23:33:42.347455000 Z + modified_at: 2014-11-07 23:33:42.347455000 Z + object_owner_uuid: zzzzz-j7d0g-v955i6s2oi1cbso + +crunchstat_for_previous_job: + id: 10 + uuid: zzzzz-57u5n-eir3aesha3kaene + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + modified_by_client_uuid: zzzzz-ozdt8-obw7foaks3qjyej + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + object_uuid: zzzzz-8i9sb-cjs4pklxxjykqqq + event_at: 2014-11-07 23:33:42.347455000 Z + event_type: stderr + summary: ~ + properties: + text: '2014-11-07_23:33:41 zzzzz-8i9sb-cjs4pklxxjykqqq 11592 1 stderr crunchstat: + cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user + 0.9900 sys' + created_at: 2014-11-07 23:33:42.351913000 Z + updated_at: 2014-11-07 23:33:42.347455000 Z + modified_at: 2014-11-07 23:33:42.347455000 Z + object_owner_uuid: zzzzz-j7d0g-xurymjxw79nv3jz + +crunchstat_for_ancient_job: + id: 11 + uuid: zzzzz-57u5n-ixioph7ieb5ung8 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + modified_by_client_uuid: zzzzz-ozdt8-obw7foaks3qjyej + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + object_uuid: zzzzz-8i9sb-ahd7cie8jah9qui + event_at: 2013-11-07 23:33:42.347455000 Z + event_type: stderr + summary: ~ + properties: + text: '2013-11-07_23:33:41 zzzzz-8i9sb-ahd7cie8jah9qui 29610 1 stderr crunchstat: + cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user + 0.9900 sys' + created_at: 2013-11-07 23:33:42.351913000 Z + updated_at: 2013-11-07 23:33:42.347455000 Z + modified_at: 2013-11-07 23:33:42.347455000 Z + object_owner_uuid: zzzzz-j7d0g-xurymjxw79nv3jz + +stderr_for_ancient_container: + id: 12 + uuid: zzzzz-57u5n-containerlog001 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + modified_by_client_uuid: zzzzz-ozdt8-obw7foaks3qjyej + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + object_uuid: zzzzz-dz642-logscontainer01 + event_at: <%= 2.year.ago.to_s(:db) %> + event_type: stderr + summary: ~ + properties: + text: '2013-11-07_23:33:41 zzzzz-8i9sb-ahd7cie8jah9qui 29610 1 stderr crunchstat: + cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user + 0.9900 sys' + created_at: <%= 2.year.ago.to_s(:db) %> + updated_at: <%= 2.year.ago.to_s(:db) %> + modified_at: <%= 2.year.ago.to_s(:db) %> + object_owner_uuid: zzzzz-j7d0g-xurymjxw79nv3jz + +crunchstat_for_ancient_container: + id: 13 + uuid: zzzzz-57u5n-containerlog002 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + modified_by_client_uuid: zzzzz-ozdt8-obw7foaks3qjyej + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + object_uuid: zzzzz-dz642-logscontainer01 + event_at: <%= 2.year.ago.to_s(:db) %> + event_type: crunchstat + summary: ~ + properties: + text: '2013-11-07_23:33:41 zzzzz-8i9sb-ahd7cie8jah9qui 29610 1 stderr crunchstat: + cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user + 0.9900 sys' + created_at: <%= 2.year.ago.to_s(:db) %> + updated_at: <%= 2.year.ago.to_s(:db) %> + modified_at: <%= 2.year.ago.to_s(:db) %> + object_owner_uuid: zzzzz-j7d0g-xurymjxw79nv3jz + +stderr_for_previous_container: + id: 14 + uuid: zzzzz-57u5n-containerlog003 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + modified_by_client_uuid: zzzzz-ozdt8-obw7foaks3qjyej + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + object_uuid: zzzzz-dz642-logscontainer02 + event_at: <%= 1.month.ago.to_s(:db) %> + event_type: stderr + summary: ~ + properties: + text: '2013-11-07_23:33:41 zzzzz-8i9sb-ahd7cie8jah9qui 29610 1 stderr crunchstat: + cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user + 0.9900 sys' + created_at: <%= 1.month.ago.to_s(:db) %> + updated_at: <%= 1.month.ago.to_s(:db) %> + modified_at: <%= 1.month.ago.to_s(:db) %> + object_owner_uuid: zzzzz-j7d0g-xurymjxw79nv3jz + +crunchstat_for_previous_container: + id: 15 + uuid: zzzzz-57u5n-containerlog004 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + modified_by_client_uuid: zzzzz-ozdt8-obw7foaks3qjyej + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + object_uuid: zzzzz-dz642-logscontainer02 + event_at: <%= 1.month.ago.to_s(:db) %> + event_type: crunchstat + summary: ~ + properties: + text: '2013-11-07_23:33:41 zzzzz-8i9sb-ahd7cie8jah9qui 29610 1 stderr crunchstat: + cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user + 0.9900 sys' + created_at: <%= 1.month.ago.to_s(:db) %> + updated_at: <%= 1.month.ago.to_s(:db) %> + modified_at: <%= 1.month.ago.to_s(:db) %> + object_owner_uuid: zzzzz-j7d0g-xurymjxw79nv3jz + +stderr_for_running_container: + id: 16 + uuid: zzzzz-57u5n-containerlog005 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + modified_by_client_uuid: zzzzz-ozdt8-obw7foaks3qjyej + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + object_uuid: zzzzz-dz642-logscontainer03 + event_at: <%= 1.hour.ago.to_s(:db) %> + event_type: crunchstat + summary: ~ + properties: + text: '2013-11-07_23:33:41 zzzzz-8i9sb-ahd7cie8jah9qui 29610 1 stderr crunchstat: + cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user + 0.9900 sys' + created_at: <%= 1.hour.ago.to_s(:db) %> + updated_at: <%= 1.hour.ago.to_s(:db) %> + modified_at: <%= 1.hour.ago.to_s(:db) %> + object_owner_uuid: zzzzz-j7d0g-xurymjxw79nv3jz + +crunchstat_for_running_container: + id: 17 + uuid: zzzzz-57u5n-containerlog006 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + modified_by_client_uuid: zzzzz-ozdt8-obw7foaks3qjyej + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + object_uuid: zzzzz-dz642-logscontainer03 + event_at: <%= 1.hour.ago.to_s(:db) %> + event_type: crunchstat + summary: ~ + properties: + text: '2013-11-07_23:33:41 zzzzz-8i9sb-ahd7cie8jah9qui 29610 1 stderr crunchstat: + cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user + 0.9900 sys' + created_at: <%= 1.hour.ago.to_s(:db) %> + updated_at: <%= 1.hour.ago.to_s(:db) %> + modified_at: <%= 1.hour.ago.to_s(:db) %> + object_owner_uuid: zzzzz-j7d0g-xurymjxw79nv3jz