Commit ddd7b044 authored by Hammad Zafar's avatar Hammad Zafar Committed by Giacomo Bernini
Browse files

updated paged response test cases for Policies and Subscriptions resources

parent 37182d4d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -37,7 +37,7 @@ GET Information about an individual policy - NOT FOUND
    ...    Config ID: Config_prod_NFV-MANO
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    GET Individual Policy
    GET Individual Policy with Invalid URI
    Check HTTP Response Status Code Is    404
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is   ProblemDetails
    Check HTTP Response Body Json Schema Is   ProblemDetails
    
    
+1 −1
Original line number Original line Diff line number Diff line
@@ -37,7 +37,7 @@ GET Information about an individual subscription - NOT FOUND
    ...    Config ID: Config_prod_NFV-MANO
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    GET Individual subscription
    GET Individual subscription with Invalid URI
    Check HTTP Response Status Code Is    404
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is   ProblemDetails
    Check HTTP Response Body Json Schema Is   ProblemDetails


+7 −20
Original line number Original line Diff line number Diff line
@@ -63,9 +63,9 @@ GET Policies - Bad Request Response too Big
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.3.3.2 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Reference: Clause 5.5.3.3.2 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Applicability: NFV-MANO does not support paged response.
    ...    Post-Conditions: none 
    ...    Post-Conditions: none 
    GET Policies
    GET Policies without Paging support
    Check HTTP Response Status Code Is    400
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails
    
    
@@ -141,27 +141,14 @@ GET Policies as Paged Response
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.3.3.2 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Reference: Clause 5.5.3.3.2 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: NFV-MANO supports paged response
    ...    Applicability: NFV-MANO supports paged response.
    ...    Post-Conditions: none    
    ...    Post-Conditions: none    
    GET Policies
    GET Policies with Paging support
    Check HTTP Response Status Code Is  200
    Check HTTP Response Status Code Is  200
    Check HTTP Response Header Contains Link
    Check HTTP Response Header Contains Link


GET Policies - NOT FOUND
     [Documentation]    Test ID: 10.3.1.2.12
    ...    Test title: GET Policies - NOT FOUND
    ...    Test objective: The objective is to test that the retrieval of list of policies fails when using an invalid resource identifier.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.3.3.2 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Policies
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is   ProblemDetails
        
PUT Policies - Method not implemented
PUT Policies - Method not implemented
     [Documentation]    Test ID: 10.3.1.2.13
     [Documentation]    Test ID: 10.3.1.2.12
    ...    Test title: PUT Policies - Method not implemented
    ...    Test title: PUT Policies - Method not implemented
    ...    Test objective: The objective is to test that PUT method cannot modify policies.
    ...    Test objective: The objective is to test that PUT method cannot modify policies.
    ...    Pre-conditions: none
    ...    Pre-conditions: none
@@ -173,7 +160,7 @@ PUT Policies - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


PATCH Policies - Method not implemented
PATCH Policies - Method not implemented
    [Documentation]    Test ID: 10.3.1.2.14
    [Documentation]    Test ID: 10.3.1.2.13
    ...    Test title: PATCH Policies - Method not implemented
    ...    Test title: PATCH Policies - Method not implemented
    ...    Test objective: The objective is to test that PATCH method cannot modify policies.
    ...    Test objective: The objective is to test that PATCH method cannot modify policies.
    ...    Pre-conditions: none
    ...    Pre-conditions: none
@@ -185,7 +172,7 @@ PATCH Policies - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


DELETE Policies - Method not implemented
DELETE Policies - Method not implemented
    [Documentation]    Test ID: 10.3.1.2.15
    [Documentation]    Test ID: 10.3.1.2.14
    ...    Test title: DELETE Policies - Method not implemented
    ...    Test title: DELETE Policies - Method not implemented
    ...    Test objective: The objective is to test that DELETE method cannot delete policies.
    ...    Test objective: The objective is to test that DELETE method cannot delete policies.
    ...    Pre-conditions: none
    ...    Pre-conditions: none
+28 −0
Original line number Original line Diff line number Diff line
@@ -254,6 +254,12 @@ Get subscriptions with exclude_default and fields attribute selector
    ${output}=    Output    response
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    Set Suite Variable    ${response}    ${output}
	
	
Get subscriptions without Paging support
    Run Keyword If    ${PAGING_SUPPORTED} == 0    Get subscriptions

Get subscriptions with Paging support
    Run Keyword If    ${PAGING_SUPPORTED} == 1    Get subscriptions

PUT subscriptions
PUT subscriptions
    Log    Trying to perform a PUT. This method should not be implemented
    Log    Trying to perform a PUT. This method should not be implemented
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Accept":"${ACCEPT}"}  
@@ -298,6 +304,14 @@ GET Individual subscription
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
	Set Global Variable    ${response}    ${outputResponse}
	
	
GET Individual subscription with Invalid URI
    log    Trying to get information about an individual subscription with invalid subscription ID
    Set Headers    {"Accept":"${ACCEPT}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Get    ${apiRoot}/${apiName}/${apiVersion}/subscriptions/${invalidSubscriptionId}  
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
	
PUT Individual Subscription
PUT Individual Subscription
    log    Trying to perform a PUT. This method should not be implemented
    log    Trying to perform a PUT. This method should not be implemented
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Accept":"${ACCEPT}"}  
@@ -469,6 +483,12 @@ Get Policies with exclude_default and fields attribute selector
    ${output}=    Output    response
    ${output}=    Output    response
    Set Suite Variable    ${response}    ${output}
    Set Suite Variable    ${response}    ${output}


GET Policies without Paging support
    Run Keyword If    ${PAGING_SUPPORTED} == 0    Get Policies
    
GET Policies with Paging support
    Run Keyword If    ${PAGING_SUPPORTED} == 1    Get Policies
	
PUT Policies
PUT Policies
    Log    Trying to perform a PUT. This method should not be implemented
    Log    Trying to perform a PUT. This method should not be implemented
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Accept":"${ACCEPT}"}  
@@ -517,6 +537,14 @@ GET Individual Policy
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
	Set Global Variable    ${response}    ${outputResponse}
	
	
GET Individual Policy with Invalid URI
    log    Trying to get information about an individual policy with invalid policy ID
    Set Headers    {"Accept":"${ACCEPT}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    Get    ${apiRoot}/${apiName}/${apiVersion}/policies/${invalidPolicyId}  
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}
	
PUT Individual Policy
PUT Individual Policy
    log    Trying to perform a PUT. This method should not be implemented
    log    Trying to perform a PUT. This method should not be implemented
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Accept":"${ACCEPT}"}  
+7 −20
Original line number Original line Diff line number Diff line
@@ -95,9 +95,9 @@ GET subscriptions - Bad Request Response too Big
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.7.3.2 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Reference: Clause 5.5.7.3.2 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Applicability: NFV-MANO does not support paged response.
    ...    Post-Conditions: none 
    ...    Post-Conditions: none 
    GET Subscriptions
    GET Subscriptions without Paging support
    Check HTTP Response Status Code Is    400
    Check HTTP Response Status Code Is    400
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails
    
    
@@ -160,9 +160,9 @@ GET Subscriptions as Paged Response
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.7.3.2 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Reference: Clause 5.5.7.3.2 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: NFV-MANO supports paged response
    ...    Applicability: NFV-MANO supports paged response.
    ...    Post-Conditions: none    
    ...    Post-Conditions: none    
    GET Subscriptions
    GET Subscriptions with Paging support
    Check HTTP Response Status Code Is  200
    Check HTTP Response Status Code Is  200
    Check HTTP Response Header Contains Link
    Check HTTP Response Header Contains Link


@@ -179,21 +179,8 @@ GET subscriptions with "exclude_default" and "fields" attribute selector
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   subscriptions          
    Check HTTP Response Body Json Schema Is   subscriptions          
    
    
GET subscriptions - NOT FOUND
     [Documentation]    Test ID: 10.3.1.6.14
    ...    Test title: GET subscriptions - NOT FOUND
    ...    Test objective: The objective is to test that the retrieval of list of subscriptions fails when using an invalid resource identifier.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.7.3.2 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Subscriptions
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is   ProblemDetails
    
PUT subscriptions - Method not implemented
PUT subscriptions - Method not implemented
     [Documentation]    Test ID: 10.3.1.6.15
     [Documentation]    Test ID: 10.3.1.6.14
    ...    Test title: PUT subscriptions - Method not implemented
    ...    Test title: PUT subscriptions - Method not implemented
    ...    Test objective: The objective is to test that PUT method cannot modify a policy management subscription.
    ...    Test objective: The objective is to test that PUT method cannot modify a policy management subscription.
    ...    Pre-conditions: none
    ...    Pre-conditions: none
@@ -205,7 +192,7 @@ PUT subscriptions - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


PATCH subscriptions - Method not implemented
PATCH subscriptions - Method not implemented
    [Documentation]    Test ID: 10.3.1.6.16
    [Documentation]    Test ID: 10.3.1.6.15
    ...    Test title: PATCH subscriptions - Method not implemented
    ...    Test title: PATCH subscriptions - Method not implemented
    ...    Test objective: The objective is to test that PATCH method cannot modify a policy management subscription.
    ...    Test objective: The objective is to test that PATCH method cannot modify a policy management subscription.
    ...    Pre-conditions: none
    ...    Pre-conditions: none
@@ -217,7 +204,7 @@ PATCH subscriptions - Method not implemented
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


DELETE subscriptions - Method not implemented
DELETE subscriptions - Method not implemented
    [Documentation]    Test ID: 10.3.1.6.17
    [Documentation]    Test ID: 10.3.1.6.16
    ...    Test title: DELETE subscriptions - Method not implemented
    ...    Test title: DELETE subscriptions - Method not implemented
    ...    Test objective: The objective is to test that DELETE method cannot delete a policy management subscription.
    ...    Test objective: The objective is to test that DELETE method cannot delete a policy management subscription.
    ...    Pre-conditions: none
    ...    Pre-conditions: none
Loading