2682 Commits

Author SHA1 Message Date
Matt Prahl
8eb2301d43 Merge #1583 Add workaround for DNF fail-safe mechanism 2020-03-03 18:45:08 +00:00
Matt Prahl
02b11426e7 Merge #1590 Fix $PATH when running tests using podman 2020-03-03 18:43:23 +00:00
Martin Filip
22ebbad64b Add test_build_stream_collision.py and example config 2020-02-28 11:45:24 +00:00
Merlin Mathesius
5b6252b194 Fix $PATH when running tests using podman
Signed-off-by: Merlin Mathesius <mmathesi@redhat.com>
2020-02-17 14:27:52 -06:00
Michal Kovarik
7bae720b81 C3I: Fix permissions on new c3i project.
Allow service account used by pipeline-as-a-service to manage resources
in project created via c3i-as-a-service.
2020-02-14 07:21:38 +01:00
Hunor Csomortáni
401d8aa3b8 Merge #1582 Document integration test case and test environment design 2020-02-07 10:24:42 +00:00
Mike Bonnet
762cc5cfd6 typo in integration tests
Missing comma.
2020-02-06 11:43:13 -08:00
Michal Kovarik
07806dba2c C3I: Use new SERVICES_TO_DEPLOY parameter
Allows to whitelist services to be installed.
2020-02-06 01:14:44 +00:00
Brendan Reilly
0a0c1266a1 Updated koji tests for new mock option 2020-02-04 14:20:18 -05:00
Mikolaj Izdebski
2d1b056508 Add workaround for DNF fail-safe mechanism
Fixes #1525
2020-02-04 14:09:06 -05:00
Hunor Csomortáni
3ed1180669 Document integration test case and test environment design
Update the integration test README to explain the design of the test
case and test environment code. This should help future contributors.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2020-01-30 15:36:05 +01:00
Mike McLean
01a04ed793 Release v2.32.0 v2.32.0 2020-01-30 12:25:15 +01:00
Martin Filip
ae60a344b1 Add test_normal_build_conflict 2020-01-29 16:29:51 +01:00
Hunor Csomortáni
7f67c2f6f6 Merge #1567 Module Stream Expansion integration test 2020-01-23 13:28:24 +00:00
Mariana Ulaieva
fefeafa572 Implement the Stream Expansion scenario 2020-01-23 14:26:46 +01:00
Mariana Ulaieva
a5f6d8f136 Factor out packaging utility
Until now, it was assumed that the module-build command returned only
one build, so it was only one build_id. However, it is possible that
the module-build command will build more than one builds and therefore
a list of build_ids is needed. Also is needed to watch and cancel more
than one build.
For this reason run, watch, and cancel methods are methods of the
PackagingUtility class instead of Build class.  Run method returns list
of Build objects instead of build_id. And it's also possible to cancel
and to watch on all generated module builds.
2020-01-23 14:26:46 +01:00
Michal Kovarik
de9443a74a C3I: Rewrite test into bash to be re-usable
Move execution logic from groovy scripts to bash. To be possible to run
them from any environment.
Setup pipeline using provion endpoint.
2020-01-23 07:32:03 +01:00
Hunor Csomortáni
f35935c143 Add rpm-py-installer as a dependency for the integration tests
'rpm' is an optional dependency for kobo, which is required by the
integration tests.

Previously this dependency was implicitly satisfied by 'koji' pulling
in 'rpm-py-installer' which made sure 'rpm' is available. But
koji==1.20.0 made this dependency optional, so importing kobo.rpmlib
started failing.

Fix this by making 'rpm-py-installer' and explicit dependency for the
integration test environment.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2020-01-21 10:30:21 +01:00
Matt Prahl
66a2362a90 Merge #1552 Fix the provides of base modules 2020-01-16 19:38:55 +00:00
Brendan Reilly
c2561da405 Added unit tests for add_base_module_provides 2020-01-16 14:26:04 -05:00
Hunor Csomortáni
5f7442f8c1 Tests: Create a fixture for scenario configuration
Until now, to access the configuration of a scenario, the full path in
test_env had to be specified.

This might be cumbersome and error prone.

Create a scenario fixture, to make it easier to access the same
configuration.

Instead of

    test_env["testdata"]["my_scenario"]["my_config"]

one can use the following:

    scenario["my_config"]

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2020-01-16 10:29:14 +01:00
Luiz Carvalho
351eb671f6 Merge #1546 No components integration test 2020-01-10 14:06:44 +00:00
Mariana Ulaieva
c35fe26e73 No components integration test
Implement the Module With No Components integration test.
2020-01-10 14:38:13 +01:00
Chenxiong Qi
3d771aac10 Fix a typo
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2020-01-10 16:08:33 +08:00
Matt Prahl
fef0ffaf53 Merge #1563 use gssapi if correct python-requests-kerberos is available 2020-01-09 16:38:00 +00:00
Brendan Reilly
c349946718 use gssapi if correct python-requests-kerberos is available 2020-01-09 10:01:36 -05:00
Brendan Reilly
df319e14ce Fix the provides of base modules when it has a stream version 2020-01-07 11:33:56 -05:00
Mike McLean
6b85a31e0d close dnf base instance after we're done with it 2019-12-20 09:55:09 -05:00
Mike McLean
1fae917fc3 error if repo metadata fails to load 2019-12-20 09:55:09 -05:00
Mike McLean
0d66e24a05 make dnf timeout configurable 2019-12-20 09:55:09 -05:00
Mike McLean
36ca88115e Release 2.31.0 v2.31.0 2019-12-19 15:11:22 -05:00
Matt Prahl
7c91d7e2e1 Merge #1545 Use jinja templates to provide 'full-jobs' 2019-12-12 15:05:14 +00:00
Michal Kovarik
a97f6ce9ff Use jinja templates to provide 'full-jobs'
Reduce number of jobs from 20 to 12 by merging them and using
templating to avoid code duplicity.
Jenkinsfile are directly put into jobs as a script - not pulled from
repository - avoiding issue with not clean workspace.
Secrets are taken from openshift using service account intead of
refering them in environment which caused that secret had to exist and
could be empty.
Job execution is straitforward - one jobs is repsonsible for each
process, only triggered jobs are c3iaas request and
pipeline-as-a-service job, everything else is managed by one job.
2019-12-11 12:30:59 +01:00
ejegrova
f61f7afbdd Add integration test for reuse components 2019-12-09 15:18:11 +01:00
Mariana Ulaieva
06974ef202 Reuse all components test
Implement the integration test for the Reuse All components Scenario.
2019-12-09 14:43:38 +01:00
Hunor Csomortáni
eb86e52c29 Merge #1538 Various test improvements 2019-12-09 12:59:40 +00:00
Matt Prahl
f4ab801b3a Merge #1535 Only allow cancelling module builds in the init, wait, and build states 2019-12-06 14:02:13 +00:00
Hunor Csomortáni
35c1097920 Tests: increase koji task timeout to 5 minutes
When running multiple test builds, the 1 minute timeout was often not
enough.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2019-12-06 12:33:44 +01:00
Hunor Csomortáni
b2485a6150 Tests: fix koji.PathInfo
This should use "topurl". Remove the "weburl" config as it's not needed
anymore.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2019-12-06 12:33:44 +01:00
Hunor Csomortáni
343f1b9818 Tests: separate starting and watching the builds
This makes the tests more explicit, but also prepares the ground to
enable canceling test builds during session teardown in the future.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2019-12-06 12:33:44 +01:00
Hunor Csomortáni
72bb5a2943 Tests: bump the commit before builds
Whenever the tests start a "normal" (non-scratch) build, the commit
needs to be bumped.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2019-12-06 12:33:44 +01:00
Hunor Csomortáni
cfb3549e79 Tests: clone modules with the packaging utility
This is how packagers do. Git URL configuration can also be removed.

Also: redirect command outputs, so that pytest can capture them.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2019-12-06 12:33:44 +01:00
Hunor Csomortáni
30215a1ac5 Tests: improve reporting when running with tox
Generate a short report at the end of each test run and a self-contained
HTML report, too.

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
2019-12-06 12:33:44 +01:00
Matt Prahl
19f0e9ad83 Merge #1529 Update tests to use pipeline-as-a-service 2019-12-05 17:49:43 +00:00
mprahl
9d946af461 Only allow cancelling module builds in the init, wait, and build states 2019-12-04 13:50:52 -05:00
Michal Kovarik
0f057696c8 update tests 2019-12-03 10:15:11 +01:00
Michal Kovarik
e40f5b9735 Integrate pipeline-as-a-code for build 2019-12-03 10:14:20 +01:00
Michal Kovarik
8ba97efce7 Move pagure functions to c3i-library 2019-12-03 07:31:28 +01:00
mprahl
3051596166 Remove the koji.ClientSession backport
See https://pagure.io/koji/pull-request/1187 for context.
2019-12-02 12:07:40 -05:00
Mariana Ulaieva
4c8a92cb93 Integration test for the Cancel And Resume
Implement the integration test for the Cancel and Resume scenario.
2019-11-29 13:45:40 +01:00