Skip to content

Xendit #0009 - Load Testing #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions load-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
config:
target: http://localhost:8010
phases:
- duration: 30
arrivalRate: 100
ensure:
p99: 50

scenarios:
- name: "Load test POST rides"
flow:
- post:
url: "/rides"
json:
"start_lat": 12
"start_long": 14
"end_lat": 19
"end_long": 19
"rider_name": "JoSDSDS"
"driver_name": "John"
"driver_vehicle": "Truck"
expect:
- statusCode: 200
- name: "Load test GET rides"
flow:
- get:
url: "/rides"
expect:
- statusCode: 200
- name: "Load test GET rides/1"
flow:
- get:
url: "/rides/1"
expect:
- statusCode: 200
Loading