Owen W. Taylor
ddee4f840b
MockModuleBuilder: add artifacts to artifacts not components
...
The built RPM artifacts were being added to the components list (the
RPMs to build) instead of the proper artifacts section. Also, they
need to be in NEVRA format, so use 'rpm -qf' to query the epochs from
the built artifacts.
2018-05-30 15:47:14 -04:00
mprahl
15a7e322a6
Fallback to the old Koji tag format for the target when the tag name is too long
2018-05-08 09:11:22 -04:00
Jan Kaluza
c1c95fc963
Allow defining list of packages which are blocked in the -build tag until they are built in a module.
2018-04-13 12:57:27 +02:00
Jan Kaluza
5d91c97386
Allow defining list of packages which are blocked in the -build tag until they are built in a module.
2018-04-12 09:45:57 +02:00
mprahl
caadb13f0e
Remove the COPR tests
...
The COPR tests were causing failures and since most of them were
skipped and haven't been updated in a long time, let's just delete
them.
2018-04-03 09:58:57 -04:00
Jan Kaluza
e5e9a24fce
Allow adding bool to XMD. Fix flake8 issues.
2018-04-03 09:58:57 -04:00
mprahl
eb0b2e1c38
Add the database resolver plugin
2018-04-03 09:58:57 -04:00
mprahl
f0852d9009
Port to libmodulemd and support v2 modulemd without module stream expansion
2018-04-03 09:58:57 -04:00
Yash Nanavati
ed25afd9ec
Code changes for Python 3 support
2018-03-04 03:22:38 -05:00
Yash Nanavati
1d3fd2af64
Minor changes towards Python 3 Compatability
2018-02-28 09:01:51 -05:00
mprahl
f5530d9b16
Fix flake8 errors made by jkaluza
2018-02-09 09:12:00 -05:00
Jan Kaluza
6a5d7267fd
Save another 20s in tests.
2018-02-09 11:46:12 +01:00
mprahl
e91d09f7ca
Change the format of the unit tests to pytest
2018-01-31 16:34:21 -05:00
mprahl
df594da8a5
Remove the Koji proxyuser functionality
2018-01-30 11:49:03 -05:00
Filip Valder
5b4a8f6240
New: Resolver API for pluggable resolvers
2018-01-29 15:54:19 +01:00
Ralph Bean
01c8295269
Add an incrementing prefix to the dist_hash.
...
For #823 .
2018-01-17 16:54:02 -05:00
mprahl
a67b53f5c3
Add a "context" field on component and module releases in Koji for uniqueness for when Module Stream Expansion is implemented
2018-01-16 10:36:09 -05:00
mprahl
c0ec0f82c1
Remove urlgrabber as a dependency
2018-01-03 10:21:37 -05:00
mprahl
a54045e518
Don't run KojiModuleBuilder.buildroot_connect in the stale module builds poller
2017-12-11 13:27:30 -05:00
Jan Kaluza
7de120c17b
Get the weight of Koji tasks and use it to sort the components in a batch instead of builds time.
2017-11-28 10:52:17 -05:00
mprahl
e4be54a838
Skip COPR tests that now fail since PR #765
2017-11-28 09:56:51 -05:00
mprahl
30ef85af01
Fix "instant complete" builds and reusing all components
2017-11-27 16:20:28 -05:00
Ralph Bean
8431d2698b
Explicit imports of builders in the test suite.
2017-11-10 16:03:14 -05:00
mprahl
a8421568f9
Fix Flake8 errors
2017-11-08 08:45:58 -05:00
Martin Curlej
1eb3c653dd
Changed the filters so they execute when everything is build
...
Signed-off-by: Martin Curlej <mcurlej@redhat.com >
2017-10-31 16:04:31 -04:00
Jan Kaluza
b56f56a486
Use dogpile.cache to cache the default_buildroot_groups result
2017-10-26 14:03:23 +02:00
Martin Curlej
60b3d97c97
flake8 cleanup
...
Signed-off-by: Martin Curlej <mcurlej@redhat.com >
removed some noqa tags
2017-10-25 12:13:59 +02:00
Jakub Kadlcik
8db83b11ab
Mock also _create_chroot_safe so nothing is really created
2017-09-09 13:51:07 +02:00
Jakub Kadlcik
d39ebf5ccb
Mock CoprClient.create_project method
...
So the python-copr-1.79-1 is not required for the chroots= parameter
2017-09-09 13:45:52 +02:00
Jakub Kadlcik
7353d4ce0b
Copr uses latest-Fedora-Modular-26 repo
2017-09-09 13:43:45 +02:00
Jakub Kadlcik
58af071602
Not depend on values order
2017-09-09 13:43:42 +02:00
Jakub Kadlcik
de26b5614e
Dont require copr config file
2017-09-09 10:07:42 +02:00
Jakub Kadlcik
f492e096b6
Fix mock path to copr module builder
2017-09-09 10:07:42 +02:00
Jakub Kadlcik
06e2d2b688
Move copr tests to proper directory
2017-09-09 10:07:42 +02:00
Jan Kaluza
ac92a389d6
Fix module dist_tag separator in tests
2017-08-31 10:46:42 -04:00
Filip Valder
7ef2975984
PEP8 fixes
2017-07-17 18:29:10 +02:00
Ralph Bean
bb56e4f057
Refactor get_build_by_artifact so that it always returns the same kind of dict.
2017-07-14 09:21:52 -04:00
Ralph Bean
d9b1576353
Tests for _get_build_by_artifact.
...
Tests for https://pagure.io/fm-orchestrator/pull-request/583
2017-07-13 14:09:37 -04:00
Ralph Bean
4c60030d31
Use a real module dist_tag here instead of module_x (for believability!)
2017-07-13 14:01:52 -04:00
Ralph Bean
ed0db4ddea
Indentation.
2017-07-13 14:01:27 -04:00
Ralph Bean
5d034185af
Remove unused bits.
2017-07-13 14:01:09 -04:00
Jakub Kadlčík
e8dd847cea
Run init_data() before querying a module
2017-04-13 17:42:12 +02:00
Jakub Kadlčík
e3c3167fae
Don't mock the ModuleBuild class with namedtuple for tests
2017-04-13 16:44:55 +02:00
Jakub Kadlčík
b78b0346d2
Pass the module build into builder
2017-04-12 23:53:55 +02:00
Jan Kaluza
c06d900e62
Do not try to tag builds which have been already tagged in a tag
2017-03-17 11:29:38 +01:00
Jan Kaluza
298bf63120
Fix #409 - Remove koji_tag_inherit_from and whitelist all the components we are going to build instead.
2017-03-14 11:28:47 +01:00
Filip Valder
be3b05e673
Additional tests for validate_koji_tag:
...
- Verify that ProgrammingError exception does what it is intended to do.
- Two (str/list) negative tests for validate_koji_tag decorator itself.
- Two (str/list) positive tests for validate_koji_tag decorator itself.
- Support validation in a test for Koji builder.
2017-02-28 09:08:32 +01:00
Matt Jia
e3ea21c0fd
test koji proxyuser feature
2017-02-17 18:24:44 +10:00
Ralph Bean
d83f210297
Get tests of the retry decorator working in the test suite.
2016-11-18 10:19:41 -05:00
Filip Valder
9b808d4354
test buildroot_read() incl. FakeKojiModuleBuilder and FakeKojiSession
2016-11-18 14:39:27 +01:00