From 20d37c8289a494e6da15f754e7a126814eb5fd28 Mon Sep 17 00:00:00 2001 From: Michal Kovarik Date: Aug 30 2021 06:40:19 +0000 Subject: Add container-image.test mapping for Resultsdb Updater V2 Enable Resultsdb Updater V2 for container-image. --- diff --git a/mappings/results/container-image.test.complete.yaml b/mappings/results/container-image.test.complete.yaml new file mode 100644 index 0000000..0a6897f --- /dev/null +++ b/mappings/results/container-image.test.complete.yaml @@ -0,0 +1,15 @@ +# Resultsdb Updater V2 Mapping, Supported for release Tag 1.x.x onwards. + +outcome: "${body.test.result}" +testcase: + name: "${body.test.namespace}.${body.test.type}.${body.test.category}" +ref_url: "${body.run.url}" +data: + type: + - "container-image" + item: + - "${body.artifact.repository}@${body.artifact.digest}" + scenario: + - "#if(${body.test.scenario})${body.test.scenario}#{else}not available#end" + scratch: + - "${body.artifact.scratch}" diff --git a/mappings/results/container-image.test.error.yaml b/mappings/results/container-image.test.error.yaml new file mode 100644 index 0000000..fb224b8 --- /dev/null +++ b/mappings/results/container-image.test.error.yaml @@ -0,0 +1,15 @@ +# Resultsdb Updater V2 Mapping, Supported for release Tag 1.x.x onwards. + +outcome: "ERROR" +testcase: + name: "${body.test.namespace}.${body.test.type}.${body.test.category}" +ref_url: "${body.run.url}" +data: + type: + - "container-image" + item: + - "${body.artifact.repository}@${body.artifact.digest}" + scenario: + - "#if(${body.test.scenario})${body.test.scenario}#{else}not available#end" + scratch: + - "${body.artifact.scratch}" diff --git a/mappings/results/container-image.test.queued.yaml b/mappings/results/container-image.test.queued.yaml new file mode 100644 index 0000000..3dfc870 --- /dev/null +++ b/mappings/results/container-image.test.queued.yaml @@ -0,0 +1,15 @@ +# Resultsdb Updater V2 Mapping, Supported for release Tag 1.x.x onwards. + +outcome: "QUEUED" +testcase: + name: "${body.test.namespace}.${body.test.type}.${body.test.category}" +ref_url: "${body.run.url}" +data: + type: + - "container-image" + item: + - "${body.artifact.repository}@${body.artifact.digest}" + scenario: + - "#if(${body.test.scenario})${body.test.scenario}#{else}not available#end" + scratch: + - "${body.artifact.scratch}" diff --git a/mappings/results/container-image.test.running.yaml b/mappings/results/container-image.test.running.yaml new file mode 100644 index 0000000..7b0769a --- /dev/null +++ b/mappings/results/container-image.test.running.yaml @@ -0,0 +1,15 @@ +# Resultsdb Updater V2 Mapping, Supported for release Tag 1.x.x onwards. + +outcome: "RUNNING" +testcase: + name: "${body.test.namespace}.${body.test.type}.${body.test.category}" +ref_url: "${body.run.url}" +data: + type: + - "container-image" + item: + - "${body.artifact.repository}@${body.artifact.digest}" + scenario: + - "#if(${body.test.scenario})${body.test.scenario}#{else}not available#end" + scratch: + - "${body.artifact.scratch}"