Jakub Kadlčík
a09bfbd506
Value of copr_config is not relevant for this tests
2016-11-10 13:27:46 -05:00
Jakub Kadlčík
34a2ea7856
Implement GenericBuilder.repo_from_tag for copr backend
2016-11-10 13:27:46 -05:00
Filip Valder
dd4790f514
fix: issue #159 return state_url in JSON after module build submission
2016-11-07 13:13:01 +01:00
Ralph Bean
b2d1cf9f0d
Merge #154 Fix #126 - remove Builder class
2016-11-02 12:54:04 +00:00
Jan Kaluza
d9916a1634
Fix #126 - remove Builder class
2016-11-01 14:44:42 +01:00
Jan Kaluza
42138810d5
Fix KojiModuleBuilder.build return values in tests
2016-11-01 12:05:08 +01:00
Ralph Bean
725fa9f3e0
Merge #150 Ignore repository builds without the '-build' suffix.
2016-10-31 13:03:58 +00:00
Jan Kaluza
6fd16587bc
Ignore repository builds without the '-build' suffix.
2016-10-31 13:14:31 +01:00
Jan Kaluza
cc5836d3ce
Fix 'We have no record of ...' when Koji task finishes by comparing task_id with task_id and not with buil_id.
2016-10-31 11:27:42 +01:00
Ralph Bean
66de3457af
Fix the test suite.
...
These must've not gotten renamed in a PR merge dance.
2016-10-25 15:09:22 -04:00
Jan Kaluža
17fb31d2fd
Merge #124 Fix #117,#51 - Add rida.builder.Builder.tag_to_repo method to get the URL to repository based on a tag name. Also create target when creating build target to ensure this repo is generated for Koji builder.
2016-10-25 14:05:43 +00:00
Courtney Pacheco
8e4af4c985
Adding fakemodule2.yaml (a minimal, componentless module)
2016-10-25 07:58:06 -04:00
Jan Kaluza
a7c2386983
Fix #117,#51 - Add rida.builder.Builder.tag_to_repo method to get the URL to repository based on a tag name. Also create target when creating build target to ensure this repo is generated for Koji builder.
2016-10-25 12:10:16 +02:00
Courtney Pacheco
4127a8c3c3
Adding test to view_test.py and fixing prior commit for 'pdc.py'
2016-10-25 04:44:45 -04:00
Matt Prahl
b4082dc551
Rename module from rida to module_build_service
...
Rename routes from /rida/1/module-builds/ to /module-build-service/1/module-builds/
2016-10-24 10:30:23 -04:00
Ralph Bean
a551ad9214
Fix the test suite.
...
This was added in #92 .
But the function got renamed in 31ec1835db .
Merge hell.
2016-10-21 11:47:20 -04:00
Ralph Bean
67f72b8379
Merge #92 Fix #85 - Add 'fail_reason' to ComponentBuild and ModuleBuild models to have a user-friendly error message when build fails.
2016-10-20 18:25:27 +00:00
Jan Kaluža
a18ccf4f11
Merge #101 Fix #88 - Reject SCM URLs which do not match the URL structure expected by pdc-updater.
2016-10-20 15:27:50 +00:00
Ralph Bean
f54b047f48
Merge #77 Create (koji) builder session on behalf of users
2016-10-20 15:20:12 +00:00
Jan Kaluza
50273b4dbd
Fix #85 - Add 'state_reason' to ComponentBuild and ModuleBuild models to have a user-friendly error message when build fails.
2016-10-20 10:18:25 +02:00
Jan Kaluza
728eaf2277
Fix #88 - Reject SCM URLs which do not match the URL structure expected by pdc-updater.
2016-10-20 09:54:11 +02:00
Ralph Bean
b1fce413f5
Merge branch 'amq-messaging'
2016-10-18 10:45:59 -04:00
Ralph Bean
04d773b3fb
Get the test suite working agian for https://pagure.io/fm-orchestrator/pull-request/73
2016-10-18 10:33:04 -04:00
Jan Kaluza
62a07b4026
Check the SCM availability of components of modulemd file in parallel in multiple threads to save time.
2016-10-14 10:58:58 +02:00
Nils Philippsen
31ec1835db
rename method to KojiModuleBuilder.get_session()
...
KojiModuleBuilder.get_session_from_config() will require the owner as an
argument, therefore drop encoding arguments in the method name.
2016-10-04 13:58:23 +02:00
Matt Prahl
256a57e906
Remove unnecessary import statement
2016-09-22 12:48:51 +02:00
Jan Kaluza
e236e86fce
Prefix API calls with version number (for example '/1/'). Add initial support for multiple versions of API calls.
2016-09-21 15:58:15 +02:00
Matt Prahl
a3ecd4180d
Add unit tests for abstract messaging
2016-09-21 14:58:10 +02:00
Matt Prahl
23f057b750
Use abstract message classes instead of legacy code
2016-09-21 14:58:10 +02:00
Matt Prahl
183166ab9c
Fix broken unit tests from PR#63 and PR#64 merge
2016-09-12 13:08:33 -04:00
Matt Prahl
dc30b483c5
Merge #64 Add unit tests for API routes
2016-09-12 16:38:55 +00:00
Matt Prahl
fbc5deaa56
Add unit tests for the API routes
2016-09-08 16:41:53 -04:00
Matt Prahl
2a26dd4375
Add function to create dummy data for unit tests
2016-09-08 16:41:32 -04:00
Matt Prahl
2f64e5dc45
Add test configuration
2016-09-08 16:39:08 -04:00
Ralph Bean
b12bda2d55
Check FAS for packager status, not pkgdb.
...
Before this, we were consulting pkgdb to see if the given user was the
maintainer of any packages.
That mostly works... but technically, we want to consult FAS to see if
the user is in the packager group.
We found this when @mprahl was unable to submit builds to rida. I added
him to the packager group, but nothing changed! (As written, he had to
actually own a package).
This change fixes all that so that we query FAS instead of pkgdb.
Tests are added.
2016-09-07 16:35:25 -04:00
Nils Philippsen
4bb5227aec
add 'connect' parameter which was missing
...
Not sure if that needs to be there, it's not used at all in the method.
Side-effects?
2016-08-24 16:37:55 +02:00
Lubos Kocman
68e32ee8c7
idempotent KojiBuilder implementation of rida/builder.py
...
- Allows to call build() and connect() multiple times. This needs to be
followed by allowing to resubmit module build tasks in REST.
- rename buildroot_add_repo() to buildroot_add_repos() (input data is artifacts)
Signed-off-by: Lubos Kocman <lkocman@redhat.com >
Signed-off-by: Nils Philippsen <nils@redhat.com >
2016-08-22 18:20:24 +02:00
Ralph Bean
59ebcdbb84
Get the test suite working again.
2016-08-10 16:15:01 -04:00
Matt Prahl
7a928c3e8c
Adds database migration support, converts rida.conf to config.py, adds Vagrant support, seperates out app views to views.py, control of the app now manage.py
2016-08-01 13:22:01 -04:00
Ralph Bean
0b0021b5ea
Merge branch 'master' into ridad
...
Also, fix tests.
2016-07-27 13:34:32 -04:00
Ralph Bean
4edada2e15
Try to get tests working again for jenkins...
2016-07-22 11:18:46 -04:00
Ralph Bean
8b3ed86fa8
Change the names of these classmethods to be a little more generic.
2016-07-20 15:50:48 -04:00
Ralph Bean
d08c7b936b
Keep and use the full scm url instead of reconstructing it.
2016-07-20 14:42:56 -04:00
Lubos Kocman
0fbe160af0
waiting for right task_id, cleanup of code
2016-07-20 19:42:30 +02:00
Ralph Bean
379fc3fe5a
Get the test suite running again.
2016-07-17 00:16:57 -04:00
Ralph Bean
af86b0a4fc
Some test coverage for the repo done code.
2016-07-16 00:15:58 -04:00
Ralph Bean
fe863aa33a
Rename this state transition handler.
2016-07-15 14:05:37 -04:00
Ralph Bean
7be07d37b1
Fix a mock that broke.
2016-07-15 13:07:04 -04:00
Ralph Bean
40a3448dca
Some handlers and one test.
2016-07-13 16:55:51 -04:00