Commit 6f6068e4 authored by Giacomo Bernini's avatar Giacomo Bernini Committed by Giacomo Bernini
Browse files

added oauth scope tests for policy subscriptions 10.3.1.6.17 and 10.3.1.6.18

parent d2130e3e
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -214,3 +214,28 @@ DELETE subscriptions - Method not implemented
    DELETE subscriptions
    Check HTTP Response Status Code Is    405
    Check Postcondition Subscriptions Exist

GET Subscriptions with permitted authorization scope
    [Documentation]    Test ID: 10.3.1.6.17
    ...    Test title: GET Subscriptions with permitted authorization scope
    ...    Test objective: The objective is to test that GET method retrieves the list of existing subscriptions when a permitted authorization scope is used.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.7.3.2 - ETSI GS NFV-SOL 012 [9] v4.5.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none    
    GET Subscriptions with permitted authorization scope
    Check HTTP Response Status Code Is  200
    Check HTTP Response Body Json Schema Is  subscriptions

GET Subscriptions with not permitted authorization scope
    [Documentation]    Test ID: 10.3.1.6.18
    ...    Test title: GET Subscriptions with not permitted authorization scope
    ...    Test objective: The objective is to test that GET method fails to retrieve the list of existing subscriptions when a not permitted authorization scope is used.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.7.3.2 - ETSI GS NFV-SOL 012 [9] v4.5.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: none
    ...    Post-Conditions: none    
    GET Subscriptions with not permitted authorization scope
    Check HTTP Response Status Code Is  401
 No newline at end of file