12 Commits

Author SHA1 Message Date
mprahl
daf29dd93c Move some of the defaults from conf/config.py to module_build_service/config.py
This removes the need to duplicate these configuration values.
2020-03-03 14:48:47 -05:00
Mike Bonnet
9c3d9bb441 MBS-Koji integration tests
This change introduces a set of Jenkins pipelines for building MBS
images and running integration tests against Koji using those images.
These pipelines are directly based on the WaiverDB pipeline work:

https://pagure.io/waiverdb/blob/master/f/openshift

The results of those tests are used to provide feedback to Pagure PRs
and to promote images through a series of environments, which may be
used to implement a continuous deployment process.

The current test cases, written in Groovy, are:
 - module-build-init: initate a module build and check that tags
   and targets in Koji are created correctly
 - module-build-cgimport: build an empty module and ensure that
   results are imported correctly into Koji, using the CGImport
   interface
2019-04-30 15:27:28 -07:00
Merlin Mathesius
dd950857ec Update koji tagging for scratch modules.
Signed-off-by: Merlin Mathesius <mmathesi@redhat.com>
2019-03-01 10:27:04 -06:00
Hunor Csomortáni
8ec8a01006 Rename 'koji_arches' to 'arches' in OpenShift config
'koji_arches' was renamed to 'arches' in a previous commit. Update the
configuration in the OpenShift template accordingly.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-13 15:10:32 +01:00
Hunor Csomortáni
cded35e33a Increase polling interval
Polling works in weird ways. It's much better to rely on messaging.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-12 17:56:16 +01:00
Hunor Csomortáni
76e5845632 Indicate 'git' in default repository URLs
Without this, Koji will not treat them as SCM URLs.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-12 17:56:16 +01:00
Hunor Csomortáni
64b8d8c169 Allow custom SCMs in OpenShift
The template is intended to be used for testing, so it makes sense to
allow submitting builds from custom SCM URLs.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-12 17:56:16 +01:00
Hunor Csomortáni
438fc1e531 Configure topic prefix in the OpenShift template
Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-12 17:56:16 +01:00
Hunor Csomortáni
849ffec729 Add module-build-macros to platform buildroots
Koji builds done for a module have to have this in order to set the
correct %dist tag, for example.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-12 17:56:16 +01:00
Hunor Csomortáni
236bc69938 Disable authentication in the OpenShift template
In testing contexts there auth providers are still missing. Disable auth
to allow anyone to submit module builds.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-12 17:56:16 +01:00
Hunor Csomortáni
f68d708f41 Add the test UMB server CA to the backend image
Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-11-12 17:55:54 +01:00
Hunor Csomortáni
65300a57b7 Add OpenShift test template and Dockerfiles
Add Dockerfiles to build images for the backend and frontend.

Add an OpenShift template to deploy an MBS test instance, and connect it
to a message bus and Koji instance.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2018-10-31 15:58:28 +01:00