9514: add container log tests.
[arvados.git] / services / api / test / fixtures / containers.yml
index 65323f5a9c6f0d42a05dc4df38e866807304fe33..08fafff3aec03a067115af5e0f5c52e31b2c4f72 100644 (file)
@@ -1,6 +1,6 @@
 queued:
   uuid: zzzzz-dz642-queuedcontainer
-  owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
+  owner_uuid: zzzzz-tpzed-000000000000000
   state: Queued
   priority: 1
   created_at: 2016-01-11 11:11:11.111111111 Z
@@ -12,38 +12,12 @@ queued:
   runtime_constraints:
     ram: 12000000000
     vcpus: 4
-  mounts:
-    test:
-      kind: json
-  environment:
-    var: queued
-
-queued_higher_priority:
-  uuid: zzzzz-dz642-queuedcontainerhigher
-  owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
-  state: Queued
-  priority: 2
-  created_at: 2016-01-11 11:11:11.111111111 Z
-  updated_at: 2016-01-11 11:11:11.111111111 Z
-  container_image: test
-  cwd: test
-  output_path: test
-  command: ["echo", "hello"]
-  runtime_constraints:
-    ram: 12000000000
-    vcpus: 4
-  mounts:
-    test:
-      kind: json
-  environment:
-    var: queued
 
 running:
   uuid: zzzzz-dz642-runningcontainr
-  owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
+  owner_uuid: zzzzz-tpzed-000000000000000
   state: Running
   priority: 1
-  progress: 10.0
   created_at: <%= 1.minute.ago.to_s(:db) %>
   updated_at: <%= 1.minute.ago.to_s(:db) %>
   started_at: <%= 1.minute.ago.to_s(:db) %>
@@ -54,19 +28,13 @@ running:
   runtime_constraints:
     ram: 12000000000
     vcpus: 4
-  mounts:
-    test:
-      kind: json
-  environment:
-    var: running
   auth_uuid: zzzzz-gj3su-077z32aux8dg2s1
 
 running_older:
   uuid: zzzzz-dz642-runningcontain2
-  owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
+  owner_uuid: zzzzz-tpzed-000000000000000
   state: Running
   priority: 1
-  progress: 15.0
   created_at: <%= 2.minute.ago.to_s(:db) %>
   updated_at: <%= 2.minute.ago.to_s(:db) %>
   started_at: <%= 2.minute.ago.to_s(:db) %>
@@ -77,15 +45,10 @@ running_older:
   runtime_constraints:
     ram: 12000000000
     vcpus: 4
-  mounts:
-    test:
-      kind: json
-  environment:
-    var: running
 
 locked:
   uuid: zzzzz-dz642-lockedcontainer
-  owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
+  owner_uuid: zzzzz-tpzed-000000000000000
   state: Locked
   priority: 2
   created_at: <%= 2.minute.ago.to_s(:db) %>
@@ -97,35 +60,10 @@ locked:
   runtime_constraints:
     ram: 12000000000
     vcpus: 4
-  mounts:
-    test:
-      kind: json
-  environment:
-    var: locked
-
-locked_higher_priority:
-  uuid: zzzzz-dz642-lockedcontainerhigher
-  owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
-  state: Locked
-  priority: 3
-  created_at: <%= 2.minute.ago.to_s(:db) %>
-  updated_at: <%= 2.minute.ago.to_s(:db) %>
-  container_image: test
-  cwd: test
-  output_path: test
-  command: ["echo", "hello"]
-  runtime_constraints:
-    ram: 12000000000
-    vcpus: 4
-  mounts:
-    test:
-      kind: json
-  environment:
-    var: locked
 
 completed:
   uuid: zzzzz-dz642-compltcontainer
-  owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
+  owner_uuid: zzzzz-tpzed-000000000000000
   state: Complete
   exit_code: 0
   priority: 1
@@ -135,22 +73,17 @@ completed:
   finished_at: 2016-01-12 11:12:13.111111111 Z
   container_image: test
   cwd: test
-  log: ea10d51bcf88862dbcc36eb292017dfd+45
+  log: 0b9a7787660e1fce4a93f33e01376ba6+81
   output: zzzzz-4zz18-znfnqtbbv4spc3w
   output_path: test
   command: ["echo", "hello"]
-  mounts:
-    test:
-      kind: json
-  environment:
-    var: completed
   runtime_constraints:
     ram: 12000000000
     vcpus: 4
 
 completed_older:
   uuid: zzzzz-dz642-compltcontainr2
-  owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
+  owner_uuid: zzzzz-tpzed-000000000000000
   state: Complete
   exit_code: 0
   priority: 1
@@ -161,21 +94,15 @@ completed_older:
   container_image: test
   cwd: test
   output: test
-  log: test
   output_path: test
   command: ["echo", "hello"]
-  mounts:
-    test:
-      kind: json
-  environment:
-    var: completed
   runtime_constraints:
     ram: 12000000000
     vcpus: 4
 
 requester:
   uuid: zzzzz-dz642-requestingcntnr
-  owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
+  owner_uuid: zzzzz-tpzed-000000000000000
   state: Complete
   exit_code: 0
   priority: 1
@@ -192,7 +119,7 @@ requester:
 
 requester_container:
   uuid: zzzzz-dz642-requestercntnr1
-  owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
+  owner_uuid: zzzzz-tpzed-000000000000000
   state: Complete
   exit_code: 0
   priority: 1
@@ -209,7 +136,7 @@ requester_container:
   auth_uuid: zzzzz-gj3su-077z32aux8dg2s1
 
 failed_container:
-  uuid: zzzzz-dz642-failedcntnr
+  uuid: zzzzz-dz642-failedcontainr1
   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
   state: Complete
   exit_code: 33
@@ -219,28 +146,20 @@ failed_container:
   container_image: test
   cwd: test
   output: test
-  log: test
   output_path: test
   command: ["echo", "hello"]
   runtime_constraints:
     ram: 12000000000
     vcpus: 4
-  mounts:
-    test:
-      kind: json
-  environment:
-    var: failed
 
-completed_vs_running_winner:
-  uuid: zzzzz-dz642-cvrwinner
+ancient_container_with_logs:
+  uuid: zzzzz-dz642-logscontainer01
   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
-  exit_code: 0
-  output: test
-  log: test
   state: Complete
+  exit_code: 0
   priority: 1
-  created_at: 2016-01-11 11:11:11.111111111 Z
-  updated_at: 2016-01-11 11:11:11.111111111 Z
+  created_at: <%= 2.year.ago.to_s(:db) %>
+  updated_at: <%= 2.year.ago.to_s(:db) %>
   container_image: test
   cwd: test
   output_path: test
@@ -248,19 +167,18 @@ completed_vs_running_winner:
   runtime_constraints:
     ram: 12000000000
     vcpus: 4
-  mounts:
-    test:
-      kind: json
-  environment:
-    var: completed_vs_running
+  finished_at: <%= 2.year.ago.to_s(:db) %>
+  log: ea10d51bcf88862dbcc36eb292017dfd+45
+  output: test
 
-completed_vs_running_loser:
-  uuid: zzzzz-dz642-cvrloser
+previous_container_with_logs:
+  uuid: zzzzz-dz642-logscontainer02
   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
-  state: Running
+  state: Complete
+  exit_code: 0
   priority: 1
-  created_at: 2016-01-11 11:11:11.111111111 Z
-  updated_at: 2016-01-11 11:11:11.111111111 Z
+  created_at: <%= 1.month.ago.to_s(:db) %>
+  updated_at: <%= 1.month.ago.to_s(:db) %>
   container_image: test
   cwd: test
   output_path: test
@@ -268,79 +186,17 @@ completed_vs_running_loser:
   runtime_constraints:
     ram: 12000000000
     vcpus: 4
-  mounts:
-    test:
-      kind: json
-  environment:
-    var: completed_vs_running
+  finished_at: <%= 1.month.ago.to_s(:db) %>
+  log: ea10d51bcf88862dbcc36eb292017dfd+45
+  output: test
 
-running_vs_locked_winner:
-  uuid: zzzzz-dz642-rvlwinner
+running_container_with_logs:
+  uuid: zzzzz-dz642-logscontainer03
   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
   state: Running
   priority: 1
-  created_at: 2016-01-11 11:11:11.111111111 Z
-  updated_at: 2016-01-11 11:11:11.111111111 Z
-  container_image: test
-  cwd: test
-  output_path: test
-  command: ["echo", "hello"]
-  runtime_constraints:
-    ram: 12000000000
-    vcpus: 4
-  mounts:
-    test:
-      kind: json
-  environment:
-    var: running_vs_locked
-
-running_vs_locked_loser:
-  uuid: zzzzz-dz642-rvlloser
-  owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
-  state: Locked
-  priority: 1
-  created_at: 2016-01-11 11:11:11.111111111 Z
-  updated_at: 2016-01-11 11:11:11.111111111 Z
-  container_image: test
-  cwd: test
-  output_path: test
-  command: ["echo", "hello"]
-  runtime_constraints:
-    ram: 12000000000
-    vcpus: 4
-  mounts:
-    test:
-      kind: json
-  environment:
-    var: running_vs_locked
-
-locked_vs_queued_winner:
-  uuid: zzzzz-dz642-lvqwinner
-  owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
-  state: Locked
-  priority: 1
-  created_at: 2016-01-11 11:11:11.111111111 Z
-  updated_at: 2016-01-11 11:11:11.111111111 Z
-  container_image: test
-  cwd: test
-  output_path: test
-  command: ["echo", "hello"]
-  runtime_constraints:
-    ram: 12000000000
-    vcpus: 4
-  mounts:
-    test:
-      kind: json
-  environment:
-    var: locked_vs_queued
-
-locked_vs_queued_loser:
-  uuid: zzzzz-dz642-lvqloser
-  owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
-  state: Queued
-  priority: 1
-  created_at: 2016-01-11 11:11:11.111111111 Z
-  updated_at: 2016-01-11 11:11:11.111111111 Z
+  created_at: <%= 1.hour.ago.to_s(:db) %>
+  updated_at: <%= 1.hour.ago.to_s(:db) %>
   container_image: test
   cwd: test
   output_path: test
@@ -348,8 +204,3 @@ locked_vs_queued_loser:
   runtime_constraints:
     ram: 12000000000
     vcpus: 4
-  mounts:
-    test:
-      kind: json
-  environment:
-    var: locked_vs_queued