Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialization of cookie query for Expires attributes with hurlfmt #100

Closed
jcamiel opened this issue Nov 30, 2020 · 1 comment
Closed

Serialization of cookie query for Expires attributes with hurlfmt #100

jcamiel opened this issue Nov 30, 2020 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@jcamiel
Copy link
Collaborator

jcamiel commented Nov 30, 2020

When exporting an Hurl file containing a cookie query with Expires attributes, the serialized attribute is Expire:

GET http://localhost

HTTP/1.1 200
[Asserts]
cookie "Session[Expires]" exists
$ hurlfmt --format json /tmp/test.hurl
{
  "entries": [
    {
      "request": {
        "method": "GET",
        "url": "http://localhost"
      },
      "response": {
        "version": "HTTP/1.1",
        "status": 200,
        "asserts": [
          {
            "query": {
              "type": "cookie",
              "expr": "Session[Expire]"
            },
            "predicate": {
              "type": "exist"
            }
          }
        ]
      }
    }
  ]
}
@jcamiel jcamiel added the bug Something isn't working label Nov 30, 2020
@fabricereix
Copy link
Collaborator

fix in #101

@lepapareil lepapareil added this to the 1.0.0 milestone Jun 11, 2021
@lepapareil lepapareil removed the 1.0.0 label Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants