Skip to content

Commit 783770e

Browse files
committed
fix: timeouts tests
1 parent a1fa5cf commit 783770e

File tree

3 files changed

+76
-38
lines changed

3 files changed

+76
-38
lines changed

tests/CTS/client/common/commonApi.json

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -30,43 +30,5 @@
3030
}
3131
}
3232
]
33-
},
34-
{
35-
"testName": "calls api with default read timeouts",
36-
"steps": [
37-
{
38-
"type": "method",
39-
"method": "customGet",
40-
"parameters": {
41-
"path": "1/test"
42-
},
43-
"expected": {
44-
"type": "timeouts",
45-
"match": {
46-
"connectTimeout": 2000,
47-
"responseTimeout": 5000
48-
}
49-
}
50-
}
51-
]
52-
},
53-
{
54-
"testName": "calls api with default write timeouts",
55-
"steps": [
56-
{
57-
"type": "method",
58-
"method": "customPost",
59-
"parameters": {
60-
"path": "1/test"
61-
},
62-
"expected": {
63-
"type": "timeouts",
64-
"match": {
65-
"connectTimeout": 2000,
66-
"responseTimeout": 30000
67-
}
68-
}
69-
}
70-
]
7133
}
7234
]

tests/CTS/client/ingestion/api.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,43 @@
3838
}
3939
}
4040
]
41+
},
42+
{
43+
"testName": "calls api with default read timeouts",
44+
"steps": [
45+
{
46+
"type": "method",
47+
"method": "customGet",
48+
"parameters": {
49+
"path": "1/test"
50+
},
51+
"expected": {
52+
"type": "timeouts",
53+
"match": {
54+
"connectTimeout": 25000,
55+
"responseTimeout": 25000
56+
}
57+
}
58+
}
59+
]
60+
},
61+
{
62+
"testName": "calls api with default write timeouts",
63+
"steps": [
64+
{
65+
"type": "method",
66+
"method": "customPost",
67+
"parameters": {
68+
"path": "1/test"
69+
},
70+
"expected": {
71+
"type": "timeouts",
72+
"match": {
73+
"connectTimeout": 25000,
74+
"responseTimeout": 25000
75+
}
76+
}
77+
}
78+
]
4179
}
4280
]

tests/CTS/client/search/api.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,43 @@
186186
}
187187
}
188188
]
189+
},
190+
{
191+
"testName": "calls api with default read timeouts",
192+
"steps": [
193+
{
194+
"type": "method",
195+
"method": "customGet",
196+
"parameters": {
197+
"path": "1/test"
198+
},
199+
"expected": {
200+
"type": "timeouts",
201+
"match": {
202+
"connectTimeout": 2000,
203+
"responseTimeout": 5000
204+
}
205+
}
206+
}
207+
]
208+
},
209+
{
210+
"testName": "calls api with default write timeouts",
211+
"steps": [
212+
{
213+
"type": "method",
214+
"method": "customPost",
215+
"parameters": {
216+
"path": "1/test"
217+
},
218+
"expected": {
219+
"type": "timeouts",
220+
"match": {
221+
"connectTimeout": 2000,
222+
"responseTimeout": 30000
223+
}
224+
}
225+
}
226+
]
189227
}
190228
]

0 commit comments

Comments
 (0)