X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c86cbaa6f286e50900dae3203a42044449e042f7..b5c15775caf865d8fed5d4839d4a082f6518bba4:/services/api/test/fixtures/jobs.yml diff --git a/services/api/test/fixtures/jobs.yml b/services/api/test/fixtures/jobs.yml index 809ba0e138..54b38259ba 100644 --- a/services/api/test/fixtures/jobs.yml +++ b/services/api/test/fixtures/jobs.yml @@ -1,11 +1,15 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + running: uuid: zzzzz-8i9sb-pshmckwoma9plh7 owner_uuid: zzzzz-j7d0g-v955i6s2oi1cbso cancelled_at: ~ cancelled_by_user_uuid: ~ cancelled_by_client_uuid: ~ - created_at: <%= 3.minute.ago.to_s(:db) %> - started_at: <%= 3.minute.ago.to_s(:db) %> + created_at: <%= 2.7.minute.ago.to_fs(:db) %> + started_at: <%= 2.7.minute.ago.to_fs(:db) %> finished_at: ~ script: hash repository: active/foo @@ -28,11 +32,11 @@ running: running_cancelled: uuid: zzzzz-8i9sb-4cf0nhn6xte809j owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz - cancelled_at: <%= 1.minute.ago.to_s(:db) %> + cancelled_at: <%= 1.minute.ago.to_fs(:db) %> cancelled_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz cancelled_by_client_uuid: zzzzz-ozdt8-obw7foaks3qjyej - created_at: <%= 4.minute.ago.to_s(:db) %> - started_at: <%= 3.minute.ago.to_s(:db) %> + created_at: <%= 4.minute.ago.to_fs(:db) %> + started_at: <%= 3.minute.ago.to_fs(:db) %> finished_at: ~ script: hash repository: active/foo @@ -59,9 +63,9 @@ uses_nonexistent_script_version: cancelled_by_user_uuid: ~ cancelled_by_client_uuid: ~ script_version: 7def43a4d3f20789dda4700f703b5514cc3ed250 - created_at: <%= 5.minute.ago.to_s(:db) %> - started_at: <%= 3.minute.ago.to_s(:db) %> - finished_at: <%= 2.minute.ago.to_s(:db) %> + created_at: <%= 5.minute.ago.to_fs(:db) %> + started_at: <%= 3.minute.ago.to_fs(:db) %> + finished_at: <%= 2.minute.ago.to_fs(:db) %> script: hash repository: active/foo running: false @@ -90,9 +94,9 @@ foobar: script_version: 7def43a4d3f20789dda4700f703b5514cc3ed250 script_parameters: input: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45 - created_at: <%= 4.minute.ago.to_s(:db) %> - started_at: <%= 3.minute.ago.to_s(:db) %> - finished_at: <%= 2.minute.ago.to_s(:db) %> + created_at: <%= 4.minute.ago.to_fs(:db) %> + started_at: <%= 3.minute.ago.to_fs(:db) %> + finished_at: <%= 2.minute.ago.to_fs(:db) %> running: false success: true output: fa7aeb5140e2848d39b416daeef4ffc5+45 @@ -118,9 +122,9 @@ barbaz: script_parameters: input: fa7aeb5140e2848d39b416daeef4ffc5+45 an_integer: 1 - created_at: <%= 4.minute.ago.to_s(:db) %> - started_at: <%= 3.minute.ago.to_s(:db) %> - finished_at: <%= 2.minute.ago.to_s(:db) %> + created_at: <%= 4.minute.ago.to_fs(:db) %> + started_at: <%= 3.minute.ago.to_fs(:db) %> + finished_at: <%= 2.minute.ago.to_fs(:db) %> running: false success: true repository: active/foo @@ -147,9 +151,9 @@ runningbarbaz: script_parameters: input: fa7aeb5140e2848d39b416daeef4ffc5+45 an_integer: 1 - created_at: <%= 4.minute.ago.to_s(:db) %> - started_at: <%= 3.minute.ago.to_s(:db) %> - finished_at: <%= 2.minute.ago.to_s(:db) %> + created_at: <%= 4.minute.ago.to_fs(:db) %> + started_at: <%= 3.minute.ago.to_fs(:db) %> + finished_at: <%= 2.minute.ago.to_fs(:db) %> running: true success: ~ repository: active/foo @@ -168,8 +172,8 @@ runningbarbaz: previous_job_run: uuid: zzzzz-8i9sb-cjs4pklxxjykqqq - created_at: <%= 14.minute.ago.to_s(:db) %> - finished_at: <%= 13.minutes.ago.to_s(:db) %> + created_at: <%= 14.minute.ago.to_fs(:db) %> + finished_at: <%= 13.minutes.ago.to_fs(:db) %> owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz repository: active/foo script: hash @@ -183,10 +187,27 @@ previous_job_run: state: Complete script_parameters_digest: a5f03bbfb8ba88a2efe4a7852671605b +previous_job_run_nil_log: + uuid: zzzzz-8i9sb-cjs4pklxxjykqq3 + created_at: <%= 14.minute.ago.to_fs(:db) %> + finished_at: <%= 13.minutes.ago.to_fs(:db) %> + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + repository: active/foo + script: hash + script_version: 4fe459abe02d9b365932b8f5dc419439ab4e2577 + script_parameters: + input: fa7aeb5140e2848d39b416daeef4ffc5+45 + an_integer: "3" + success: true + log: ~ + output: ea10d51bcf88862dbcc36eb292017dfd+45 + state: Complete + script_parameters_digest: 445702df4029b8a6e7075b451ff1256a + previous_ancient_job_run: uuid: zzzzz-8i9sb-ahd7cie8jah9qui - created_at: <%= 366.days.ago.to_s(:db) %> - finished_at: <%= 365.days.ago.to_s(:db) %> + created_at: <%= 366.days.ago.to_fs(:db) %> + finished_at: <%= 365.days.ago.to_fs(:db) %> owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz repository: active/foo script: hash @@ -202,7 +223,7 @@ previous_ancient_job_run: previous_docker_job_run: uuid: zzzzz-8i9sb-k6emstgk4kw4yhi - created_at: <%= 14.minute.ago.to_s(:db) %> + created_at: <%= 14.minute.ago.to_fs(:db) %> owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz repository: active/foo script: hash @@ -217,10 +238,11 @@ previous_docker_job_run: docker_image_locator: fa3c1a9cb6783f85f2ecda037e07b8c3+167 state: Complete script_parameters_digest: a5f03bbfb8ba88a2efe4a7852671605b + log: ea10d51bcf88862dbcc36eb292017dfd+45 previous_ancient_docker_image_job_run: uuid: zzzzz-8i9sb-t3b460aolxxuldl - created_at: <%= 144.minute.ago.to_s(:db) %> + created_at: <%= 144.minute.ago.to_fs(:db) %> owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz repository: active/foo script: hash @@ -238,7 +260,7 @@ previous_ancient_docker_image_job_run: previous_job_run_with_arvados_sdk_version: uuid: zzzzz-8i9sb-eoo0321or2dw2jg - created_at: <%= 14.minute.ago.to_s(:db) %> + created_at: <%= 14.minute.ago.to_fs(:db) %> owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz repository: active/foo script: hash @@ -255,10 +277,11 @@ previous_job_run_with_arvados_sdk_version: output: ea10d51bcf88862dbcc36eb292017dfd+45 state: Complete script_parameters_digest: a5f03bbfb8ba88a2efe4a7852671605b + log: ea10d51bcf88862dbcc36eb292017dfd+45 previous_job_run_no_output: uuid: zzzzz-8i9sb-cjs4pklxxjykppp - created_at: <%= 14.minute.ago.to_s(:db) %> + created_at: <%= 14.minute.ago.to_fs(:db) %> owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz repository: active/foo script: hash @@ -274,7 +297,7 @@ previous_job_run_no_output: previous_job_run_superseded_by_hash_branch: # This supplied_script_version is a branch name with later commits. uuid: zzzzz-8i9sb-aeviezu5dahph3e - created_at: <%= 15.minute.ago.to_s(:db) %> + created_at: <%= 15.minute.ago.to_fs(:db) %> owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz repository: active/shabranchnames script: testscript @@ -288,7 +311,7 @@ previous_job_run_superseded_by_hash_branch: nondeterminisic_job_run: uuid: zzzzz-8i9sb-cjs4pklxxjykyyy - created_at: <%= 14.minute.ago.to_s(:db) %> + created_at: <%= 14.minute.ago.to_fs(:db) %> owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz repository: active/foo script: hash2 @@ -303,14 +326,14 @@ nondeterminisic_job_run: nearly_finished_job: uuid: zzzzz-8i9sb-2gx6rz0pjl033w3 - created_at: <%= 14.minute.ago.to_s(:db) %> + created_at: <%= 14.minute.ago.to_fs(:db) %> owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz repository: arvados script: doesnotexist script_version: 309e25a64fe994867db8459543af372f850e25b9 script_parameters: input: b519d9cb706a29fc7ea24dbea2f05851+249025 - started_at: <%= 3.minute.ago.to_s(:db) %> + started_at: <%= 3.minute.ago.to_fs(:db) %> finished_at: ~ running: true success: ~ @@ -325,7 +348,7 @@ nearly_finished_job: queued: uuid: zzzzz-8i9sb-grx15v5mjnsyxk7 - created_at: <%= 1.minute.ago.to_s(:db) %> + created_at: <%= 1.minute.ago.to_fs(:db) %> owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz cancelled_at: ~ cancelled_by_user_uuid: ~ @@ -359,11 +382,11 @@ job_with_real_log: cancelled: uuid: zzzzz-8i9sb-4cf0abc123e809j owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz - cancelled_at: <%= 1.minute.ago.to_s(:db) %> + cancelled_at: <%= 1.minute.ago.to_fs(:db) %> cancelled_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz cancelled_by_client_uuid: zzzzz-ozdt8-obw7foaks3qjyej - created_at: <%= 4.minute.ago.to_s(:db) %> - started_at: <%= 3.minute.ago.to_s(:db) %> + created_at: <%= 4.minute.ago.to_fs(:db) %> + started_at: <%= 3.minute.ago.to_fs(:db) %> finished_at: ~ script_version: 1de84a854e2b440dc53bf42f8548afa4c17da332 running: false @@ -392,14 +415,25 @@ job_in_subproject: state: Complete script_parameters_digest: 99914b932bd37a50b983c5e7c90ae93b +job_in_trashed_project: + uuid: zzzzz-8i9sb-subprojectjob02 + created_at: 2014-10-15 12:00:00 + owner_uuid: zzzzz-j7d0g-trashedproject2 + log: ~ + repository: active/foo + script: hash + script_version: 4fe459abe02d9b365932b8f5dc419439ab4e2577 + state: Complete + script_parameters_digest: 99914b932bd37a50b983c5e7c90ae93b + running_will_be_completed: uuid: zzzzz-8i9sb-rshmckwoma9pjh8 owner_uuid: zzzzz-j7d0g-v955i6s2oi1cbso cancelled_at: ~ cancelled_by_user_uuid: ~ cancelled_by_client_uuid: ~ - created_at: <%= 3.minute.ago.to_s(:db) %> - started_at: <%= 3.minute.ago.to_s(:db) %> + created_at: <%= 3.minute.ago.to_fs(:db) %> + started_at: <%= 3.minute.ago.to_fs(:db) %> finished_at: ~ script_version: 1de84a854e2b440dc53bf42f8548afa4c17da332 running: true @@ -462,12 +496,12 @@ job_with_latest_version: script: hash repository: active/foo script_version: 7def43a4d3f20789dda4700f703b5514cc3ed250 - supplied_script_version: master + supplied_script_version: main script_parameters: input: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45 - created_at: <%= 3.minute.ago.to_s(:db) %> - started_at: <%= 2.minute.ago.to_s(:db) %> - finished_at: <%= 1.minute.ago.to_s(:db) %> + created_at: <%= 3.minute.ago.to_fs(:db) %> + started_at: <%= 2.minute.ago.to_fs(:db) %> + finished_at: <%= 1.minute.ago.to_fs(:db) %> running: false success: true output: fa7aeb5140e2848d39b416daeef4ffc5+45 @@ -487,7 +521,7 @@ running_job_in_publicly_accessible_project: uuid: zzzzz-8i9sb-n7omg50bvt0m1nf owner_uuid: zzzzz-j7d0g-zhxawtyetzwc5f0 modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz - repository: active/foo + repository: active/bar script: running_job_script script_version: 4fe459abe02d9b365932b8f5dc419439ab4e2577 state: Running @@ -510,8 +544,8 @@ completed_job_in_publicly_accessible_project: log: zzzzz-4zz18-4en62shvi99lxd4 output: b519d9cb706a29fc7ea24dbea2f05851+93 script_parameters_digest: 02a085407e751d00b5dc88f1bd5e8247 - started_at: <%= 10.minute.ago.to_s(:db) %> - finished_at: <%= 5.minute.ago.to_s(:db) %> + started_at: <%= 10.minute.ago.to_fs(:db) %> + finished_at: <%= 5.minute.ago.to_fs(:db) %> job_in_publicly_accessible_project_but_other_objects_elsewhere: uuid: zzzzz-8i9sb-jyq01muyhgr4ofj @@ -534,8 +568,8 @@ running_job_with_components: cancelled_at: ~ cancelled_by_user_uuid: ~ cancelled_by_client_uuid: ~ - created_at: <%= 3.minute.ago.to_s(:db) %> - started_at: <%= 3.minute.ago.to_s(:db) %> + created_at: <%= 3.minute.ago.to_fs(:db) %> + started_at: <%= 3.minute.ago.to_fs(:db) %> finished_at: ~ script: hash repository: active/foo @@ -565,8 +599,8 @@ running_job_with_components_at_level_1: cancelled_at: ~ cancelled_by_user_uuid: ~ cancelled_by_client_uuid: ~ - created_at: <%= 12.hour.ago.to_s(:db) %> - started_at: <%= 12.hour.ago.to_s(:db) %> + created_at: <%= 12.hour.ago.to_fs(:db) %> + started_at: <%= 12.hour.ago.to_fs(:db) %> finished_at: ~ repository: active/foo script: hash @@ -596,8 +630,8 @@ running_job_with_components_at_level_2: cancelled_at: ~ cancelled_by_user_uuid: ~ cancelled_by_client_uuid: ~ - created_at: <%= 12.hour.ago.to_s(:db) %> - started_at: <%= 12.hour.ago.to_s(:db) %> + created_at: <%= 12.hour.ago.to_fs(:db) %> + started_at: <%= 12.hour.ago.to_fs(:db) %> finished_at: ~ repository: active/foo script: hash @@ -626,8 +660,8 @@ running_job_1_with_components_at_level_3: cancelled_at: ~ cancelled_by_user_uuid: ~ cancelled_by_client_uuid: ~ - created_at: <%= 12.hour.ago.to_s(:db) %> - started_at: <%= 12.hour.ago.to_s(:db) %> + created_at: <%= 12.hour.ago.to_fs(:db) %> + started_at: <%= 12.hour.ago.to_fs(:db) %> finished_at: ~ repository: active/foo script: hash @@ -653,8 +687,8 @@ running_job_2_with_components_at_level_3: cancelled_at: ~ cancelled_by_user_uuid: ~ cancelled_by_client_uuid: ~ - created_at: <%= 12.hour.ago.to_s(:db) %> - started_at: <%= 12.hour.ago.to_s(:db) %> + created_at: <%= 12.hour.ago.to_fs(:db) %> + started_at: <%= 12.hour.ago.to_fs(:db) %> finished_at: ~ repository: active/foo script: hash @@ -681,8 +715,8 @@ running_job_1_with_circular_component_relationship: cancelled_at: ~ cancelled_by_user_uuid: ~ cancelled_by_client_uuid: ~ - created_at: <%= 12.hour.ago.to_s(:db) %> - started_at: <%= 12.hour.ago.to_s(:db) %> + created_at: <%= 12.hour.ago.to_fs(:db) %> + started_at: <%= 12.hour.ago.to_fs(:db) %> finished_at: ~ repository: active/foo script: hash @@ -710,8 +744,8 @@ running_job_2_with_circular_component_relationship: cancelled_at: ~ cancelled_by_user_uuid: ~ cancelled_by_client_uuid: ~ - created_at: <%= 12.hour.ago.to_s(:db) %> - started_at: <%= 12.hour.ago.to_s(:db) %> + created_at: <%= 12.hour.ago.to_fs(:db) %> + started_at: <%= 12.hour.ago.to_fs(:db) %> finished_at: ~ repository: active/foo script: hash