Commit 3dd7988b authored by kzangeli's avatar kzangeli
Browse files

fix(028_06): ignore jsonldContext, as the subscription comparison already does

§ 10.5.2.4 MANDATES that jsonldContext be initialized when absent, so a broker
that emits it is the compliant one. AssertionUtils' subscription-specific
comparison has ignored the member since !269 for exactly that reason, but
028_06 reaches the GENERIC comparison, which carries no such ignore - so it
failed against a broker that had just been fixed to comply.

Same ignore, same reasoning, at the call site.
parent 2cad72cc
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -29,7 +29,15 @@ ${subscription_expectation_file_path} subscriptions/expectations/subscript
    ...    id=${subscription_id}
    ...    accept=${CONTENT_TYPE_LD_JSON}
    ...    context=${ngsild_test_suite_context}
    Check Created Resource Set To    ${expected_subscription}    ${response1.json()}
    # Same ignore the subscription-specific comparison in AssertionUtils already
    # applies, and for the same reason: TS 104-175 § 10.5.2.4 MANDATES that
    # `jsonldContext` be initialized when absent, so a broker that emits it is
    # the compliant one - but implementations have not converged, so the suite
    # cannot demand a particular value here. This test reaches the generic
    # comparison, which carries no such ignore, and so failed against a broker
    # that had just been fixed to comply.
    ${ignored_keys}=    Create List    jsonldContext
    Check Created Resource Set To    ${expected_subscription}    ${response1.json()}    ${ignored_keys}


*** Keywords ***