Commit Graph

27 Commits

Author SHA1 Message Date
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
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