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

added oauth scope tests for particular versions of policy 10.3.1.5.9 and 10.3.1.5.10

parent dbe8d328
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
@@ -102,3 +102,27 @@ DELETE Particular Version of an individual policy - CONFLICT
    DELETE Particular Version of an Individual Policy
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is   ProblemDetails

PUT Particular Version of an individual policy with permitted authorization scope
     [Documentation]    Test ID: 10.3.1.5.9
    ...    Test title: PUT Particular Version of an individual policy with permitted authorization scope
    ...    Test objective: The objective is to test that the PUT method transfers the content of a particular version of an individual policy when a permitted authorization scope is used.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.6.3.3 - 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
    PUT Particular Version of an Individual Policy with permitted authorization scope
    Check HTTP Response Status Code Is    201

PUT Particular Version of an individual policy with not permitted authorization scope
     [Documentation]    Test ID: 10.3.1.5.10
    ...    Test title: PUT Particular Version of an individual policy with not permitted authorization scope
    ...    Test objective: The objective is to test that the PUT method fails to transfer the content of a particular version of an individual policy when a not permitted authorization scope is used..
    ...    Pre-conditions: none
    ...    Reference: Clause 5.5.6.3.3 - 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
    PUT Particular Version of an Individual Policy with not permitted authorization scope
    Check HTTP Response Status Code Is    401