21910: Merge branch 'main' into 21910-remove-api_client_id
[arvados.git] / services / api / test / fixtures / logs.yml
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 noop: # nothing happened ...to the 'spectator' user
6   id: 1
7   uuid: zzzzz-57u5n-pshmckwoma9plh7
8   owner_uuid: zzzzz-tpzed-000000000000000
9   object_uuid: zzzzz-tpzed-l1s2piq4t4mps8r
10   object_owner_uuid: zzzzz-tpzed-000000000000000
11   event_at: <%= 1.minute.ago.to_fs(:db) %>
12   created_at: <%= 1.minute.ago.to_fs(:db) %>
13
14 admin_changes_collection_owned_by_active:
15   id: 2
16   uuid: zzzzz-57u5n-pshmckwoma00002
17   owner_uuid: zzzzz-tpzed-d9tiejq69daie8f # admin user
18   object_uuid: zzzzz-4zz18-bv31uwvy3neko21 # collection_owned_by_active
19   object_owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz # active user
20   created_at: <%= 2.minute.ago.to_fs(:db) %>
21   event_at: <%= 2.minute.ago.to_fs(:db) %>
22   event_type: update
23
24 admin_changes_collection_owned_by_foo:
25   id: 3
26   uuid: zzzzz-57u5n-pshmckwoma00003
27   owner_uuid: zzzzz-tpzed-d9tiejq69daie8f # admin user
28   object_uuid: zzzzz-4zz18-50surkhkbhsp31b # collection_owned_by_foo
29   object_owner_uuid: zzzzz-tpzed-81hsbo6mk8nl05c # foo user
30   created_at: <%= 3.minute.ago.to_fs(:db) %>
31   event_at: <%= 3.minute.ago.to_fs(:db) %>
32   event_type: update
33
34 system_adds_foo_file: # foo collection added, readable by active through link
35   id: 4
36   uuid: zzzzz-57u5n-pshmckwoma00004
37   owner_uuid: zzzzz-tpzed-000000000000000 # system user
38   object_uuid: zzzzz-4zz18-znfnqtbbv4spc3w # foo file
39   object_owner_uuid: zzzzz-tpzed-000000000000000 # system user
40   created_at: <%= 4.minute.ago.to_fs(:db) %>
41   event_at: <%= 4.minute.ago.to_fs(:db) %>
42   event_type: create
43
44 system_adds_baz: # baz collection added, readable by active and spectator through group 'all users' group membership
45   id: 5
46   uuid: zzzzz-57u5n-pshmckwoma00005
47   owner_uuid: zzzzz-tpzed-000000000000000 # system user
48   object_uuid: zzzzz-4zz18-y9vne9npefyxh8g # baz file
49   object_owner_uuid: zzzzz-tpzed-000000000000000 # system user
50   created_at: <%= 5.minute.ago.to_fs(:db) %>
51   event_at: <%= 5.minute.ago.to_fs(:db) %>
52   event_type: create
53
54 log_owned_by_active:
55   id: 6
56   uuid: zzzzz-57u5n-pshmckwoma12345
57   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz # active user
58   object_uuid: zzzzz-2x53u-382brsig8rp3667 # repository foo
59   object_owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz # active user
60   event_at: <%= 2.minute.ago.to_fs(:db) %>
61   summary: non-admin use can read own logs
62
63 stderr_for_ancient_container:
64   id: 12
65   uuid: zzzzz-57u5n-containerlog001
66   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
67   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
68   object_uuid: zzzzz-dz642-logscontainer01
69   event_at: <%= 2.year.ago.to_fs(:db) %>
70   event_type: stderr
71   summary: ~
72   properties:
73     text: '2013-11-07_23:33:41 zzzzz-dz642-logscontainer01 29610 1 stderr crunchstat:
74       cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user
75       0.9900 sys'
76   created_at: <%= 2.year.ago.to_fs(:db) %>
77   updated_at: <%= 2.year.ago.to_fs(:db) %>
78   modified_at: <%= 2.year.ago.to_fs(:db) %>
79   object_owner_uuid: zzzzz-j7d0g-xurymjxw79nv3jz
80
81 crunchstat_for_ancient_container:
82   id: 13
83   uuid: zzzzz-57u5n-containerlog002
84   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
85   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
86   object_uuid: zzzzz-dz642-logscontainer01
87   event_at: <%= 2.year.ago.to_fs(:db) %>
88   event_type: crunchstat
89   summary: ~
90   properties:
91     text: '2013-11-07_23:33:41 zzzzz-dz642-logscontainer01 29610 1 stderr crunchstat:
92       cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user
93       0.9900 sys'
94   created_at: <%= 2.year.ago.to_fs(:db) %>
95   updated_at: <%= 2.year.ago.to_fs(:db) %>
96   modified_at: <%= 2.year.ago.to_fs(:db) %>
97   object_owner_uuid: zzzzz-j7d0g-xurymjxw79nv3jz
98
99 stderr_for_previous_container:
100   id: 14
101   uuid: zzzzz-57u5n-containerlog003
102   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
103   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
104   object_uuid: zzzzz-dz642-logscontainer02
105   event_at: <%= 1.month.ago.to_fs(:db) %>
106   event_type: stderr
107   summary: ~
108   properties:
109     text: '2013-11-07_23:33:41 zzzzz-dz642-logscontainer02 29610 1 stderr crunchstat:
110       cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user
111       0.9900 sys'
112   created_at: <%= 1.month.ago.to_fs(:db) %>
113   updated_at: <%= 1.month.ago.to_fs(:db) %>
114   modified_at: <%= 1.month.ago.to_fs(:db) %>
115   object_owner_uuid: zzzzz-j7d0g-xurymjxw79nv3jz
116
117 crunchstat_for_previous_container:
118   id: 15
119   uuid: zzzzz-57u5n-containerlog004
120   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
121   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
122   object_uuid: zzzzz-dz642-logscontainer02
123   event_at: <%= 1.month.ago.to_fs(:db) %>
124   event_type: crunchstat
125   summary: ~
126   properties:
127     text: '2013-11-07_23:33:41 zzzzz-dz642-logscontainer02 29610 1 stderr crunchstat:
128       cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user
129       0.9900 sys'
130   created_at: <%= 1.month.ago.to_fs(:db) %>
131   updated_at: <%= 1.month.ago.to_fs(:db) %>
132   modified_at: <%= 1.month.ago.to_fs(:db) %>
133   object_owner_uuid: zzzzz-j7d0g-xurymjxw79nv3jz
134
135 stderr_for_running_container:
136   id: 16
137   uuid: zzzzz-57u5n-containerlog005
138   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
139   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
140   object_uuid: zzzzz-dz642-logscontainer03
141   event_at: <%= 1.hour.ago.to_fs(:db) %>
142   event_type: crunchstat
143   summary: ~
144   properties:
145     text: '2013-11-07_23:33:41 zzzzz-dz642-logscontainer03 29610 1 stderr crunchstat:
146       cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user
147       0.9900 sys'
148   created_at: <%= 1.hour.ago.to_fs(:db) %>
149   updated_at: <%= 1.hour.ago.to_fs(:db) %>
150   modified_at: <%= 1.hour.ago.to_fs(:db) %>
151   object_owner_uuid: zzzzz-j7d0g-xurymjxw79nv3jz
152
153 crunchstat_for_running_container:
154   id: 17
155   uuid: zzzzz-57u5n-containerlog006
156   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
157   modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz
158   object_uuid: zzzzz-dz642-logscontainer03
159   event_at: <%= 1.hour.ago.to_fs(:db) %>
160   event_type: crunchstat
161   summary: ~
162   properties:
163     text: '2013-11-07_23:33:41 zzzzz-dz642-logscontainer03 29610 1 stderr crunchstat:
164       cpu 1935.4300 user 59.4100 sys 8 cpus -- interval 10.0002 seconds 12.9900 user
165       0.9900 sys'
166   created_at: <%= 1.hour.ago.to_fs(:db) %>
167   updated_at: <%= 1.hour.ago.to_fs(:db) %>
168   modified_at: <%= 1.hour.ago.to_fs(:db) %>
169   object_owner_uuid: zzzzz-j7d0g-xurymjxw79nv3jz