Merge branch '21666-provision-test-improvement'
[arvados.git] / services / api / test / fixtures / containers.yml
index 703d2aafbe5edeeda830cd36cf250ee13e831477..8e40554a9bda02cbfa99eb8e3c388c3470a8d456 100644 (file)
@@ -33,9 +33,9 @@ running:
   owner_uuid: zzzzz-tpzed-000000000000000
   state: Running
   priority: 12
-  created_at: <%= 1.minute.ago.to_s(:db) %>
-  updated_at: <%= 1.minute.ago.to_s(:db) %>
-  started_at: <%= 1.minute.ago.to_s(:db) %>
+  created_at: <%= 1.minute.ago.to_fs(:db) %>
+  updated_at: <%= 1.minute.ago.to_fs(:db) %>
+  started_at: <%= 1.minute.ago.to_fs(:db) %>
   container_image: test
   cwd: /tmp
   output_path: /tmp
@@ -59,9 +59,9 @@ running_older:
   owner_uuid: zzzzz-tpzed-000000000000000
   state: Running
   priority: 1
-  created_at: <%= 2.minute.ago.to_s(:db) %>
-  updated_at: <%= 2.minute.ago.to_s(:db) %>
-  started_at: <%= 2.minute.ago.to_s(:db) %>
+  created_at: <%= 2.minute.ago.to_fs(:db) %>
+  updated_at: <%= 2.minute.ago.to_fs(:db) %>
+  started_at: <%= 2.minute.ago.to_fs(:db) %>
   container_image: test
   cwd: /tmp
   output_path: /tmp
@@ -82,9 +82,9 @@ locked:
   state: Locked
   locked_by_uuid: zzzzz-gj3su-k9dvestay1plssr
   priority: 0
-  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) %>
   container_image: test
   cwd: test
   output_path: test
@@ -353,8 +353,8 @@ ancient_container_with_logs:
   state: Complete
   exit_code: 0
   priority: 1
-  created_at: <%= 2.year.ago.to_s(:db) %>
-  updated_at: <%= 2.year.ago.to_s(:db) %>
+  created_at: <%= 2.year.ago.to_fs(:db) %>
+  updated_at: <%= 2.year.ago.to_fs(:db) %>
   container_image: test
   cwd: test
   output_path: test
@@ -362,7 +362,7 @@ ancient_container_with_logs:
   runtime_constraints:
     ram: 12000000000
     vcpus: 4
-  finished_at: <%= 2.year.ago.to_s(:db) %>
+  finished_at: <%= 2.year.ago.to_fs(:db) %>
   log: ea10d51bcf88862dbcc36eb292017dfd+45
   output: test
   secret_mounts: {}
@@ -374,8 +374,8 @@ previous_container_with_logs:
   state: Complete
   exit_code: 0
   priority: 1
-  created_at: <%= 1.month.ago.to_s(:db) %>
-  updated_at: <%= 1.month.ago.to_s(:db) %>
+  created_at: <%= 1.month.ago.to_fs(:db) %>
+  updated_at: <%= 1.month.ago.to_fs(:db) %>
   container_image: test
   cwd: test
   output_path: test
@@ -383,7 +383,7 @@ previous_container_with_logs:
   runtime_constraints:
     ram: 12000000000
     vcpus: 4
-  finished_at: <%= 1.month.ago.to_s(:db) %>
+  finished_at: <%= 1.month.ago.to_fs(:db) %>
   log: ea10d51bcf88862dbcc36eb292017dfd+45
   output: test
   secret_mounts: {}
@@ -394,8 +394,8 @@ running_container_with_logs:
   owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz
   state: Running
   priority: 1
-  created_at: <%= 1.hour.ago.to_s(:db) %>
-  updated_at: <%= 1.hour.ago.to_s(:db) %>
+  created_at: <%= 1.hour.ago.to_fs(:db) %>
+  updated_at: <%= 1.hour.ago.to_fs(:db) %>
   container_image: test
   cwd: test
   output_path: test
@@ -416,9 +416,9 @@ running_to_be_deleted:
   owner_uuid: zzzzz-tpzed-000000000000000
   state: Running
   priority: 1
-  created_at: <%= 1.minute.ago.to_s(:db) %>
-  updated_at: <%= 1.minute.ago.to_s(:db) %>
-  started_at: <%= 1.minute.ago.to_s(:db) %>
+  created_at: <%= 1.minute.ago.to_fs(:db) %>
+  updated_at: <%= 1.minute.ago.to_fs(:db) %>
+  started_at: <%= 1.minute.ago.to_fs(:db) %>
   container_image: test
   cwd: test
   output_path: test
@@ -485,3 +485,36 @@ cuda_container:
       device_count: 1
   secret_mounts: {}
   secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b
+
+read_foo_write_bar:
+  uuid: zzzzz-dz642-readfoowritebar
+  owner_uuid: zzzzz-tpzed-000000000000000
+  state: Complete
+  exit_code: 0
+  priority: 1
+  created_at: 2024-01-11 11:11:11.111111111 Z
+  updated_at: 2024-01-11 11:11:11.111111111 Z
+  started_at: 2024-01-11 11:11:11.111111111 Z
+  finished_at: 2024-01-12 11:12:13.111111111 Z
+  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
+  log: ea10d51bcf88862dbcc36eb292017dfd+45
+  output: fa7aeb5140e2848d39b416daeef4ffc5+45
+  output_path: test
+  command: ["echo", "-n", "bar"]
+  runtime_constraints:
+    ram: 10000000
+    vcpus: 1
+  secret_mounts: {}
+  secret_mounts_md5: 99914b932bd37a50b983c5e7c90ae93b