X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/45cc809dfeab1d603e80cec3d44770d7f5a7c8ae..HEAD:/services/api/test/fixtures/container_requests.yml diff --git a/services/api/test/fixtures/container_requests.yml b/services/api/test/fixtures/container_requests.yml index ab0400a678..3b035416cb 100644 --- a/services/api/test/fixtures/container_requests.yml +++ b/services/api/test/fixtures/container_requests.yml @@ -8,9 +8,9 @@ queued: name: queued state: Committed priority: 1 - created_at: <%= 2.minute.ago.to_s(:db) %> - updated_at: <%= 1.minute.ago.to_s(:db) %> - modified_at: <%= 1.minute.ago.to_s(:db) %> + created_at: <%= 2.minute.ago.to_fs(:db) %> + updated_at: <%= 1.minute.ago.to_fs(:db) %> + modified_at: <%= 1.minute.ago.to_fs(:db) %> modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz container_image: test cwd: test @@ -20,6 +20,11 @@ queued: runtime_constraints: vcpus: 1 ram: 123 + cuda: + driver_version: "" + hardware_capability: "" + device_count: 0 + mounts: {} running: uuid: zzzzz-xvhdp-cr4runningcntnr @@ -27,15 +32,19 @@ running: name: running state: Committed priority: 501 - created_at: <%= 2.minute.ago.to_s(:db) %> - updated_at: <%= 1.minute.ago.to_s(:db) %> - modified_at: <%= 1.minute.ago.to_s(:db) %> + created_at: <%= 2.minute.ago.to_fs(:db) %> + updated_at: <%= 1.minute.ago.to_fs(:db) %> + modified_at: <%= 1.minute.ago.to_fs(:db) %> modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz container_image: test cwd: test output_path: test command: ["echo", "hello"] container_uuid: zzzzz-dz642-runningcontainr + mounts: + /tmp: + kind: tmp + capacity: 24000000000 runtime_constraints: vcpus: 1 ram: 123 @@ -46,9 +55,9 @@ requester_for_running: name: requester_for_running_cr state: Committed priority: 1 - created_at: <%= 2.minute.ago.to_s(:db) %> - updated_at: <%= 2.minute.ago.to_s(:db) %> - modified_at: <%= 2.minute.ago.to_s(:db) %> + created_at: <%= 2.minute.ago.to_fs(:db) %> + updated_at: <%= 2.minute.ago.to_fs(:db) %> + modified_at: <%= 2.minute.ago.to_fs(:db) %> modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz container_image: test cwd: test @@ -56,6 +65,10 @@ requester_for_running: command: ["echo", "hello"] container_uuid: zzzzz-dz642-logscontainer03 requesting_container_uuid: zzzzz-dz642-runningcontainr + mounts: + /tmp: + kind: tmp + capacity: 24000000000 runtime_constraints: vcpus: 1 ram: 123 @@ -75,6 +88,10 @@ running_older: output_path: test command: ["echo", "hello"] container_uuid: zzzzz-dz642-runningcontain2 + mounts: + /tmp: + kind: tmp + capacity: 24000000000 runtime_constraints: vcpus: 1 ram: 123 @@ -85,9 +102,9 @@ completed: name: completed container request state: Final priority: 1 - created_at: <%= 2.minute.ago.to_s(:db) %> - updated_at: <%= 1.minute.ago.to_s(:db) %> - modified_at: <%= 1.minute.ago.to_s(:db) %> + created_at: <%= 2.minute.ago.to_fs(:db) %> + updated_at: <%= 1.minute.ago.to_fs(:db) %> + modified_at: <%= 1.minute.ago.to_fs(:db) %> modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz container_image: test cwd: test @@ -99,6 +116,7 @@ completed: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} completed-older: uuid: zzzzz-xvhdp-cr4completedcr2 @@ -106,7 +124,7 @@ completed-older: name: completed state: Final priority: 1 - created_at: <%= 30.minute.ago.to_s(:db) %> + created_at: <%= 30.minute.ago.to_fs(:db) %> updated_at: 2016-01-11 11:11:11.111111111 Z modified_at: 2016-01-11 11:11:11.111111111 Z modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz @@ -120,6 +138,7 @@ completed-older: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} completed_diagnostics: name: CWL diagnostics hasher @@ -365,6 +384,7 @@ requester: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} cr_for_requester: uuid: zzzzz-xvhdp-cr4requestercnt @@ -385,6 +405,7 @@ cr_for_requester: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} cr_for_requester2: uuid: zzzzz-xvhdp-cr4requestercn2 @@ -392,7 +413,7 @@ cr_for_requester2: name: requester_cr2 state: Final priority: 1 - created_at: <%= 30.minute.ago.to_s(:db) %> + created_at: <%= 30.minute.ago.to_fs(:db) %> updated_at: 2016-01-11 11:11:11.111111111 Z modified_at: 2016-01-11 11:11:11.111111111 Z modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz @@ -404,6 +425,7 @@ cr_for_requester2: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} running_anonymous_accessible: uuid: zzzzz-xvhdp-runninganonaccs @@ -420,6 +442,10 @@ running_anonymous_accessible: output_path: test command: ["echo", "hello"] container_uuid: zzzzz-dz642-runningcontain2 + mounts: + /tmp: + kind: tmp + capacity: 24000000000 runtime_constraints: vcpus: 1 ram: 123 @@ -442,6 +468,7 @@ cr_for_failed: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} canceled_with_queued_container: uuid: zzzzz-xvhdp-canceledqueuedc @@ -461,6 +488,7 @@ canceled_with_queued_container: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} canceled_with_locked_container: uuid: zzzzz-xvhdp-canceledlocekdc @@ -480,6 +508,7 @@ canceled_with_locked_container: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} canceled_with_running_container: uuid: zzzzz-xvhdp-canceledrunning @@ -496,24 +525,32 @@ canceled_with_running_container: output_path: test command: ["echo", "hello"] container_uuid: zzzzz-dz642-runningcontainr + mounts: + /tmp: + kind: tmp + capacity: 24000000000 runtime_constraints: vcpus: 1 ram: 123 running_to_be_deleted: uuid: zzzzz-xvhdp-cr5runningcntnr - owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + owner_uuid: zzzzz-j7d0g-rew6elm53kancon name: running to be deleted state: Committed priority: 1 - created_at: <%= 2.days.ago.to_s(:db) %> - updated_at: <%= 1.days.ago.to_s(:db) %> - modified_at: <%= 1.days.ago.to_s(:db) %> + created_at: <%= 2.days.ago.to_fs(:db) %> + updated_at: <%= 1.days.ago.to_fs(:db) %> + modified_at: <%= 1.days.ago.to_fs(:db) %> modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz container_image: test cwd: test output_path: test command: ["echo", "hello"] + mounts: + /tmp: + kind: tmp + capacity: 24000000000 container_uuid: zzzzz-dz642-runnincntrtodel runtime_constraints: vcpus: 1 @@ -525,9 +562,9 @@ completed_with_input_mounts: name: completed container request state: Final priority: 1 - created_at: <%= 24.hour.ago.to_s(:db) %> - updated_at: <%= 24.hour.ago.to_s(:db) %> - modified_at: <%= 24.hour.ago.to_s(:db) %> + created_at: <%= 24.hour.ago.to_fs(:db) %> + updated_at: <%= 24.hour.ago.to_fs(:db) %> + modified_at: <%= 24.hour.ago.to_fs(:db) %> modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz container_image: test cwd: test @@ -539,26 +576,31 @@ completed_with_input_mounts: container_uuid: zzzzz-dz642-compltcontainer log_uuid: zzzzz-4zz18-logcollection01 output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w - mounts: - /var/lib/cwl/cwl.input.json: - content: - input1: - basename: foo - class: File - location: "keep:fa7aeb5140e2848d39b416daeef4ffc5+45/foo" - input2: - basename: bar - class: File - location: "keep:fa7aeb5140e2848d39b416daeef4ffc5+45/bar" - /var/lib/cwl/workflow.json: "keep:f9ddda46bb293b6847da984e3aa735db+290" + mounts: { + "/var/lib/cwl/cwl.input.json": { + "kind": "json", + "content": { + "input1": { + "basename": "foo", + "class": "File", + "location": "keep:fa7aeb5140e2848d39b416daeef4ffc5+45/foo", + }, + "input2": { + "basename": "bar", + "class": "File", + "location": "keep:fa7aeb5140e2848d39b416daeef4ffc5+45/bar", + } + } + } + } uncommitted: uuid: zzzzz-xvhdp-cr4uncommittedc owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz name: uncommitted - created_at: <%= 2.minute.ago.to_s(:db) %> - updated_at: <%= 1.minute.ago.to_s(:db) %> - modified_at: <%= 1.minute.ago.to_s(:db) %> + created_at: <%= 2.minute.ago.to_fs(:db) %> + updated_at: <%= 1.minute.ago.to_fs(:db) %> + modified_at: <%= 1.minute.ago.to_fs(:db) %> modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz command: ["arvados-cwl-runner", "--local", "--api=containers", "/var/lib/cwl/workflow.json", "/var/lib/cwl/cwl.input.json"] @@ -977,9 +1019,9 @@ cr_in_trashed_project: name: completed container request state: Final priority: 1 - created_at: <%= 2.minute.ago.to_s(:db) %> - updated_at: <%= 1.minute.ago.to_s(:db) %> - modified_at: <%= 1.minute.ago.to_s(:db) %> + created_at: <%= 2.minute.ago.to_fs(:db) %> + updated_at: <%= 1.minute.ago.to_fs(:db) %> + modified_at: <%= 1.minute.ago.to_fs(:db) %> modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz container_image: test cwd: test @@ -991,6 +1033,7 @@ cr_in_trashed_project: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} runtime_token: uuid: zzzzz-xvhdp-11eklkhy0n4dm86 @@ -998,9 +1041,9 @@ runtime_token: name: queued state: Committed priority: 1 - created_at: <%= 2.minute.ago.to_s(:db) %> - updated_at: <%= 1.minute.ago.to_s(:db) %> - modified_at: <%= 1.minute.ago.to_s(:db) %> + created_at: <%= 2.minute.ago.to_fs(:db) %> + updated_at: <%= 1.minute.ago.to_fs(:db) %> + modified_at: <%= 1.minute.ago.to_fs(:db) %> modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz container_image: test cwd: test @@ -1011,6 +1054,37 @@ runtime_token: runtime_constraints: vcpus: 1 ram: 123 + mounts: {} + +read_foo_write_bar: + uuid: zzzzz-xvdhp-readfoowritebar + owner_uuid: zzzzz-tpzed-000000000000000 + state: Final + created_at: 2024-01-11 11:11:11.111111111 Z + updated_at: 2024-01-11 11:11:11.111111111 Z + modified_at: 2024-01-11 11:11:11.111111111 Z + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + container_image: test + cwd: / + mounts: + stdin: + kind: collection + portable_data_hash: 1f4b0bc7583c2a7f9102c395f4ffc5e3+45 + path: /foo + stdout: + kind: file + path: /mnt/out/bar + /mnt/out: + kind: tmp + capacity: 1000 + container_uuid: zzzzz-dz642-readfoowritebar + log_uuid: zzzzz-4zz18-logcollection01 + output_uuid: zzzzz-4zz18-ehbhgtheo8909or + output_path: test + command: ["echo", "-n", "bar"] + runtime_constraints: + ram: 10000000 + vcpus: 1 # Test Helper trims the rest of the file @@ -1021,11 +1095,12 @@ runtime_token: <% for i in 1..60 do %> cr_<%=i%>_of_60: uuid: zzzzz-xvhdp-oneof60crs<%= i.to_s.rjust(5, '0') %> - created_at: <%= ((i+5)/5).hour.ago.to_s(:db) %> + created_at: <%= ((i+5)/5).hour.ago.to_fs(:db) %> owner_uuid: zzzzz-j7d0g-nnncrspipelines name: cr-<%= i.to_s %> output_path: test command: ["echo", "hello"] + mounts: {} <% end %> # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper