mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
add http test yamls
This commit is contained in:
parent
9aaf29915e
commit
7461f0e8b8
@ -0,0 +1 @@
|
|||||||
|
statement: http://google.com/
|
@ -0,0 +1,4 @@
|
|||||||
|
# A list of statements
|
||||||
|
statements:
|
||||||
|
- http://google.com/
|
||||||
|
- http://amazon.com/
|
@ -0,0 +1,8 @@
|
|||||||
|
# A list of named statements with variable fields and specific ratios:
|
||||||
|
statements:
|
||||||
|
- s1: http://google.com/search?query={query}
|
||||||
|
ratio: 3
|
||||||
|
- s2: https://www.amazon.com/s?k={query}
|
||||||
|
ratio: 2
|
||||||
|
bindings:
|
||||||
|
query: WeightedStrings('function generator;backup generator;static generator');
|
@ -0,0 +1,8 @@
|
|||||||
|
# Require that the result be status code 200-299 match regex "OK, account id is .*" in the body
|
||||||
|
statements:
|
||||||
|
- method: GET
|
||||||
|
uri: https://google.com/
|
||||||
|
version: HTTP/1.1
|
||||||
|
"Content-Type": "application/json"
|
||||||
|
ok-status: 2[0-9][0-9]
|
||||||
|
ok-body: ^(OK, account id is .*)$
|
@ -0,0 +1,7 @@
|
|||||||
|
statements:
|
||||||
|
- s1: |
|
||||||
|
GET https://google.com/ HTTP/1.1
|
||||||
|
Content-Type: application/json
|
||||||
|
ok-status: 2[0-9][0-9]
|
||||||
|
ok-body: ^(OK, account id is.*)$
|
||||||
|
|
@ -0,0 +1,7 @@
|
|||||||
|
statements:
|
||||||
|
- s1: |
|
||||||
|
{method} {scheme}://{host}:{port}/{path}?{query} {version}
|
||||||
|
Content-Type: {content_type}
|
||||||
|
Token: {mybearertoken}
|
||||||
|
|
||||||
|
{body}
|
@ -0,0 +1,7 @@
|
|||||||
|
statements:
|
||||||
|
- method: {method}
|
||||||
|
uri: {scheme}://{host}:{port}/{path}?{query}
|
||||||
|
version: {version}
|
||||||
|
"Content-Type": {content_type}
|
||||||
|
"Token": {mybearertoken}
|
||||||
|
body: {body}
|
Loading…
Reference in New Issue
Block a user