Commit d4307d59 authored by lopezaguilar's avatar lopezaguilar
Browse files

Complete the management of Cached @context

parent bb2e934d
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -22,25 +22,25 @@ ${reason_204}= No Content
    ${EMPTY}    ${EMPTY}
052_01_02 List @contexts with no details and kind equal to hosted and not previously created @context
    [Tags]    ctx-serve    5_13_4
    ${EMPTY}    hosted
    ${EMPTY}    Hosted
052_01_03 List @contexts with no details and kind equal to cached and not previously created @context
    [Tags]    ctx-serve    5_13_4
    ${EMPTY}    cached
    ${EMPTY}    Cached
052_01_04 List @contexts with no details and kind equal to implicitlycreated and not previously created @context
    [Tags]    ctx-serve    5_13_4
    ${EMPTY}    implicitlycreated
    ${EMPTY}    ImplicitlyCreated
052_01_05 List @contexts with details equal to false and no kind and not previously created @context
    [Tags]    ctx-serve    5_13_4
    false    ${EMPTY}
052_01_06 List @contexts with details equal to false and kind equal to hosted and not previously created @context
    [Tags]    ctx-serve    5_13_4
    false    hosted
    false    Hosted
052_01_07 List @contexts with details equal to false and kind equal to cached and not previously created @context
    [Tags]    ctx-serve    5_13_4
    false    cached
    false    Cached
052_01_08 List @contexts with details equal to false and kind equal to implicitlycreated and not previously created @context
    [Tags]    ctx-serve    5_13_4
    false    implicitlycreated
    false    ImplicitlyCreated


*** Keywords ***
+6 −6
Original line number Diff line number Diff line
@@ -24,25 +24,25 @@ ${reason_204}= No Content
    ${EMPTY}    ${EMPTY}
052_02_02 List @contexts with no details and kind equal to hosted and with previously one add @context
    [Tags]    ctx-serve    5_13_4
    ${EMPTY}    hosted
    ${EMPTY}    Hosted
052_02_03 List @contexts with no details and kind equal to cached and with previously one add @context
    [Tags]    ctx-serve    5_13_4
    ${EMPTY}    cached
    ${EMPTY}    Cached
052_02_04 List @contexts with no details and kind equal to implicitlycreated and with previously one add @context
    [Tags]    ctx-serve    5_13_4
    ${EMPTY}    implicitlycreated
    ${EMPTY}    ImplicitlyCreated
052_02_05 List @contexts with details equal to false and no kind and with previously one add @context
    [Tags]    ctx-serve    5_13_4
    false    ${EMPTY}
052_02_06 List @contexts with details equal to false and kind equal to hosted and with previously one add @context
    [Tags]    ctx-serve    5_13_4
    false    hosted
    false    Hosted
052_02_07 List @contexts with details equal to false and kind equal to cached abd with previously one add @context
    [Tags]    ctx-serve    5_13_4
    false    cached
    false    Cached
052_02_08 List @contexts with details equal to false and kind equal to implicitlycreated and with previously one add @context
    [Tags]    ctx-serve    5_13_4
    false    implicitlycreated
    false    ImplicitlyCreated


*** Keywords ***
+6 −6
Original line number Diff line number Diff line
@@ -26,25 +26,25 @@ ${reason_204}= No Content
    ${EMPTY}    ${EMPTY}
052_03_02 List @contexts with no details and kind equal to hosted and with previously several add @context
    [Tags]    ctx-serve    5_13_4
    ${EMPTY}    hosted
    ${EMPTY}    Hosted
052_03_03 List @contexts with no details and kind equal to cached and with previously several add @context
    [Tags]    ctx-serve    5_13_4
    ${EMPTY}    cached
    ${EMPTY}    Cached
052_03_04 List @contexts with no details and kind equal to implicitlycreated and with previously several add @context
    [Tags]    ctx-serve    5_13_4
    ${EMPTY}    implicitlycreated
    ${EMPTY}    ImplicitlyCreated
052_03_05 List @contexts with details equal to false and no kind and with previously several add @context
    [Tags]    ctx-serve    5_13_4
    false    ${EMPTY}
052_03_06 List @contexts with details equal to false and kind equal to hosted and with previously several add @context
    [Tags]    ctx-serve    5_13_4
    false    hosted
    false    Hosted
052_03_07 List @contexts with details equal to false and kind equal to cached abd with previously several add @context
    [Tags]    ctx-serve    5_13_4
    false    cached
    false    Cached
052_03_08 List @contexts with details equal to false and kind equal to implicitlycreated and with previously several add @context
    [Tags]    ctx-serve    5_13_4
    false    implicitlycreated
    false    ImplicitlyCreated


*** Keywords ***
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ ${reason_204}= No Content
    true    other
052_04_05 List @contexts with details equal to false and kind equal to implicitlycreated and not previously created @context
    [Tags]    ctx-serve    5_13_4
    other    hosted
    other    Hosted


*** Keywords ***
+17 −9
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ Library Collections

Test Setup          Create Initial @context
Test Teardown       Delete Initial @context
Test Template       Serve a @context with details


*** Variables ***
@@ -17,17 +18,13 @@ ${reason_200}= OK
${reason_204}=      No Content


*** Test Cases ***
*** Test Cases ***    DETAILS
053_01_01 Serve a @context without details
    [Documentation]    Check that you can serve a @context
    [Tags]    ctx-serve    5_13_4

    ${response}=    Serve a @context    ${uri}

    Check Response Status Code    200    ${response.status_code}
    Check Response Reason set to    ${response.reason}    ${reason_200}
    Check Response Headers Containing Content-Type set to    ${CONTENT_TYPE_JSON}    ${response.headers}
    Check Context Response Body Content    ${filename}    ${response.json()}
    ${EMPTY}
053_01_02 Serve a @context with details equal to false
    [Tags]    ctx-serve    5_13_4
    false


*** Keywords ***
@@ -37,6 +34,17 @@ Create Initial @context
    ${uri}=    Fetch Id From Response Location Header    ${response.headers}
    Set Suite Variable    ${uri}

Serve a @context with details
    [Documentation]    Check that you can serve a @context with details equal to empty or false
    [Arguments]    ${details}

    ${response}=    Serve a @context    ${uri}    ${details}

    Check Response Status Code    200    ${response.status_code}
    Check Response Reason set to    ${response.reason}    ${reason_200}
    Check Response Headers Containing Content-Type set to    ${CONTENT_TYPE_JSON}    ${response.headers}
    Check Context Response Body Content    ${filename}    ${response.json()}

Delete Initial @context
    ${response_delete}=    Delete a @context without reload    ${uri}
    Check Response Status Code    204    ${response_delete.status_code}
Loading