X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f35ca630699460653f03702afec4a57866130421..47e42f1129363c2565e69c36ff26ce9c42731fb8:/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 64b11fe152..1daccda558 100644 --- a/services/api/test/fixtures/container_requests.yml +++ b/services/api/test/fixtures/container_requests.yml @@ -4,9 +4,9 @@ queued: 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 +23,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 +36,7 @@ running: vcpus: 1 ram: 123 -running-older: +running_older: uuid: zzzzz-xvhdp-cr4runningcntn2 owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz name: running @@ -93,6 +93,25 @@ completed-older: 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 @@ -151,14 +170,90 @@ running_anonymous_accessible: vcpus: 1 ram: 123 -uncommitted: - uuid: zzzzz-xvhdp-cr4uncommittedc +cr_for_failed: + uuid: zzzzz-xvhdp-cr4failedcontnr owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz - name: uncommitted + name: cr for container exit code not 0 + 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: test + output_path: test + command: ["echo", "hello"] + container_uuid: zzzzz-dz642-failedcontainr1 + runtime_constraints: + vcpus: 1 + ram: 123 + +canceled_with_queued_container: + uuid: zzzzz-xvhdp-canceledqueuedc + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + name: canceled with queued 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-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: 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-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 + +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" @@ -171,6 +266,8 @@ uncommitted: "kind": "json", "content": { "cwlVersion": "v1.0", + "$graph": [{ + "id": "#main", "class": "CommandLineTool", "baseCommand": ["echo"], "inputs": [ @@ -223,27 +320,6 @@ uncommitted: "id": "ex_long", "inputBinding": {"position": 1} }, - { - "doc": "any parameter can be turned into an optional array with [\"null\", {\"type\": \"array\", \"items\": \"the_type\"}\n", - "type": [ - "null", - { - "items": "File", - "type": "array" - } - ], - "id": "ex_opt_file_array", - "inputBinding": {"position": 1} - }, - { - "doc": "any parameter can be made optional by providing a union of [\"null\", \"the_type\"]\n", - "type": [ - "null", - "string" - ], - "id": "ex_opt_string", - "inputBinding": {"position": 1} - }, { "type": "string", "id": "ex_string", @@ -272,7 +348,8 @@ uncommitted: } ], "outputs": [] - } + }] + } }, "/var/lib/cwl/cwl.input.json": { "kind": "json", @@ -364,27 +441,6 @@ uncommitted_ready_to_run: "id": "ex_long", "inputBinding": {"position": 1} }, - { - "doc": "any parameter can be turned into an optional array with [\"null\", {\"type\": \"array\", \"items\": \"the_type\"}\n", - "type": [ - "null", - { - "items": "File", - "type": "array" - } - ], - "id": "ex_opt_file_array", - "inputBinding": {"position": 1} - }, - { - "doc": "any parameter can be made optional by providing a union of [\"null\", \"the_type\"]\n", - "type": [ - "null", - "string" - ], - "id": "ex_opt_string", - "inputBinding": {"position": 1} - }, { "type": "string", "id": "ex_string",