Commit 3746e214 authored by Giacomo Bernini's avatar Giacomo Bernini Committed by Giacomo Bernini
Browse files

[test-new][SOL025][DATA-ANALYTICS][v5.2.1][12.3.1.5.x Test-IDs] Implemented...

[test-new][SOL025][DATA-ANALYTICS][v5.2.1][12.3.1.5.x Test-IDs] Implemented new tests for Telco Data Analytics individial subscriptions
parent be7b8de0
Loading
Loading
Loading
Loading
+123 −0
Original line number Diff line number Diff line
*** Settings ***
Library           JSONSchemaLibrary    schemas/
Resource          environment/variables.txt
Library           REST    ${TCDAS_SCHEMA}://${TCDAS_HOST}:${TCDAS_PORT}    ssl_verify=false
Library           OperatingSystem
Library           JSONLibrary
Resource          DataAnalyticsOperationKeywords.robot

*** Test Cases ***
GET Individual Subscription
    [Documentation]    Test ID: 12.3.1.5.1
    ...    Test title: GET Individual  Subscription
    ...    Test objective: The objective is to test the retrieval of individual subscription and perform a JSON schema and content validation of the returned subscription data structure
    ...    Pre-conditions: At least one subscription is available in the Telco-Cloud DAF.
    ...    Reference: clause 5.5.7.3.2 - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Individual Subscription
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   AnalyticsSubscription
    Check HTTP Response Body Subscription Identifier matches the requested Subscription

GET Individual Subscription - invalid resource identifier
    [Documentation]    Test ID: 12.3.1.5.2
    ...    Test title: GET Individual Subscription - invalid resource identifier
    ...    Test objective: The objective is to test that the retrieval of an individual subscription fails when using an invalid resource identifier
    ...    Pre-conditions: At least one subscription is available in the Telco-Cloud DAF.
    ...    Reference: clause 5.5.7.3.2 - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET individual Subscription with invalid resource identifier
    Check HTTP Response Status Code Is    404

DELETE Individual Subscription
    [Documentation]    Test ID: 12.3.1.5.3
    ...    Test title: DELETE Individual Subscription
    ...    Test objective: The objective is to test the deletion of an individual subscription
    ...    Pre-conditions: At least one subscription is available in the Telco-Cloud DAF.
    ...    Reference: clause 5.5.7.3.5 - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: The resource is not available anymore in the Telco-Cloud DAF    
    Send Delete request for individual Subscription
    Check HTTP Response Status Code Is    204
    Check Postcondition Subscription is Deleted

DELETE Individual Subscription - invalid resource identifier
    [Documentation]    Test ID: 12.3.1.5.4
    ...    Test title: DELETE Individual Subscription - invalid resource identifier
    ...    Test objective: The objective is to test that the deletion of an individual  subscription fails when using an invalid resource identifier
    ...    Pre-conditions: At least one subscription is available in the Telco-Cloud DAF.
    ...    Reference: clause 5.5.7.3.5 - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none   
    Send Delete request for individual Subscription with invalid resource identifier
    Check HTTP Response Status Code Is    404

POST Individual Subscription - Method not implemented
    [Documentation]    Test ID: 12.3.1.5.5
    ...    Test title: POST Individual Subscription - Method not implemented
    ...    Test objective: The objective is to test that POST method is not allowed to create a new Subscription
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.7.3.1 - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Send Post request for individual Subscription
    Check HTTP Response Status Code Is    405

PUT Individual Subscription - Method not implemented
    [Documentation]    Test ID: 12.3.1.5.6
    ...    Test title: PUT Individual Subscription - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not allowed to update an existing subscription
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.7.3.3 - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Send Put request for individual Subscription
    Check HTTP Response Status Code Is    405

PATCH Individual Subscription - Method not implemented
    [Documentation]    Test ID: 12.3.1.5.7
    ...    Test title: PATCH Individual Subscription - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not allowed to modify an existing subscription
    ...    Pre-conditions: none
    ...    Reference: clause 5.5.7.3.4 - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Send Patch request for individual Subscription
    Check HTTP Response Status Code Is    405

GET Individual Subscription with permitted authorization scope
    [Documentation]    Test ID: 12.3.1.5.8
    ...    Test title: GET Individual  Subscription with permitted authorization scope
    ...    Test objective: The objective is to test the retrieval of individual subscription when a permitted authorization scope is used.
    ...    Pre-conditions: At least one subscription is available in the Telco-Cloud DAF.
    ...    Reference: clause 5.5.7.3.2 - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Individual Subscription with permitted authorization scope
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   AnalyticsSubscription
    Check HTTP Response Body Subscription Identifier matches the requested Subscription

GET Individual Subscription with not permitted authorization scope
    [Documentation]    Test ID: 12.3.1.5.9
    ...    Test title: GET Individual  Subscription with not permitted authorization scope
    ...    Test objective: The objective is to test the retrieval of individual subscription fails when a not permitted authorization scope is used.
    ...    Pre-conditions: At least one subscription is available in the Telco-Cloud DAF.
    ...    Reference: clause 5.5.7.3.2 - ETSI GS NFV-SOL 025 [12] v5.2.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Individual Subscription with not permitted authorization scope
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   AnalyticsSubscription
    Check HTTP Response Body Subscription Identifier matches the requested Subscription
 No newline at end of file
+1 −1

File changed.

Contains only whitespace changes.