aboutsummaryrefslogtreecommitdiffstats
path: root/functest/api/swagger/testcase_run.yaml
blob: 7b254c86b38572850577256999baab44afe472e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
Run a test case

This api offers the interface to run a test case
---
tags:
    - Testcases
parameters:
    - in: body
      name: body
      description: this is the input json dict
      schema:
          required:
              - action
              - args
          properties:
              action:
                  type: string
                  description: this is action for creds
                  default: run_test_case
              args:
                  schema:
                      required:
                          - testcase
                      properties:
                          testcase:
                              type: string
                              description: this is the test case name
                              default:
                                  vping_ssh
definitions:
    Testcases:
        type: object
        properties:
            creds_name:
                $ref: '#/definitions/Tests'
    Tests:
        type: dict
responses:
    200:
        description: Run a test case
        schema:
            $ref: '#/definitions/Testcases'
        examples:
            'task_id': '94c8ec94-d873-466f-a205-bf592f31ff5b'
            'testcase': 'vping_ssh'