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

minor fixes and additional test cases added for PolicyManagement-API

parent a953aa7f
Loading
Loading
Loading
Loading
+19 −19
Original line number Diff line number Diff line
@@ -28,8 +28,21 @@ GET Information about an individual policy - Successful
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   Policy

PUT an individual policy - Method not implemented
GET Information about an individual policy - NOT FOUND
     [Documentation]    Test ID: 10.3.1.3.3
    ...    Test title: GET Information about an individual policy - NOT FOUND
    ...    Test objective: The objective is to test that the retrieval of individual policy fails when using an invalid resource identifier.
    ...    Pre-conditions: At least one individual policy is available in the NFV-MANO.
    ...    Reference: Clause 5.5.8.3.2 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual Policy
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is   ProblemDetails
    
PUT an individual policy - Method not implemented
     [Documentation]    Test ID: 10.3.1.3.4
    ...    Test title: PUT an individual policy - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented.
    ...    Pre-conditions: none
@@ -41,7 +54,7 @@ PUT an individual policy - Method not implemented
    Check HTTP Response Status Code Is    405

PATCH an individual ploicy - Successful 
     [Documentation]    Test ID: 10.3.1.3.4
     [Documentation]    Test ID: 10.3.1.3.5
    ...    Test title: PATCH an individual ploicy - Successful
    ...    Test objective: The objective is to test that an individual policy is modified successfully when there is no conflict using PATCH method.
    ...    Pre-conditions: There should not exist a conflict as described in Reference.
@@ -54,7 +67,7 @@ PATCH an individual ploicy - Successful
    Check HTTP Response Body Json Schema Is   PolicyModifications
    
PATCH an individual ploicy - Conflict 
     [Documentation]    Test ID: 10.3.1.3.5
     [Documentation]    Test ID: 10.3.1.3.6
    ...    Test title: PATCH an individual ploicy - Conflict
    ...    Test objective: The objective is to test that an individual policy is not modified when there is a conflict using PATCH method.
    ...    Pre-conditions: There exists a conflict as described in Reference.
@@ -68,7 +81,7 @@ PATCH an individual ploicy - Conflict


DELETE an individual policy - Successful
     [Documentation]    Test ID: 10.3.1.3.6
     [Documentation]    Test ID: 10.3.1.3.7
    ...    Test title: DELETE an individual policy - Successful
    ...    Test objective: The objective is to test that DELETE method deletes a deactivated individual policy.
    ...    Pre-conditions: The activation status of individual policy to be deleted is not set to ACTIVATED.
@@ -81,7 +94,7 @@ DELETE an individual policy - Successful
    Check Postcondition Individual Policy is Deleted

DELETE an individual policy - CONFLICT
     [Documentation]    Test ID: 10.3.1.3.7
     [Documentation]    Test ID: 10.3.1.3.8
    ...    Test title: DELETE an individual policy - CONFLICT
    ...    Test objective: The objective is to test that DELETE method does not delete an activated individual policy.
    ...    Pre-conditions: The activation status of individual policy to be deleted is set to ACTIVATED.
@@ -94,16 +107,3 @@ DELETE an individual policy - CONFLICT
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is   ProblemDetails    
    Check Postcondition Individual Policy is Not Deleted
 No newline at end of file
    
GET Information about an individual policy - NOT FOUND
     [Documentation]    Test ID: 10.3.1.3.8
    ...    Test title: GET Information about an individual policy - NOT FOUND
    ...    Test objective: The objective is to test that the retrieval of individual policy fails when using an invalid resource identifier.
    ...    Pre-conditions: At least one individual policy is available in the NFV-MANO.
    ...    Reference: Clause 5.5.8.3.2 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual Policy
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is   ProblemDetails
 No newline at end of file
+17 −17
Original line number Diff line number Diff line
@@ -28,8 +28,21 @@ GET Information about an individual subscription - Successful
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   PolicySubscription
    
PUT an individual subscription - Method not implemented
GET Information about an individual subscription - NOT FOUND
     [Documentation]    Test ID: 10.3.1.7.3
    ...    Test title: GET Information about an individual subscription - NOT FOUND
    ...    Test objective: The objective is to test that the retrieval of individual Policy Management subscription fails when using an invalid resource identifier.
    ...    Pre-conditions: At least one Policy Management subscription is available in the NFV-MANO.
    ...    Reference: Clause 5.5.8.3.2 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual subscription
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is   ProblemDetails

PUT an individual subscription - Method not implemented
     [Documentation]    Test ID: 10.3.1.7.4
    ...    Test title: PUT an individual subscription - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not implemented
    ...    Pre-conditions: none
@@ -41,7 +54,7 @@ PUT an individual subscription - Method not implemented
    Check HTTP Response Status Code Is    405

PATCH an individual subscription - Method not implemented
     [Documentation]    Test ID: 10.3.1.7.4
     [Documentation]    Test ID: 10.3.1.7.5
    ...    Test title: PATCH an individual subscription - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not implemented
    ...    Pre-conditions: none
@@ -53,7 +66,7 @@ PATCH an individual subscription - Method not implemented
    Check HTTP Response Status Code Is    405
    
DELETE an individual subscription
     [Documentation]    Test ID: 10.3.1.7.5
     [Documentation]    Test ID: 10.3.1.7.6
    ...    Test title: DELETE an individual subscription
    ...    Test objective: The objective is to test that DELETE method deletes an individual subscription
    ...    Pre-conditions: At least one policy management subscription is available in the NFV-MANO.
@@ -64,16 +77,3 @@ DELETE an individual subscription
    DELETE Individual Subscription
    Check HTTP Response Status Code Is    204
    Check Postcondition Individual Subscription is Deleted
 No newline at end of file
    
GET Information about an individual subscription - NOT FOUND
     [Documentation]    Test ID: 10.3.1.7.6
    ...    Test title: GET Information about an individual subscription - NOT FOUND
    ...    Test objective: The objective is to test that the retrieval of individual Policy Management subscription fails when using an invalid resource identifier.
    ...    Pre-conditions: At least one Policy Management subscription is available in the NFV-MANO.
    ...    Reference: Clause 5.5.8.3.2 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual subscription
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is   ProblemDetails
 No newline at end of file
+62 −1
Original line number Diff line number Diff line
@@ -27,3 +27,64 @@ Policy Conflict Notification
    ...    Post-Conditions: none 
    POST Policy Conflict Notification
    Check HTTP Response Status Code Is    204
    
Test the Notification Endpoint - Successful
    [Documentation]    Test ID: 10.3.1.9.3
    ...    Test title: Test the Notification Endpoint - Successful
    ...    Test objective: The objective is to test the Notification Endpoint provided by the notification consumer.
    ...    Pre-conditions: A notification endpoint is provided by the API consumer upon subscription.
    ...    Reference: Clause 5.5.9.3.2 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Config ID: Config_prod_Notif_Endpoint
    ...    Applicability: none
    ...    Post-Conditions: none 
    Get reach the notification endpoint
    Check HTTP Response Status Code Is    204
    
Test the Notification Endpoint - UNREACHABLE
    [Documentation]    Test ID: 10.3.1.9.4
    ...    Test title: Test the Notification Endpoint - UNREACHABLE
    ...    Test objective: The objective is to test the Notification Endpoint provided by the notification consumer.
    ...    Pre-conditions: A notification endpoint is provided by the API consumer upon subscription.
    ...    Reference: Clause 5.5.7.3.1 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Config ID: Config_prod_Notif_Endpoint
    ...    Applicability: The notification endpoint is unreachable by the API producer.
    ...    Post-Conditions: none 
    GET reach the notification endpoint
    Check HTTP Response Status Code Is    422
    Check HTTP Response Body Json Schema Is    ProblemDetails    
    
PUT Notification endpoint - Method Not Implemented
    [Documentation]    Test ID: 10.3.1.9.5
    ...    Test title: PUT Notification endpoint - Method Not Implemented
    ...    Test objective: The objective is to test the PUT method for Notification Endpoint provided by the consumer is not implemented.
    ...    Pre-conditions: A notification endpoint is provided by the API consumer upon subscription.
    ...    Reference: Clause 5.5.9.3.3 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Config ID: Config_prod_Notif_Endpoint
    ...    Applicability: none
    ...    Post-Conditions: none 
    PUT notification endpoint
    Check HTTP Response Status Code Is    405
    
PATCH Notification endpoint - Method Not Implemented
    [Documentation]    Test ID: 10.3.1.9.6
    ...    Test title: PATCH Notification endpoint - Method Not Implemented
    ...    Test objective: The objective is to test the PATCH method for Notification Endpoint provided by the consumer is not implemented.
    ...    Pre-conditions: A notification endpoint is provided by the API consumer upon subscription.
    ...    Reference: Clause 5.5.9.3.4 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Config ID: Config_prod_Notif_Endpoint
    ...    Applicability: none
    ...    Post-Conditions: none 
    PATCH notification endpoint
    Check HTTP Response Status Code Is    405

DELETE Notification endpoint - Method Not Implemented
    [Documentation]    Test ID: 10.3.1.9.7
    ...    Test title: DELETE Notification endpoint - Method Not Implemented
    ...    Test objective: The objective is to test the DELETE method for Notification Endpoint provided by the consumer is not implemented.
    ...    Pre-conditions: A notification endpoint is provided by the API consumer upon subscription.
    ...    Reference: Clause 5.5.9.3.5 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Config ID: Config_prod_Notif_Endpoint
    ...    Applicability: none
    ...    Post-Conditions: none 
    DELETE notification endpoint
    Check HTTP Response Status Code Is    405
 No newline at end of file
+3 −2
Original line number Diff line number Diff line
@@ -19,13 +19,14 @@ GET Information about the Particular Version of an Individual Policy - Successfu
     [Documentation]    Test ID: 10.3.1.5.2
    ...    Test title: GET Information about the Particular Version of an Individual Policy - Successful
    ...    Test objective: The objective is to test The GET method fetches the content of the Particular version of an individual policy.
    ...    Pre-conditions: Individual policy is available in the NFV-MANO.
    ...    Pre-conditions: Individual policy is available in the NFV-MANO. Policy contents are provided in the json/PolicyContent folder.
    ...    Reference: Clause 5.5.6.3.2 - ETSI GS NFV-SOL 012 [7] v3.4.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Applicability: The policy content type is either JSON, YAML or ZIP.
    ...    Post-Conditions: none
    GET Particular Version of an Individual Policy
    Check HTTP Response Status Code Is    200
    Check that the Content-Type Header Is Set
    
GET Information about the Particular Version of an Individual Policy - NOT FOUND
     [Documentation]    Test ID: 10.3.1.5.3
+16 −3
Original line number Diff line number Diff line
@@ -147,8 +147,21 @@ GET Policies as Paged Response
    Check HTTP Response Status Code Is  200
    Check HTTP Response Header Contains Link

PUT Policies - Method not implemented
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
     [Documentation]    Test ID: 10.3.1.2.13
    ...    Test title: PUT Policies - Method not implemented
    ...    Test objective: The objective is to test that PUT method cannot modify policies.
    ...    Pre-conditions: none
@@ -160,7 +173,7 @@ PUT Policies - Method not implemented
    Check HTTP Response Status Code Is    405

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

DELETE Policies - Method not implemented
    [Documentation]    Test ID: 10.3.1.2.14
    [Documentation]    Test ID: 10.3.1.2.15
    ...    Test title: DELETE Policies - Method not implemented
    ...    Test objective: The objective is to test that DELETE method cannot delete policies.
    ...    Pre-conditions: none
Loading