-
Notifications
You must be signed in to change notification settings - Fork 9
/
tests.yaml
156 lines (156 loc) · 4.87 KB
/
tests.yaml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
openapi: 3.0.0
info:
title: Tests
version: '1'
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: https://{hostname}/sla-api/v1
x-akamai:
auth-type: EDGE_GRID
file-path: tests.yaml
paths:
/tests:
post:
operationId: post-test-config
summary: Create a new test configuration
tags:
- Create Test
description: |
Create either a new availability test configuration or a new performance test configuration, if there is an available corresponding slot in the contract's quotas.
requestBody:
required: true
content:
application/json:
example:
$ref: examples/post-test-config.json
schema:
$ref: schemas/schema-post-test-config.yaml
responses:
201:
description: |
Successfully created.
content:
application/json:
example:
$ref: examples/post-test-config-201.json
schema:
$ref: schemas/schema-post-test-config-201.yaml
get:
operationId: get-test-configs
summary: List test configurations
tags:
- Tests
description: |
Returns all test configurations, or a filtered set you use the `slaTestIds` parameter to control.
parameters:
- $ref: parameters/slaTestIds-query.yaml
responses:
200:
description: |
OK.
content:
application/json:
example:
$ref: examples/get-test-configs-200.json
schema:
$ref: schemas/schema-get-test-configs-200.yaml
/tests/{slaTestId}:
get:
operationId: get-test-config
summary: Get a test configuration
tags:
- Tests
description: |
Return the contents of one test configuration. Set the `slaTestId` parameter to indicate which test configuration to retrieve.
parameters:
- $ref: parameters/slaTestId-path.yaml
responses:
200:
description: |
OK.
content:
application/json:
example:
$ref: examples/get-test-config-200.json
schema:
$ref: schemas/schema-get-test-config-200.yaml
put:
operationId: put-test-config
summary: Update a test configuration
tags:
- Tests
description: |
Use this operation change an existing test configuration, such as changing the agent group or adding a performance target. Set the `slaTestId` parameter to indicate which test configuration to update.
parameters:
- $ref: parameters/slaTestId-path.yaml
requestBody:
required: true
content:
application/json:
example:
$ref: examples/put-test-config.json
schema:
$ref: schemas/schema-put-test-config.yaml
responses:
200:
description: |
OK.
delete:
operationId: delete-test-config
summary: Delete a test configuration
tags:
- Tests
description: |
Deletion cannot be undone. Once you delete a test configuration, you can't retrieve it or any data that it has collected. Set the `slaTestId` parameter to indicate which test configuration to delete.
parameters:
- $ref: parameters/slaTestId-path.yaml
responses:
200:
description: |
OK.
/tests/{slaTestId}/reports/availability:
get:
operationId: get-availability-reports
summary: List availability reports
tags:
- Reports
description: |
Returns an array of the results of availability tests run in the specified time period.
parameters:
- $ref: parameters/slaTestId-path.yaml
- $ref: parameters/start-query.yaml
- $ref: parameters/end-query.yaml
responses:
200:
description: |
OK.
content:
application/json:
example:
$ref: examples/get-availability-reports-200.json
schema:
$ref: schemas/schema-get-availability-reports-200.yaml
/tests/{slaTestId}/reports/performance:
get:
operationId: get-performance-reports
summary: List performance reports
tags:
- Reports
description: |
Returns an array of the results of performance tests run in the specified time period.
parameters:
- $ref: parameters/slaTestId-path.yaml
- $ref: parameters/start-query.yaml
- $ref: parameters/end-query.yaml
responses:
200:
description: |
OK.
content:
application/json:
example:
$ref: examples/get-performance-reports-200.json
schema:
$ref: schemas/schema-get-performance-reports-200.yaml