Test fixture for uncommitted container request.
authorPeter Amstutz <peter.amstutz@curoverse.com>
Thu, 18 Aug 2016 19:16:07 +0000 (15:16 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Thu, 25 Aug 2016 15:58:10 +0000 (11:58 -0400)
services/api/test/fixtures/container_requests.yml

index de41ff0e9465682e51dd6be30033c06a8f70520e..22d745195eae98cc1e81ed647ca3947c397f15a8 100644 (file)
@@ -151,6 +151,114 @@ running_anonymous_accessible:
     vcpus: 1
     ram: 123
 
+uncommitted:
+  uuid: zzzzz-xvhdp-cr4uncommittedc
+  owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
+  name: uncommitted
+  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
+  command: ["arvados-cwl-runner", "--local", "--api=containers",
+            "/var/lib/cwl/workflow.json", "/var/lib/cwl/cwl.input.json"]
+  output_path: "/var/spool/cwl"
+  cwd: "/var/spool/cwl"
+  priority: 1
+  state: "Uncommitted"
+  container_image: arvados/jobs
+  mounts: {
+    "/var/lib/cwl/workflow.json": {
+      "kind": "json",
+      "content": {
+        "cwlVersion": "v1.0",
+        "class": "CommandLineTool",
+        "inputs": [
+        {
+          "doc": "a longer documentation string for this parameter (optional)",
+          "type": "boolean",
+          "id": "ex_boolean",
+          "label": "a short label for this parameter (optional)"
+        },
+        {
+          "doc": "directory selection should present the workbench collection picker",
+          "type": "Directory",
+          "id": "ex_dir"
+        },
+        {
+          "type": "double",
+          "id": "ex_double"
+        },
+        {
+          "doc": "file selection should present the workbench file picker",
+          "type": "File",
+          "id": "ex_file"
+        },
+        {
+          "doc": "any parameter can be turned into an array with {\"type\": \"array\", \"items\": \"the_type\"}\n",
+          "type": {
+            "items": "File",
+            "type": "array"
+          },
+          "id": "ex_file_array"
+        },
+        {
+          "type": "float",
+          "id": "ex_float"
+        },
+        {
+          "type": "int",
+          "id": "ex_int"
+        },
+        {
+          "type": "long",
+          "id": "ex_long"
+        },
+        {
+          "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"
+        },
+        {
+          "doc": "any parameter can be made optional by providing a union of [\"null\", \"the_type\"]\n",
+          "type": [
+            "null",
+            "string"
+          ],
+          "id": "ex_opt_string"
+        },
+        {
+          "type": "string",
+          "id": "ex_string"
+        }
+        ],
+        "outputs": []
+      },
+    },
+    "/var/lib/cwl/cwl.input.json": {
+      "kind": "json",
+      "content": {}
+    },
+    "stdout": {
+      "kind": "file",
+      "path": "/var/spool/cwl/cwl.output.json"
+    },
+    "/var/spool/cwl": {
+      "kind": "collection",
+      "writable": True
+    }
+  }
+  runtime_constraints:
+    vcpus: 1
+    ram: 256000000
+    API: true
+
+
 # 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