add http test yamls

This commit is contained in:
Jonathan Shook 2020-07-07 10:48:16 -05:00
parent 9aaf29915e
commit 7461f0e8b8
7 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1 @@
statement: http://google.com/

View File

@ -0,0 +1,4 @@
# A list of statements
statements:
- http://google.com/
- http://amazon.com/

View File

@ -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');

View File

@ -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 .*)$

View File

@ -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.*)$

View File

@ -0,0 +1,7 @@
statements:
- s1: |
{method} {scheme}://{host}:{port}/{path}?{query} {version}
Content-Type: {content_type}
Token: {mybearertoken}
{body}

View File

@ -0,0 +1,7 @@
statements:
- method: {method}
uri: {scheme}://{host}:{port}/{path}?{query}
version: {version}
"Content-Type": {content_type}
"Token": {mybearertoken}
body: {body}