sclorg / container-common-scripts

Apache License 2.0
20 stars 45 forks source link

Support testing in CVP #214

Closed phracek closed 2 years ago

phracek commented 2 years ago

This pull request adds support for testing our containers in CVP pipeline.

The new variable is defined called CVP=1. The test alone is executed from test/test-openshift.yaml playbook if file test/run-openshift-remote-cluster exists.

We will NOT create a project. This is already done by CVP.

The parameters to the script are:

VERSION={{ environment[0]['VERSION'] }} IMAGE_NAME={{ image_name }} OS={{ environment[0]['OS'] }} CVP=1 bash test/run-openshift-remote-cluster  | tee {{ cvp_artifacts_dir }}/{{ image_name }}.log

We do NOT build the image itself. It is provided and already uploaded into OCP4 cluster by CVP. Therefore it is specified as a parameter into test/run-openshift-remote-cluster script. The same as VERSION and OS.

Signed-off-by: Petr "Stone" Hracek phracek@redhat.com

phracek commented 2 years ago

[test]

phracek commented 2 years ago

[test]

phracek commented 2 years ago

[test]

phracek commented 2 years ago

[test]

pkubatrh commented 2 years ago

Otherwise lgtm

phracek commented 2 years ago

[test]