X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a87fd176c3248699cbaaa45b815c8a34b3f5f11b..07aa5aa282a388fc1bcb3d0cfe7520b96b3e7e38:/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 433aff210a..29ce4f5aea 100644 --- a/services/api/test/fixtures/container_requests.yml +++ b/services/api/test/fixtures/container_requests.yml @@ -1,12 +1,16 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + queued: uuid: zzzzz-xvhdp-cr4queuedcontnr owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz name: queued state: Committed priority: 1 - created_at: 2016-01-11 11:11:11.111111111 Z - updated_at: 2016-01-11 11:11:11.111111111 Z - modified_at: 2016-01-11 11:11:11.111111111 Z + created_at: <%= 2.minute.ago.to_s(:db) %> + updated_at: <%= 1.minute.ago.to_s(:db) %> + modified_at: <%= 1.minute.ago.to_s(:db) %> modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz container_image: test cwd: test @@ -23,9 +27,9 @@ running: name: running state: Committed priority: 1 - created_at: 2016-01-11 11:11:11.111111111 Z - updated_at: 2016-01-11 11:11:11.111111111 Z - modified_at: 2016-01-11 11:11:11.111111111 Z + created_at: <%= 2.minute.ago.to_s(:db) %> + updated_at: <%= 1.minute.ago.to_s(:db) %> + modified_at: <%= 1.minute.ago.to_s(:db) %> modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz container_image: test cwd: test @@ -36,7 +40,27 @@ running: vcpus: 1 ram: 123 -running-older: +requester_for_running: + uuid: zzzzz-xvhdp-req4runningcntr + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + 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) %> + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + container_image: test + cwd: test + output_path: test + command: ["echo", "hello"] + container_uuid: zzzzz-dz642-logscontainer03 + requesting_container_uuid: zzzzz-dz642-runningcontainr + runtime_constraints: + vcpus: 1 + ram: 123 + +running_older: uuid: zzzzz-xvhdp-cr4runningcntn2 owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz name: running @@ -70,6 +94,8 @@ completed: output_path: test command: ["echo", "hello"] container_uuid: zzzzz-dz642-compltcontainer + log_uuid: zzzzz-4zz18-y9vne9npefyxh8g + output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w runtime_constraints: vcpus: 1 ram: 123 @@ -87,12 +113,31 @@ completed-older: container_image: test cwd: test output_path: test - command: ["echo", "hello"] + command: ["arvados-cwl-runner", "echo", "hello"] container_uuid: zzzzz-dz642-compltcontainr2 runtime_constraints: vcpus: 1 ram: 123 +requester: + uuid: zzzzz-xvhdp-9zacv3o1xw6sxz5 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + name: requester + state: Committed + priority: 1 + created_at: 2016-01-11 11:11:11.111111111 Z + 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 + container_image: test + cwd: / + output_path: /output + command: ["request-another-container", "echo", "hello"] + container_uuid: zzzzz-dz642-requestingcntnr + runtime_constraints: + vcpus: 1 + ram: 123 + cr_for_requester: uuid: zzzzz-xvhdp-cr4requestercnt owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz @@ -165,19 +210,128 @@ cr_for_failed: cwd: test output_path: test command: ["echo", "hello"] - container_uuid: zzzzz-dz642-failedcntnr + container_uuid: zzzzz-dz642-failedcontainr1 runtime_constraints: vcpus: 1 ram: 123 -uncommitted: - uuid: zzzzz-xvhdp-cr4uncommittedc +canceled_with_queued_container: + uuid: zzzzz-xvhdp-canceledqueuedc owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz - name: uncommitted + name: canceled with queued container + state: Final + priority: 0 created_at: 2016-01-11 11:11:11.111111111 Z 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 + container_image: test + cwd: test + output_path: test + command: ["echo", "hello"] + container_uuid: zzzzz-dz642-queuedcontainer + runtime_constraints: + vcpus: 1 + ram: 123 + +canceled_with_locked_container: + uuid: zzzzz-xvhdp-canceledlocekdc + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + name: canceled with locked container + state: Final + priority: 0 + created_at: 2016-01-11 11:11:11.111111111 Z + 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 + container_image: test + cwd: test + output_path: test + command: ["echo", "hello"] + container_uuid: zzzzz-dz642-lockedcontainer + runtime_constraints: + vcpus: 1 + ram: 123 + +canceled_with_running_container: + uuid: zzzzz-xvhdp-canceledrunning + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + name: canceled with running container + state: Committed + priority: 0 + created_at: 2016-01-11 11:11:11.111111111 Z + 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 + container_image: test + cwd: test + output_path: test + command: ["echo", "hello"] + container_uuid: zzzzz-dz642-runningcontainr + runtime_constraints: + vcpus: 1 + ram: 123 + +running_to_be_deleted: + uuid: zzzzz-xvhdp-cr5runningcntnr + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + 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) %> + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + container_image: test + cwd: test + output_path: test + command: ["echo", "hello"] + container_uuid: zzzzz-dz642-runnincntrtodel + runtime_constraints: + vcpus: 1 + ram: 123 + +completed_with_input_mounts: + uuid: zzzzz-xvhdp-crwithinputmnts + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + 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) %> + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + container_image: test + cwd: test + output_path: test + command: ["echo", "hello"] + runtime_constraints: + vcpus: 1 + ram: 123 + container_uuid: zzzzz-dz642-compltcontainer + log_uuid: zzzzz-4zz18-y9vne9npefyxh8g + 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:1fd08fc162a5c6413070a8bd0bffc818+150" + +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) %> + 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"] output_path: "/var/spool/cwl" @@ -190,6 +344,8 @@ uncommitted: "kind": "json", "content": { "cwlVersion": "v1.0", + "$graph": [{ + "id": "#main", "class": "CommandLineTool", "baseCommand": ["echo"], "inputs": [ @@ -270,7 +426,8 @@ uncommitted: } ], "outputs": [] - } + }] + } }, "/var/lib/cwl/cwl.input.json": { "kind": "json", @@ -586,6 +743,28 @@ uncommitted-with-required-and-optional-inputs: ram: 256000000 API: true +cr_in_trashed_project: + uuid: zzzzz-xvhdp-cr5trashedcontr + owner_uuid: zzzzz-j7d0g-trashedproject1 + 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) %> + modified_by_user_uuid: zzzzz-tpzed-xurymjxw79nv3jz + container_image: test + cwd: test + output_path: test + command: ["echo", "hello"] + container_uuid: zzzzz-dz642-compltcontainer + log_uuid: zzzzz-4zz18-y9vne9npefyxh8g + output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w + runtime_constraints: + vcpus: 1 + ram: 123 + + # Test Helper trims the rest of the file # Do not add your fixtures below this line as the rest of this file will be trimmed by test_helper