Ralph Bean
c29fd257e4
Merge #655 CoprModuleBuider - some unit tests for it
2017-09-12 13:03:14 +00:00
Filip Valder
3cb41aa5dc
Changes in MBS restful API:
...
- Refactor MBS API code
- Unify module-/component_build API philosophy/design/approach
- Naming fixes
- _utc_datetime_to_iso moved from ModuleBuildAPI and is now a module-level function.
- Existing v1 API remains unchanged. ComponentBuildAPI now supports individual component build listing + verbose mode.
- documented in README
- various component_build API tests added
2017-09-11 14:48:22 +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
Jakub Kadlcik
376ca596c5
Add some unit tests for Copr
2017-09-09 10:07:42 +02:00
Jan Kaluža
379fe8ed9b
Merge #674 Move vcrpy cache to gzipped tarball and extract it before tests execution.
2017-09-08 12:59:32 +00:00
Jan Kaluza
aa8a0574e4
Move vcrpy cache to gzipped tarball and extract it before tests execution.
2017-09-08 11:35:24 +02:00
Jan Kaluža
2a6cbe6ddb
Merge #647 Add 'requires' of 'build-required' modules to buildroot when building module.
2017-09-08 07:38:41 +00:00
Jan Kaluza
83628ec74f
Add 'requires' of 'build-required' modules to buildroot when building module.
2017-09-08 09:25:44 +02:00
Ralph Bean
ef4acf0641
Add the koji tag for the content to the CG metadata.
...
@puiterwijk will want to use this in robosignatory to figure out what
content needs to be signed.
2017-09-07 11:38:45 -04:00
Jan Kaluza
4f4a6c92b0
Use PDC ordering to get the latest module.
2017-09-07 09:16:19 +02:00
Jan Kaluza
ac92a389d6
Fix module dist_tag separator in tests
2017-08-31 10:46:42 -04:00
Jan Kaluza
dfdd924bbf
Always regen repository when starting module build to not wait on kojira.
2017-08-18 09:39:07 +02:00
Jan Kaluza
aac4227eb8
Add 'mbs-build local [[--add-local-build n:s:v], ...]' to use local builds as dependency.
2017-08-17 10:00:19 +02:00
Jan Kaluza
6a94a43ee1
Fix test_content_generator tests by ensuring that build_log is removed before running first test
2017-08-08 13:47:49 +02:00
Jan Kaluza
4bbb0cc416
Create module-build-macros component just once - do not duplicate it for each resubmition of a module.
2017-08-08 06:52:28 +02:00
Jan Kaluža
9d0528b6b7
Merge #629 Upload build logs to Koji, use .txt extension instead of .yaml by default.
2017-08-08 04:37:02 +00:00
Jan Kaluza
7d3b4f5147
Upload build logs to Koji, use .txt extension instead of .yaml by default.
2017-08-07 15:39:44 +02:00
Filip Valder
09b3f32dbb
Fix #619 : Support for module YAML file validation within a SCM repository
2017-08-07 13:10:53 +02: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
Ralph Bean
af5460db80
Merge #604 Remove checksum comparison in CG test.
2017-07-12 18:18:18 +00:00
Ralph Bean
b3dc1bf4a9
Longer timeout on test_submit_build_resume
...
This should "fix" #568 .
2017-07-11 13:47:18 -04:00
Stanislav Ochotnicky
a6411bc6b1
Clean up logs for build tests
2017-07-11 13:28:08 -04:00
Ralph Bean
0d614e5bdc
Revert "Remove checksum comparison in CG test."
...
This reverts commit 98a1a55694 .
2017-07-11 13:27:54 -04:00
Matt Prahl
0f5bd40cb7
Merge #606 Create app_context before database session.
2017-07-11 12:46:22 +00:00
Jan Kaluža
746f284c0a
Merge #600 Include logger tests.
2017-07-11 07:55:58 +00:00
Jan Kaluza
1621c1e4fd
Create app_context before database session.
2017-07-11 09:41:55 +02:00
Ralph Bean
10bf49bffe
Use tempdir for storing logs during test.
2017-07-11 09:35:10 +02:00
Jan Kaluza
35176e903b
Include logger tests.
2017-07-11 08:31:05 +02:00
Yashvardhan Nanavati
d79a9584c7
Find module build using attributes of a component build in koji
2017-07-07 14:37:43 -04:00
Ralph Bean
98a1a55694
Remove checksum comparison in CG test.
...
The checksum of the build.log file changes every time because it is (in
part) based on the timestamp that the file was written (at the time of
the test run).
2017-07-07 14:35:08 -04:00
Ralph Bean
5ac5ab0c13
Merge #601 Add build log into koji content generator
2017-07-07 15:56:55 +00:00
mprahl
3e819abcb6
Include the query arguments in the pagination metadata
2017-07-06 09:09:17 -04:00
Stanislav Ochotnicky
40074b088e
Fix test for logging change
...
Change of configuration to enable logging by default caused the test to
fail because mocked object had no id. This change fixes the test and
sets up cleanup for logs
2017-07-04 08:51:53 +02:00
Stanislav Ochotnicky
747b60f4b4
Add build logs into the koji content generator
...
This change adds another output next to the mmd file - a build.log which
will contain builds collected during the module build
2017-07-03 13:07:43 +02:00
Jan Kaluza
a07b44411c
Set the state_reason when format_mmd raises in frontend and do not overwrite the state_reason in backend.
2017-06-06 14:49:49 +02:00
Jan Kaluza
b4c0f49e4b
Fix get_reusable_component in case when database returns components in different order than what we have in MBS.
2017-06-05 15:03:59 +02:00
Ralph Bean
2ab6193987
Rename consecutive to concurrent.
...
Fixes #574 .
2017-05-31 13:54:11 -04:00
Jan Kaluža
acc74bd6e0
Merge #565 Support 'order_by' and 'order_desc_by' in filter_module_builds(...)
2017-05-25 13:14:32 +00:00
Jan Kaluza
f27b0ddb81
Regenerate the repo when module-build-macros is reused to ensure it is in the buildroot.
2017-05-24 14:26:08 +02:00