RestFixtureTests.IssueFixes.Issue169

Included page: .RestFixtureTests.SetUp (edit)

script smartrics.rest.test.fitnesse.fixture.HttpServerFixture
check is started true
reset resources database

Issue #169 Posting binary data


Table: Rest Fixture http://localhost:9876
let MD const
3000900053976733
3000900053976733
let Pareq const
something_with_
carriage_return_and
ending_with_equals_%3D
something_with_
carriage_return_and
ending_with_equals_%3D
setHeader
Content-Type : application/x-www-form-urlencoded
setBody
MD=3000900053976733&PaReq=something_with_
carriage_return_and
ending_with_equals_%3D&TermUrl=https%3A%2F%2Fdev01-realm1-mothercare.demandware.net%2Fon%2Fdemandware.store%2FSites-MCENGB-Site%2Fdefault%2FHello-Start&submit=submit
POST
201
Location : /resources/2
Content-Length : 0
Server : Jetty(6.0.2)
no-body
let ID header
Location:/resources/(\d)
2
GET
200
Set-Cookie : JID="ABC.${a.y}";
Content-Type : application/xml;charset=ISO-8859-1
Content-Length : 268
Server : Jetty(6.0.2)
 /resource/MD[text()='3000900053976733'] <br/>
 /resource/TermUrl[text()='https://dev01-realm1-mothercare.demandware.net/on/demandware.store/Sites-MCENGB-Site/default/Hello-Start']<br/>
 /resource/PaReq[contains(text(),'ending_with_equals_=')]

expected

toggle actual

<resource>
<MD>3000900053976733</MD>
<PaReq>something_with_
carriage_return_and
ending_with_equals_=</PaReq>
<TermUrl>https://dev01-realm1-mothercare.demandware.net/on/demandware.store/Sites-MCENGB-Site/default/Hello-Start</TermUrl>
<submit>submit</submit>
</resource>

actual