FitNesseRoot.RestFixtureTests.IssueFixes.Issue118.content.txt Maven / Gradle / Ivy
!3 [[Issue #118][https://github.com/smartrics/RestFixture/issues/118]] Unable to set header using let variable containing text with curly braces
| Table: Rest Fixture |http://${jettyHost}:${jettyPort}|
|GET | /resources/1.json | 200 | | |
|let | loginSessionId | header |Set-Cookie:(.+) | |
|comment | use below hack to work around isse 118 for Rest Fixture 4.0 or below |
|let | loginSessionId2 | js | ""+symbols.get('loginSessionId').replace('{', '\\{') | |
|setHeader| Set-Cookie:%loginSessionId2% | |
|comment | issue 118 fixed |
|setHeader| Set-Cookie:%loginSessionId% | |
|GET | /resources/1.json | 200 | | |