This series changes the REST API so that results are moved out of
the SeriesSerializer and into their own collection endpoint.
This should make it easier for Shubham to design a REST replacement
for the applier-report and tester-report APIs.
Patches 1-3 are preparatory changes; patches 4-6 introduce the new
endpoint; patches 7-8 improve test coverage for project tests.
Paolo
v1->v2: support project results; move Result to api.models,
even though it's not yet exactly a model we'll use
it soon in the website as well
Paolo Bonzini (8):
rest: create Result object
rest: use lookup_field in HyperlinkedMessageField
rest: add data to testing results
rest: create separate results endpoint
rest: include log directly in /.../results/xyz response
rest: add project results
testing: refactor tests introducing a common superclass
TestingTestCase
testing: cover project tests
api/models.py | 13 ++++
api/rest.py | 97 +++++++++++++++++++++++----
api/urls.py | 6 ++
mods/git.py | 31 +++++----
mods/testing.py | 22 +++---
tests/test_git.py | 49 +++++++++-----
tests/test_rest.py | 11 +++
tests/test_testing.py | 181 ++++++++++++++++++++++++++++++++++++--------------
8 files changed, 310 insertions(+), 100 deletions(-)
--
2.16.2
_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel