Add test uids into REST API spec
If test has a uid we should add a possibility to transmit them to Refstack from refstack-client. Change-Id: I6fc70dd7ffda13c51bcbb99a78cd096a48dc5cf5
This commit is contained in:
parent
d67f558a7b
commit
2fd369b367
|
@ -36,18 +36,16 @@ str:data - a string input containing json as shown in lower example.
|
||||||
{
|
{
|
||||||
'cpid': '2fd4e1c67a2d28fced849ee1bb76e7391b93eb12',
|
'cpid': '2fd4e1c67a2d28fced849ee1bb76e7391b93eb12',
|
||||||
'duration_seconds': 23445234,
|
'duration_seconds': 23445234,
|
||||||
'job_id': '3fd4e1c67a2d28fced849ee1bb76e7391b93eb13', /*optional*/
|
'results': [
|
||||||
'results': ['fully.qualified.test.path', 'another.test.path'] /* array of passes */
|
{'name':'fully.qualified.test.path',
|
||||||
|
'uid':'test uuid'}, /* if test has uid. uid has a priority */
|
||||||
|
{'name: 'another.test.path.without.uid'}] /* only passed tests */
|
||||||
}
|
}
|
||||||
|
|
||||||
**normal response:** http:201 - the status has been saved
|
**normal response:** http:201 - the status has been saved
|
||||||
|
|
||||||
{
|
{
|
||||||
'id': '7fd4e1c67a2d28fced849ee1bb76e7391b93eb12',
|
'test_run_id': '7fd4e1c67a2d28fced849ee1bb76e7391b93eb12',
|
||||||
'cpid': '2fd4e1c67a2d28fced849ee1bb76e7391b93eb12',
|
|
||||||
'duration_seconds': 23445234,
|
|
||||||
'job_id': '3fd4e1c67a2d28fced849ee1bb76e7391b93eb13'
|
|
||||||
/* if posted without job_id this will contain the test id that was created */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
**failed response:** http:404 - the job_id does not exist
|
**failed response:** http:404 - the job_id does not exist
|
||||||
|
@ -139,4 +137,4 @@ N/A
|
||||||
|
|
||||||
**References**
|
**References**
|
||||||
|
|
||||||
N/A
|
N/A
|
||||||
|
|
Loading…
Reference in New Issue