Commit bdc618f6 authored by kzangeli's avatar kzangeli
Browse files

fix(D009_01_red,D013_01_red,D013_02_red): second CSR posted with the first CSR's id

The setups generate ${registration_id2} for the second (broker2) redirect
registration but then pass ${registration_id} - the FIRST registration's
id - to Prepare Context Source Registration From File. The second POST
/csourceRegistrations therefore reuses an existing registration id and any
spec-conformant broker answers 409 AlreadyExists ("registration '...'
already exists"), failing the suite setup and cascading the test.

Pass ${registration_id2}, as D006_01_red (the sibling that gets it right)
already does. Note the teardowns already delete BOTH ids, confirming the
two-registrations intent.

With the setup fixed the three tests proceed to their actual bodies (which
currently fail on separate, separately-documented issues: name-wrapped
attribute fragments, stub query-back, Get Request Url Params in stub mode).
parent 59eca008
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ Setup Entity Id And Registration And Start Context Source Mock Server
    ${registration_id2}=    Generate Random CSR Id
    Set Suite Variable    ${registration_id2}
    ${registration_payload}=    Prepare Context Source Registration From File
    ...    ${registration_id}
    ...    ${registration_id2}
    ...    ${registration_payload_file_path}
    ...    entity_id_pattern=${entity_pattern}
    ...    mode=redirect
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ Setup Entity Id And Registration And Start Context Source Mock Server
    ${registration_id2}=    Generate Random CSR Id
    Set Suite Variable    ${registration_id2}
    ${registration_payload}=    Prepare Context Source Registration From File
    ...    ${registration_id}
    ...    ${registration_id2}
    ...    ${registration_payload_file_path}
    ...    entity_pattern=${entity_pattern}
    ...    mode=redirect
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ Setup Registration And Start Context Source Mock Server
    ${registration_id2}=    Generate Random CSR Id
    Set Suite Variable    ${registration_id2}
    ${registration_payload2}=    Prepare Context Source Registration From File
    ...    ${registration_id}
    ...    ${registration_id2}
    ...    ${registration_payload_file_path}
    ...    entity_id=${entity_id}
    ...    mode=redirect