Open sopos opened 2 years ago
Thanks for outlining the solution! Sounds good and proposes a nice answer to the question shared on the hacking session:
How to represent test case ID in a form of a URL (for future Jira linking)?
If there would be a central database available at a known location the url could look simply like this:
A simple caching server could provide a nice web page with details about the tmt
object (test, plan or story) including links to the git repository web interface to allow users to quickly check the source code. Plus a machine readable format could be provided as well, for example:
@kkaarreell, what do you think?
I just updated the scope with priorities proposal
I am not sure about the central DB reference. For test case URL I would prefer something not dependent on the presence of the actual DB. E.g. something like http://path/to/repo?ref=REF&name=/name/of/test
, even though it would be artificial.
Regarding the caching DB itself, I think it should not only rely on a case ID but it should be able to work also with repo, ref, testname
in some form since not all tests in a monitored repo have to have ID assigned. Ideally, it would find testcase using both the ID and using the other reference (e.g. in a form of URL mentioned above).
I think it should not only rely on a case ID but it should be able to work also with
repo, ref, testname
in some form since not all tests in a monitored repo have to have ID assigned. Ideally, it would find testcase using both the ID and using the other reference (e.g. in a form of URL mentioned above).
Agreed, it should be possible to look for a test case using both/all available identifiers.
How about separating this feature into a centralized database and a one-liner for specifying fmf-id?
one-liner: http://path/to/repo?ref=REF&path=/path/of/&name=/name/of/test
I have just filed related RFE https://github.com/teemtee/tmt/issues/2445
We are gonna introduce the id (uuid) of the fmf nodes. Such id should be path-agnostic within the git repo but furthermore it could be also repo-agnostic with help of a central registry.
For that purpose I propose to call it the _tmtid. The purpose of such _tmtid is basically to be able to translate it into the _fmfid which points to an existing fmf node.
Following would be the possible forms of the references of:
The last two are basically the same except where the db information comes from.
Such id-only references could be then easily used in the ReportPortal, Polarion, Jira, Bugzilla, ...
Scope:
tmt tests export --how DB
)require
orrecommend
(e.g. for beakerlib libraries)Let's discuss it and polish the scope.