-
Notifications
You must be signed in to change notification settings - Fork 0
/
overload-foodservice-profile.yaml
52 lines (51 loc) · 1.22 KB
/
overload-foodservice-profile.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
services:
- service_name: train-ticket
protocol: http
response_content_type: json
hosts:
- 192.168.1.120:18856/api/v1
common_headers:
Content-Type: application/json
# Scenario 1: Overload Database
user_requests:
# Get list of food orders
- service_name: train-ticket
method: GET
uri:
type: COMPOSITE
children:
- text: '/foodservice/orders'
expected_response_codes:
- 200
# Add food order
- service_name: train-ticket
method: POST
uri:
type: COMPOSITE
children:
- text: '/foodservice/orders'
body:
type: COMPOSITE
children:
- text: '{"id": "","orderId": "'
- type: RANDOMUUID
store_as: orderid
- text: '", "foodType": 1, "stationName": null, "storeName": null, "foodName": "'
- type: RANDOMUUID
- text: '", "price":'
- type: RANDOMINT
text: 0,100
- text: '}'
expected_response_codes:
- 200
# Delete added food order
- service_name: train-ticket
method: DELETE
uri:
type: COMPOSITE
children:
- text: '/foodservice/orders/'
- type: VARIABLE
text: orderid
expected_response_codes:
- 200