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:
sslypushenko 2015-01-13 01:24:05 +02:00
parent d67f558a7b
commit 2fd369b367
1 changed files with 6 additions and 8 deletions

View File

@ -36,18 +36,16 @@ str:data - a string input containing json as shown in lower example.
{
'cpid': '2fd4e1c67a2d28fced849ee1bb76e7391b93eb12',
'duration_seconds': 23445234,
'job_id': '3fd4e1c67a2d28fced849ee1bb76e7391b93eb13', /*optional*/
'results': ['fully.qualified.test.path', 'another.test.path'] /* array of passes */
'results': [
{'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
{
'id': '7fd4e1c67a2d28fced849ee1bb76e7391b93eb12',
'cpid': '2fd4e1c67a2d28fced849ee1bb76e7391b93eb12',
'duration_seconds': 23445234,
'job_id': '3fd4e1c67a2d28fced849ee1bb76e7391b93eb13'
/* if posted without job_id this will contain the test id that was created */
'test_run_id': '7fd4e1c67a2d28fced849ee1bb76e7391b93eb12',
}
**failed response:** http:404 - the job_id does not exist
@ -139,4 +137,4 @@ N/A
**References**
N/A
N/A