A list of invocations of the application and their associated responses
- type:
list<invocation>
Represents a single invocation of the application.
- type:
http-invocation
(TODO: in the future this will be extended with| redis-invocation
and others)
An invocation of a Spin application running an http based trigger
- type:
object
- fields:
- request:
http-request
- response
http-response
- the response required for the test to pass
- request:
- type:
object
- fields:
- method:
http-method
- path:
string
(optional - default:"/"
) - the path and query for the request - headers:
list<http-header>
(optional - default[]
) - body:
option<http-body>
(optional - defaultnull
)
- method:
- type:
object
- fields:
- status:
number
(optional - default200
) - headers:
list<http-header>
(optional - default[]
) - body:
option<http-body>
(optional - defaultnull
)
- status:
- type:
object
- fields:
- name:
string
- value:
string
(optional - if not present only presence of header is checked) - optional:
bool
(optional - if true the header is allowed to be either present or not)
- name:
- type:
list<u8>
|list<list<u8>>
- type:
"get"
|"post"
(TODO: add more)