Allow Testcase autocreation for create_result
ClosedPublic

Authored by jskladan on Jul 13 2015, 12:32 PM.

Details

Summary

In the "old" resultsdb, testcases were identified just by the URL,
with the transition to RESTfull interface, we switched to identification
by name, and compulsory URL attribute (which is meant to point to the
testcase's documentation). We don't actually really use the URL attribute
anyways, and needing to check for Testcase's existence prior to any
create_result() call is kind of pointless anyways - since "not found"
testcase is then created anyway, just on the client side.

This patch moves the "automagic" part to the server, while still allowing
the client to instruct the server to require the testcase to be created
beforehand by introducing the strict parameter (False by default) to the
create_result() routine

This does not fix the issue in T519 per se (patch will follow), per se,
but changes the way testcase-creation is handled in clients.

Test Plan

Tested locally via httpie

Diff Detail

Repository
rRSDB resultsdb
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
jskladan retitled this revision from to Allow Testcase autocreation for create_result.Jul 13 2015, 12:32 PM
jskladan updated this object.
jskladan edited the test plan for this revision. (Show Details)
jskladan added reviewers: kparal, tflink, mkrizek.
mkrizek accepted this revision.Jul 13 2015, 12:56 PM
This revision is now accepted and ready to land.Jul 13 2015, 12:56 PM
kparal accepted this revision.Jul 14 2015, 10:30 AM
Closed by commit rRSDB6832b40f838d: Allow Testcase autocreation for create_result (authored by Josef Skladanka <jskladan@redhat.com>). · Explain WhyJul 15 2015, 8:11 AM
This revision was automatically updated to reflect the committed changes.