Skip to content

Hurl tests: add JSON variants of the end-to-end tests #290

Description

@Fishbowler

The Hurl end-to-end tests only send and check XML, while every endpoint also accepts and produces JSON. The JSON format isn't a direct translation of the XML: the system property listing, for example, is {"property": [...]} where the XML is <properties>. Only a few services pin their JSON output, in the *BackwardCompatibilityTest unit tests, and JSON-specific problems have been reported before (#20, #163).

The Hurl 8 support added in #289 brings RFC 9535 JSONPath, whose filter expressions allow JSON assertions equivalent to the existing XPath ones.

Add JSON variants of the key tests, covering both JSON request bodies and JSON responses, starting with the endpoints that have no JSON coverage in the unit tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions