scripts to run benchmarks
This commit is contained in:
3380
benchmarks/e2e/testdata/beckn.yaml
vendored
Normal file
3380
benchmarks/e2e/testdata/beckn.yaml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
84
benchmarks/e2e/testdata/confirm_request.json
vendored
Normal file
84
benchmarks/e2e/testdata/confirm_request.json
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"context": {
|
||||
"action": "confirm",
|
||||
"bapId": "sandbox.food-finder.com",
|
||||
"bapUri": "http://bench-bap.example.com",
|
||||
"bppId": "bench-bpp.example.com",
|
||||
"bppUri": "BENCH_BPP_URL",
|
||||
"messageId": "BENCH_MESSAGE_ID",
|
||||
"transactionId": "BENCH_TRANSACTION_ID",
|
||||
"timestamp": "BENCH_TIMESTAMP",
|
||||
"ttl": "PT30S",
|
||||
"version": "2.0.0"
|
||||
},
|
||||
"message": {
|
||||
"order": {
|
||||
"provider": {
|
||||
"id": "bench-provider-001"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"id": "bench-item-001",
|
||||
"quantity": {
|
||||
"selected": {
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"billing": {
|
||||
"name": "Bench User",
|
||||
"address": "123 Bench Street, Bangalore, 560001",
|
||||
"city": {
|
||||
"name": "Bangalore"
|
||||
},
|
||||
"state": {
|
||||
"name": "Karnataka"
|
||||
},
|
||||
"country": {
|
||||
"code": "IND"
|
||||
},
|
||||
"area_code": "560001",
|
||||
"email": "bench@example.com",
|
||||
"phone": "9999999999"
|
||||
},
|
||||
"fulfillments": [
|
||||
{
|
||||
"id": "f1",
|
||||
"type": "Delivery",
|
||||
"stops": [
|
||||
{
|
||||
"type": "end",
|
||||
"location": {
|
||||
"gps": "12.9716,77.5946",
|
||||
"area_code": "560001"
|
||||
},
|
||||
"contact": {
|
||||
"phone": "9999999999",
|
||||
"email": "bench@example.com"
|
||||
}
|
||||
}
|
||||
],
|
||||
"customer": {
|
||||
"person": {
|
||||
"name": "Bench User"
|
||||
},
|
||||
"contact": {
|
||||
"phone": "9999999999",
|
||||
"email": "bench@example.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"payments": [
|
||||
{
|
||||
"type": "ON-FULFILLMENT",
|
||||
"params": {
|
||||
"amount": "150.00",
|
||||
"currency": "INR"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
17
benchmarks/e2e/testdata/discover_request.json
vendored
Normal file
17
benchmarks/e2e/testdata/discover_request.json
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"context": {
|
||||
"action": "discover",
|
||||
"bapId": "sandbox.food-finder.com",
|
||||
"bapUri": "http://bench-bap.example.com",
|
||||
"messageId": "BENCH_MESSAGE_ID",
|
||||
"transactionId": "BENCH_TRANSACTION_ID",
|
||||
"timestamp": "BENCH_TIMESTAMP",
|
||||
"ttl": "PT30S",
|
||||
"version": "2.0.0"
|
||||
},
|
||||
"message": {
|
||||
"intent": {
|
||||
"textSearch": "pizza"
|
||||
}
|
||||
}
|
||||
}
|
||||
80
benchmarks/e2e/testdata/init_request.json
vendored
Normal file
80
benchmarks/e2e/testdata/init_request.json
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"context": {
|
||||
"action": "init",
|
||||
"bapId": "sandbox.food-finder.com",
|
||||
"bapUri": "http://bench-bap.example.com",
|
||||
"bppId": "bench-bpp.example.com",
|
||||
"bppUri": "BENCH_BPP_URL",
|
||||
"messageId": "BENCH_MESSAGE_ID",
|
||||
"transactionId": "BENCH_TRANSACTION_ID",
|
||||
"timestamp": "BENCH_TIMESTAMP",
|
||||
"ttl": "PT30S",
|
||||
"version": "2.0.0"
|
||||
},
|
||||
"message": {
|
||||
"order": {
|
||||
"provider": {
|
||||
"id": "bench-provider-001"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"id": "bench-item-001",
|
||||
"quantity": {
|
||||
"selected": {
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"billing": {
|
||||
"name": "Bench User",
|
||||
"address": "123 Bench Street, Bangalore, 560001",
|
||||
"city": {
|
||||
"name": "Bangalore"
|
||||
},
|
||||
"state": {
|
||||
"name": "Karnataka"
|
||||
},
|
||||
"country": {
|
||||
"code": "IND"
|
||||
},
|
||||
"area_code": "560001",
|
||||
"email": "bench@example.com",
|
||||
"phone": "9999999999"
|
||||
},
|
||||
"fulfillments": [
|
||||
{
|
||||
"id": "f1",
|
||||
"type": "Delivery",
|
||||
"stops": [
|
||||
{
|
||||
"type": "end",
|
||||
"location": {
|
||||
"gps": "12.9716,77.5946",
|
||||
"area_code": "560001"
|
||||
},
|
||||
"contact": {
|
||||
"phone": "9999999999",
|
||||
"email": "bench@example.com"
|
||||
}
|
||||
}
|
||||
],
|
||||
"customer": {
|
||||
"person": {
|
||||
"name": "Bench User"
|
||||
},
|
||||
"contact": {
|
||||
"phone": "9999999999",
|
||||
"email": "bench@example.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"payments": [
|
||||
{
|
||||
"type": "ON-FULFILLMENT"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
13
benchmarks/e2e/testdata/routing-BAPCaller.yaml
vendored
Normal file
13
benchmarks/e2e/testdata/routing-BAPCaller.yaml
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# Routing config for v2.0.0 benchmark. Domain is not required for v2.x.x — the
|
||||
# router ignores it and routes purely by version + endpoint.
|
||||
# BENCH_BPP_URL is substituted at runtime with the mock BPP server URL.
|
||||
routingRules:
|
||||
- version: "2.0.0"
|
||||
targetType: "url"
|
||||
target:
|
||||
url: "BENCH_BPP_URL"
|
||||
endpoints:
|
||||
- discover
|
||||
- select
|
||||
- init
|
||||
- confirm
|
||||
55
benchmarks/e2e/testdata/select_request.json
vendored
Normal file
55
benchmarks/e2e/testdata/select_request.json
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"context": {
|
||||
"action": "select",
|
||||
"bapId": "sandbox.food-finder.com",
|
||||
"bapUri": "http://bench-bap.example.com",
|
||||
"bppId": "bench-bpp.example.com",
|
||||
"bppUri": "BENCH_BPP_URL",
|
||||
"messageId": "BENCH_MESSAGE_ID",
|
||||
"transactionId": "BENCH_TRANSACTION_ID",
|
||||
"timestamp": "BENCH_TIMESTAMP",
|
||||
"ttl": "PT30S",
|
||||
"version": "2.0.0"
|
||||
},
|
||||
"message": {
|
||||
"order": {
|
||||
"provider": {
|
||||
"id": "bench-provider-001"
|
||||
},
|
||||
"items": [
|
||||
{
|
||||
"id": "bench-item-001",
|
||||
"quantity": {
|
||||
"selected": {
|
||||
"count": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"fulfillments": [
|
||||
{
|
||||
"id": "f1",
|
||||
"type": "Delivery",
|
||||
"stops": [
|
||||
{
|
||||
"type": "end",
|
||||
"location": {
|
||||
"gps": "12.9716,77.5946",
|
||||
"area_code": "560001"
|
||||
},
|
||||
"contact": {
|
||||
"phone": "9999999999",
|
||||
"email": "bench@example.com"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"payments": [
|
||||
{
|
||||
"type": "ON-FULFILLMENT"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user