Commit dbe8d328 authored by Giacomo Bernini's avatar Giacomo Bernini Committed by Giacomo Bernini
Browse files

added oauth scope tests for selected versions of policy 10.3.1.4.8 and 10.3.1.4.9

parent 6487a985
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -89,3 +89,28 @@ DELETE Selected Version of an individual policy - Method not implemented
    ...    Post-Conditions: none
    DELETE Selected Version of an Individual Policy
    Check HTTP Response Status Code Is    405

GET Information about the Selected Version of an Individual Policy with permitted authorization scope
     [Documentation]    Test ID: 10.3.1.4.8
    ...    Test title: GET Information about the Selected Version of an Individual Policy with permitted authorization scope
    ...    Test objective: The objective is to test The GET method fetches contents of the selected version of an individual policy when a permitted authorization scope is used.
    ...    Pre-conditions: Individual policy is available in the NFV-MANO. Policy contents are provided in the json/PolicyContent folder.
    ...    Reference: Clause 5.5.5.3.2 - ETSI GS NFV-SOL 012 [9] v4.5.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: The policy content type is either JSON, YAML or ZIP. 
    ...    Post-Conditions: none
    GET Selected Version of an Individual Policy with permitted authorization scope
    Check HTTP Response Status Code Is    200
    Check that the Content-Type Header Is Set

GET Information about the Selected Version of an Individual Policy with not permitted authorization scope
     [Documentation]    Test ID: 10.3.1.4.9
    ...    Test title: GET Information about the Selected Version of an Individual Policy with not permitted authorization scope
    ...    Test objective: The objective is to test the GET method fails to fetch a selected version of an individual policy when a not permitted authorization scope is used.
    ...    Pre-conditions: Individual policy is available in the NFV-MANO. Policy contents are provided in the json/PolicyContent folder.
    ...    Reference: Clause 5.5.5.3.2 - ETSI GS NFV-SOL 012 [9] v4.5.1
    ...    Config ID: Config_prod_NFV-MANO
    ...    Applicability: The policy content type is either JSON, YAML or ZIP. 
    ...    Post-Conditions: none
    GET Selected Version of an Individual Policy with not permitted authorization scope
    Check HTTP Response Status Code Is    401