Closed
Description
Given the following .hurl
file:
POST http://localhost:8080/
[BasicAuth]
user1@email.com: password1
Running this produces the following error:
$ hurl --test tests/integration/auth.hurl
expr=tests/integration/auth.hurl
tests/integration/post-fragments.hurl: RUNNING [1/1]
error: Parsing json
--> tests/integration/auth.hurl:7:2
|
7 | [BasicAuth]
| ^ json error
|
Removing the @
works. This is surprising (to me). Is there someway to handle this case without having to produce the Authorization
header manually? I really like the expressiveness of having the username/password in the test case, since it's part of the test.