Skip to content

Can the galasa framework bundle the JSONAssert library #2559

@Mark-J-Lawrence

Description

@Mark-J-Lawrence

Background

We want to write particular tests that assert on an actual vs expected JSON structure.

Sometimes we might want to do this strictly (aka keys in a particular order, zero extensibility), but most of the time want to do it non-strictly (any order, ignoring and allowing any additional extensible fields).

You have assertJ, but it doesn't really cut the mustard when asserting on a complex object like JSON. Asserting on JSON is extremely common, so could Galasa bundle a popular JSON library like JSONAssert? It's apache licensed.

Tasks

  • Double check licensing
  • Check for any security vulnerabilities (maven repository website shows nothing but worth double checking)
  • Create dev.galasa wrapper for JSONassert
  • Include in dev.galasa.framework
  • Documentation - include some examples in Managers that could want to assert on JSON (HTTP)
  • Possible rework of unit tests (eg REST API) to assert more strictly on JSON objects

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    📋 5 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions