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

Refactor Json content checks one more time + DT-780: Provide UN location code checks for TD #39

Merged
merged 2 commits into from
Dec 18, 2023

Conversation

nt-gt
Copy link
Collaborator

@nt-gt nt-gt commented Dec 15, 2023

Commit 1: Refactor Json content checks one more time

Provide a Json content check "container" ConformanceAction, which can process multiple Json content checks. This provides the following advantages:

  1. The Json content checks can now be simplier
    (attribute X matches Y rather than (attribute X in the response matches Y and this check is only relevant to the carrier).

  2. The "container" ConformanceAction provides a natural grouping for
    all the checks in the conformance report by doing them as subchecks.

In this refactoring all the eBL checks have been streamlined to support this new setup. Lots of duplicated checks have been removed and some checks have been done a bit more strict (such as the attribute X must match X attribute from the DSP, where we now verify that the DSP has a valid value before comparing it against the JSON).

Commit 2: DT-780: Add complex validations of UNLocationCodes in TD

Provide a Json content check "container" ConformanceAction, which can
process multiple Json content checks. This provides the following
advantages:

 1) The Json content checks can now be simplier
    (`attribute X matches Y` rather than (`attribute X in the response
      matches Y and this check is only relevant to the carrier`).

 2) The "container" ConformanceAction provides a natural grouping for
    all the checks in the conformance report by doing them as subchecks.

In this refactoring all the eBL checks have been streamlined to
support this new setup. Lots of duplicated checks have been removed
and some checks have been done a bit more strict (such as the
`attribute X must match X attribute from the DSP`, where we now verify
that the `DSP` has a valid value before comparing it against the
JSON).

Signed-off-by: Niels Thykier <[email protected]>
@nt-gt nt-gt marked this pull request as ready for review December 15, 2023 11:59
@nt-gt nt-gt requested a review from gj0dcsa December 15, 2023 11:59
@nt-gt nt-gt merged commit 049e550 into dev Dec 18, 2023
1 check passed
@nt-gt nt-gt deleted the DT-780 branch December 18, 2023 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants