Commit b49f2aef authored by Benoit Orihuela's avatar Benoit Orihuela
Browse files

fix: doc generation failing on some Batch operations

parent be1cd5e4
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -22,13 +22,14 @@ Batch Merge Entity With Invalid Request Scenarios
    Check Response Status Code    ${expected_status_code}    ${response.status_code}
    IF    '${expected_status_code}'=='400'
        Check Response Body Containing ProblemDetails Element Containing Type Element set to
        ...    ${response.json()}
        ...    ${problem_type}
        Check Response Body Containing ProblemDetails Element Containing Title Element    ${response.json()}
        ...    response_body=${response.json()}
        ...    type=${problem_type}
        Check Response Body Containing ProblemDetails Element Containing Title Element
        ...    response_body=${response.json()}
    ELSE
        Check Response Body Containing ProblemDetails Element Containing Type Element set to
        ...    ${response.json()['errors'][0]['error']}
        ...    ${problem_type}
        ...    response_body=${response.json()['errors'][0]['error']}
        ...    type=${problem_type}
        Check Response Body Containing ProblemDetails Element Containing Title Element
        ...    ${response.json()['errors'][0]['error']}
        ...    response_body=${response.json()['errors'][0]['error']}
    END
+7 −6
Original line number Diff line number Diff line
@@ -24,13 +24,14 @@ Batch Update Entity With Invalid Request Scenarios
    Check Response Status Code    ${expected_status_code}    ${response.status_code}
    IF    '${expected_status_code}'=='400'
        Check Response Body Containing ProblemDetails Element Containing Type Element set to
        ...    ${response.json()}
        ...    ${problem_type}
        Check Response Body Containing ProblemDetails Element Containing Title Element    ${response.json()}
        ...    response_body=${response.json()}
        ...    type=${problem_type}
        Check Response Body Containing ProblemDetails Element Containing Title Element
        ...    response_body=${response.json()}
    ELSE
        Check Response Body Containing ProblemDetails Element Containing Type Element set to
        ...    ${response.json()['errors'][0]['error']}
        ...    ${problem_type}
        ...    response_body=${response.json()['errors'][0]['error']}
        ...    type=${problem_type}
        Check Response Body Containing ProblemDetails Element Containing Title Element
        ...    ${response.json()['errors'][0]['error']}
        ...    response_body=${response.json()['errors'][0]['error']}
    END
+7 −6
Original line number Diff line number Diff line
@@ -24,13 +24,14 @@ Batch Upsert Entity With Invalid Request Scenarios
    Check Response Status Code    ${expected_status_code}    ${response.status_code}
    IF    '${expected_status_code}'=='400'
        Check Response Body Containing ProblemDetails Element Containing Type Element set to
        ...    ${response.json()}
        ...    ${problem_type}
        Check Response Body Containing ProblemDetails Element Containing Title Element    ${response.json()}
        ...    response_body=${response.json()}
        ...    type=${problem_type}
        Check Response Body Containing ProblemDetails Element Containing Title Element
        ...    response_body=${response.json()}
    ELSE
        Check Response Body Containing ProblemDetails Element Containing Type Element set to
        ...    ${response.json()['errors'][0]['error']}
        ...    ${problem_type}
        ...    response_body=${response.json()['errors'][0]['error']}
        ...    type=${problem_type}
        Check Response Body Containing ProblemDetails Element Containing Title Element
        ...    ${response.json()['errors'][0]['error']}
        ...    response_body=${response.json()['errors'][0]['error']}
    END
+2 −2
Original line number Diff line number Diff line
@@ -166,8 +166,8 @@ class Checks:
                'position': [0, 1]
            },
            'Check Response Body Containing ProblemDetails Element Containing Type Element set to': {
                'params': ['type'],
                'position': [1]
                'params': ['response_body', 'type'],
                'position': [0, 1]
            },
            'Check Response Body Containing ProblemDetails Element': {
                'params': ['problem_type'],