Merge "Switch from BashFeature to Feature of bgpvpn testcase"
[functest.git] / functest / api / swagger / testcase_run.yaml
1 Run a test case
2
3 This api offers the interface to run a test case
4
5 action: run_test_case
6 ---
7 tags:
8   - Testcases
9 parameters:
10   - in: body
11     name: body
12     description: this is the input json dict
13     schema:
14       required:
15         - action
16         - args
17       properties:
18         action:
19           type: string
20           description: this is action for creds
21           default: run_test_case
22         args:
23           schema:
24             required:
25               - testcase
26             properties:
27               testcase:
28                 type: string
29                 description: this is the test case name
30                 default:
31                   vping_ssh
32 definitions:
33   Testcases:
34     type: object
35     properties:
36       creds_name:
37           $ref: '#/definitions/Tests'
38   Tests:
39     type: dict
40 responses:
41   200:
42     description: Run a test case
43     schema:
44       $ref: '#/definitions/Testcases'
45     examples:
46       'task_id': '94c8ec94-d873-466f-a205-bf592f31ff5b'
47       'testcase': 'vping_ssh'