-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Acceptance criteria:
background:
given that the stubserver is started
and there is a file stubdata.csv on the classpath containing: """
key;statuscode;latency;value1;value2
1;200;10;waarde1;een
3;503;200;;
;404;100;;
"""
given that I configured a stub to use as behavior source SimpleExcelStub (with additional configuration as specified below)
when I do a HTTP GET to .../castalia/stubs/simpleexcelstub/1
then I should get a HTTP 200 response containing the following data:
{
"asdasd": "waarde1",
"content": {
"saddasdasdas": "een"
}
}
given that I configured a stub to use as behavior source SimpleExcelStub (with additional configuration as specified below)
when I do a HTTP GET to .../castalia/stubs/simpleexcelstub/2
then after roughly 200 ms I should get a HTTP 503 response
given that I configured a stub to use as behavior source SimpleExcelStub (with additional configuration as specified below)
when I do a HTTP GET to .../castalia/stubs/simpleexcelstub/3
then after roughly 100 ms I should get a HTTP 404 response