-
Notifications
You must be signed in to change notification settings - Fork 19
/
test_kafka_consume_json_msg.json
executable file
·44 lines (44 loc) · 1.18 KB
/
test_kafka_consume_json_msg.json
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
{
"scenarioName": "consume a JSON message",
"steps": [
{
"name": "produce_step",
"url": "kafka-topic:demo-json1",
"operation": "produce",
"request": {
"records": [
{
"key": "${RANDOM.NUMBER}",
"value": "{\"name\": \"Nicola\"}"
}
]
},
"assertions": {
"status": "Ok"
}
},
{
"name": "consume_step",
"url": "kafka-topic:demo-json1",
"operation": "consume",
"request": {
"consumerLocalConfigs": {
"recordType": "JSON",
"commitSync": true,
"showRecordsConsumed": true,
"maxNoOfRetryPollsOrTimeouts": 3
}
},
"assertions": {
"size": 1,
"records": [
{
"value": {
"name": "Nicola"
}
}
]
}
}
]
}