socat TCP-LISTEN:8080,fork,reuseaddr SYSTEM:'./server.sh'
runn run test.runn.yaml
runn run test.runn.yaml
F
1) test.runn.yaml eb638128977bdd2a7e2d70cd731f2334777cf916
Failure/Error: test failed on "test runn".steps[1]: condition is not true
Condition:
current.res.status == 200
&& current.res.rawBody matches "Cookie: foo=xxx"
│
├── current.res.status == 200 => true
│ ├── current.res.status => 200
│ └── 200
└── current.res.rawBody matches "Cookie: foo=xxx" => false
├── current.res.rawBody => "You sent:
│ GET /hello HTTP/1.1
│ Host: localhost:8080
│ User-Agent: Go-http-client/1.1
│ Cookie: bar=yyy; foo=xxx
" │ Accept-Encoding: gzip
└── "Cookie: foo=xxx"
Failure step (test.runn.yaml):
17 - req:
18 /hello:
19 get:
20 body: null
21 test: |
22 current.res.status == 200
23 && current.res.rawBody matches "Cookie: foo=xxx"
1 scenario, 0 skipped, 1 failure