Commit Graph

1643 Commits

Author SHA1 Message Date
Matt Prahl
7a84e65752 Fix the API URL in submit-build.sh 2016-09-27 16:40:03 -04:00
Matt Prahl
02b24cdda9 Replace generate_localhost_cert.sh with python manage.py generatelocalhostcert 2016-09-27 16:40:03 -04:00
Matt Prahl
d86374f360 Add documentation on how to setup fedmsg signing in development 2016-09-27 16:40:03 -04:00
Matt Prahl
c77be1c4d3 Add the dependencies required for fedmsg signing 2016-09-27 16:40:03 -04:00
Matt Prahl
681ca5a8cf Implement python manage.py gendevfedmsgcert command 2016-09-27 16:40:03 -04:00
Matt Prahl
610d6a8c81 Split up long lines to comply with PEP8 standards 2016-09-27 16:40:02 -04:00
Nils Philippsen
7260a029d1 Merge branch 'abstract-messaging-repr' 2016-09-22 16:08:59 +02:00
Matt Prahl
94723614f5 Remove the use of pprint in main.run function 2016-09-22 16:08:52 +02:00
Nils Philippsen
2233f60f58 implement BaseMessage.__repr__
Take advantage of the information contained in signature/parameter
objects to represent positional and keyword arguments properly. Fall
back to using the funcsigs module on Python 2.
2016-09-22 16:08:52 +02:00
Matt Prahl
8f36d863cf Merge #66 Put Kerberos options in rida config 2016-09-22 16:07:49 +02:00
Nils Philippsen
a4cc011eed put kerberos config params in rida configuration
koji.read_config() filters out configuration options it doesn't know
about silently. Currently this is about the keytab, principal, ccache
options. The latter may be needed e.g. in Docker containers which
currently(?) can't use Linux kernel keyrings and need the credential
cache to be a normal file.
2016-09-22 16:06:35 +02:00
Nils Philippsen
7689c05c51 remove bogus code 2016-09-22 16:06:35 +02:00
Nils Philippsen
1c18f00a52 Merge branch 'mprahl/change-api-layout' 2016-09-22 13:27:06 +02:00
Matt Prahl
4f629fe64c Use view type better suited for a REST API
MethodView maps to REST APIs intuitively, the method names on the class
are the same as the handled HTTP methods (just lowercase).
2016-09-22 13:26:31 +02:00
Matt Prahl
5aef7fed98 Fix whitespace, indentation 2016-09-22 13:26:11 +02:00
Nils Philippsen
9cc7649444 Merge branch 'mprahl/python3-compatibility' 2016-09-22 12:49:08 +02:00
Matt Prahl
ec8126c226 Fix/cleanup Python 3 compatibility 2016-09-22 12:48:51 +02:00
Matt Prahl
256a57e906 Remove unnecessary import statement 2016-09-22 12:48:51 +02:00
Matt Prahl
634fabb798 Fix bug "object has no attribute" 2016-09-21 16:30:45 -04: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
Nils Philippsen
806d20c4f2 Merge branch 'mprahl/570-abstract-messaging' 2016-09-21 15:28:30 +02:00
Matt Prahl
d37659afd8 Modify message functions to accept conf instead of backend 2016-09-21 14:58:10 +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
03831262e4 Update documentation about messaging 2016-09-21 14:14:26 +02:00
Matt Prahl
43f80e181c Implement message classes for abstract messaging 2016-09-21 13:48:22 +02:00
Matt Prahl
a674de3fc3 Separate top-level function by two blank lines 2016-09-21 13:48:22 +02:00
Matt Prahl
180b376ee2 Remove stray space in log string 2016-09-21 13:48:22 +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
Ralph Bean
ae14f068b1 Merge #63 Check FAS for packager status, not pkgdb. 2016-09-12 16:37:36 +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
f0e062c5a3 don't use vars() on munch.Munch() dict
Using vars() this way breaks passing the koji configuration options to
koji.ClientSession(), it passes an empty dict instead. Any options in
koji.conf which are needed for authenticating are ineffectual (e.g.
`krbservice`).
2016-09-05 21:22:09 +02:00
Matt Prahl
fbe1beee54 Convert errors to JSON
Signed-off-by: Matt Prahl <mprahl@redhat.com>
Signed-off-by: Nils Philippsen <nils@redhat.com>
2016-08-26 12:06:28 +02:00
James Antill
d809d34ed7 Add jenkins-check.sh to run unit tests from docker.
Roughly as jenkins does.
2016-08-25 15:23:47 +02:00
Lubos Kocman
ed8b2ee97a Remove unused state variable. Pyflakes complained
Signed-off-by: Lubos Kocman <lkocman@redhat.com>
2016-08-25 14:38:48 +02:00
Nils Philippsen
c1eb85044a Merge branch 'lkocman/ready_state' 2016-08-25 14:27:46 +02:00
Lubos Kocman
a53f37ecff direct transition to ready from done
As of now we don't do anything useful in between done (read: module
build is done) and ready (read: module is ready for consumption).

Thus I recommend direct transition and return to it back
when we have automatic dependency rebuild done.

Signed-off-by: Lubos Kocman <lkocman@redhat.com>
Signed-off-by: Nils Philippsen <nils@redhat.com>
2016-08-25 14:27:36 +02: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
Nils Philippsen
343ad70c5a Merge branch 'api-search' 2016-08-24 15:23:15 +02:00
Nils Philippsen
015990bc6c fix typos and "i.e." instead of "e.g." 2016-08-24 15:21:57 +02:00
Matt Prahl
09d857b25d Add and cleanup documentation 2016-08-24 15:20:20 +02:00
Matt Prahl
4997e06258 Update Vagrant to use Fedora 24 2016-08-24 15:20:20 +02:00
Matt Prahl
361de94693 Add filtering to the module-builds route 2016-08-24 15:20:20 +02:00
Matt Prahl
c79139b82c Add additional info to the module-build(s) API output 2016-08-24 15:20:20 +02:00
Matt Prahl
864ba5104e Modify the database timestamps when the build state changes 2016-08-24 15:20:20 +02:00
Matt Prahl
d1a01e5d79 Add owner and timestamp columns to the module_builds table 2016-08-24 15:20:20 +02:00