#125 Add container-image.test mapping for Resultsdb Updater V2
Merged 2 years ago by lholecek. Opened 2 years ago by mkovarik.
fedora-ci/ mkovarik/messages image-promotion-mapping  into  master

@@ -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}"

@@ -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}"

@@ -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}"

@@ -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}"

Enable Resultsdb Updater V2 for container-image.

+1 I can merge this so you can test it now, but there are more fields stored by the old resultsdb-updater for container-image test messages: https://github.com/release-engineering/resultsdb-updater/blob/05cc981f66e8033a9017466811caa22014e751d9/resultsdbupdater/utils.py#L402-L421

For Greenwave, the system_architecture is also important:

    system_architecture:
        - "${body.system[0].architecture}"

Pull-Request has been merged by lholecek

2 years ago

Tagged with version 1.1.7.