RestFixtureTests.IssueFixes.Issue118

Included page: .RestFixtureTests.SetUp (edit)

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

Issue #118 Unable to set header using let variable containing text with curly braces


Table: Rest Fixture http://localhost:9876
GET
200
Set-Cookie : JID="ABC.${a.y}";
Content-Type : application/json;charset=ISO-8859-1
Content-Length : 77
Server : Jetty(6.0.2)
{ "resource" : { "name" : "a funky name", "data" : "an important message" } }
let loginSessionId header
Set-Cookie:(.+)
JID="ABC.${a.y}";
comment
use below hack to work around isse 118 for Rest Fixture 4.0 or below
let loginSessionId2 js
""+symbols.get('loginSessionId').replace('{', '\\{')
JID="ABC.$\{a.y}";
setHeader
Set-Cookie:JID="ABC.$\{a.y}";
comment
issue 118 fixed
setHeader
Set-Cookie:JID="ABC.${a.y}";
GET
200
Set-Cookie : JID="ABC.${a.y}";
Content-Type : application/json;charset=ISO-8859-1
Content-Length : 77
Server : Jetty(6.0.2)
{ "resource" : { "name" : "a funky name", "data" : "an important message" } }