From: Ward Vandewege Date: Fri, 30 Oct 2020 20:29:40 +0000 (-0400) Subject: 16950: a few cleanups for our container request fixtures: attach a real X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/771e7c9387650565dbc87656d78e987ae43ba91b?ds=sidebyside 16950: a few cleanups for our container request fixtures: attach a real log collection, and define CompletedContainerRequestUUID in arvadostest (go). Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- diff --git a/sdk/go/arvadostest/fixtures.go b/sdk/go/arvadostest/fixtures.go index 5677f4deca..9049c73c49 100644 --- a/sdk/go/arvadostest/fixtures.go +++ b/sdk/go/arvadostest/fixtures.go @@ -44,7 +44,8 @@ const ( RunningContainerUUID = "zzzzz-dz642-runningcontainr" - CompletedContainerUUID = "zzzzz-dz642-compltcontainer" + CompletedContainerUUID = "zzzzz-dz642-compltcontainer" + CompletedContainerRequestUUID = "zzzzz-xvhdp-cr4completedctr" ArvadosRepoUUID = "zzzzz-s0uqq-arvadosrepo0123" ArvadosRepoName = "arvados" @@ -73,6 +74,8 @@ const ( TestVMUUID = "zzzzz-2x53u-382brsig8rp3064" CollectionWithUniqueWordsUUID = "zzzzz-4zz18-mnt690klmb51aud" + + LogCollectionUUID = "zzzzz-4zz18-logcollection01" ) // PathologicalManifest : A valid manifest designed to test diff --git a/services/api/test/fixtures/collections.yml b/services/api/test/fixtures/collections.yml index a16ee8763f..2243d6a447 100644 --- a/services/api/test/fixtures/collections.yml +++ b/services/api/test/fixtures/collections.yml @@ -1031,6 +1031,18 @@ collection_with_uri_prop: properties: "http://schema.org/example": "value1" +log_collection: + uuid: zzzzz-4zz18-logcollection01 + current_version_uuid: zzzzz-4zz18-logcollection01 + portable_data_hash: 680c855fd6cf2c78778b3728b268925a+475 + owner_uuid: zzzzz-tpzed-xurymjxw79nv3jz + created_at: 2020-10-29T00:51:44.075594000Z + modified_by_client_uuid: zzzzz-ozdt8-brczlopd8u8d0jr + modified_by_user_uuid: zzzzz-tpzed-d9tiejq69daie8f + modified_at: 2020-10-29T00:51:44.072109000Z + manifest_text: ". 8c12f5f5297b7337598170c6f531fcee+7882 0:0:arv-mount.txt 0:1910:container.json 1910:1264:crunch-run.txt 3174:1005:crunchstat.txt 4179:659:hoststat.txt 4838:2811:node-info.txt 7649:233:node.json 0:0:stderr.txt\n./log\\040for\\040container\\040ce8i5-dz642-h4kd64itncdcz8l 8c12f5f5297b7337598170c6f531fcee+7882 0:0:arv-mount.txt 0:1910:container.json 1910:1264:crunch-run.txt 3174:1005:crunchstat.txt 4179:659:hoststat.txt 4838:2811:node-info.txt 7649:233:node.json 0:0:stderr.txt\n" + name: a real log collection for a completed container + # 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 diff --git a/services/api/test/fixtures/container_requests.yml b/services/api/test/fixtures/container_requests.yml index daaaf4d084..5816aa7306 100644 --- a/services/api/test/fixtures/container_requests.yml +++ b/services/api/test/fixtures/container_requests.yml @@ -98,7 +98,7 @@ completed: output_path: test command: ["echo", "hello"] container_uuid: zzzzz-dz642-compltcontainer - log_uuid: zzzzz-4zz18-y9vne9npefyxh8g + log_uuid: zzzzz-4zz18-logcollection01 output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w runtime_constraints: vcpus: 1 @@ -324,7 +324,7 @@ completed_with_input_mounts: vcpus: 1 ram: 123 container_uuid: zzzzz-dz642-compltcontainer - log_uuid: zzzzz-4zz18-y9vne9npefyxh8g + log_uuid: zzzzz-4zz18-logcollection01 output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w mounts: { "/var/lib/cwl/cwl.input.json": { @@ -778,7 +778,7 @@ cr_in_trashed_project: output_path: test command: ["echo", "hello"] container_uuid: zzzzz-dz642-compltcontainer - log_uuid: zzzzz-4zz18-y9vne9npefyxh8g + log_uuid: zzzzz-4zz18-logcollection01 output_uuid: zzzzz-4zz18-znfnqtbbv4spc3w runtime_constraints: vcpus: 1