Commit 83a69dbc authored by Muhammad Umair Khan's avatar Muhammad Umair Khan Committed by Giacomo Bernini
Browse files

implement oauth scope for SOL003 VNFPackageManagement API

parent 57bd0155
Loading
Loading
Loading
Loading
+29 −1
Original line number Diff line number Diff line
@@ -94,3 +94,31 @@ DELETE Individual VNF Package Subscription
    Send Delete request for individual VNF Package Subscription
    Check HTTP Response Status Code Is    204
    Check Postcondition VNF Package Subscription is Deleted

GET Individual VNF Package Subscription with permitted authorization scope
    [Documentation]    Test ID: 7.3.3.7.1
    ...    Test title: GET Individual VNF Package Subscription with permitted authorization scope
    ...    Test objective: The objective is to test the retrieval of individual VNF package subscription and perform a JSON schema and content validation of the returned subscription data structure with permitted authorization scope
    ...    Pre-conditions: At least one VNF package subscription is available in the NFVO.
    ...    Reference: Clause 10.4.8.3.2 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Individual VNF Package Subscription with permitted authorization scope
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   PkgmSubscription
    Check HTTP Response Body Subscription Identifier matches the requested Subscription
    Check HTTP Response Body of Individual Subscription content against VNF Descriptor

GET Individual VNF Package Subscription with not permitted authorization scope
    [Documentation]    Test ID: 7.3.3.7.1
    ...    Test title: GET Individual VNF Package Subscription with not permitted authorization scope
    ...    Test objective: The objective is to test the retrieval of individual VNF package subscription and perform a JSON schema and content validation of the returned subscription data structure with not permitted authorization scope
    ...    Pre-conditions: At least one VNF package subscription is available in the NFVO.
    ...    Reference: Clause 10.4.8.3.2 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Individual VNF Package Subscription with not permitted authorization scope
    Check HTTP Response Status Code Is    403
    Check HTTP Response Body Json Schema Is   ProblemDetails
+29 −1
Original line number Diff line number Diff line
@@ -157,3 +157,31 @@ DELETE Individual OnBoarded VNF Package - Method not implemented
    ...    Post-Conditions: none
    Send DELETE Request for individual OnBoarded VNF Package
    Check HTTP Response Status Code Is    405

GET Individual VNF Package with permitted authorization scope
    [Documentation]    Test ID: 7.3.3.2.13
    ...    Test title: GET Individual VNF Package with permitted authorization scope
    ...    Test objective: The objective is to test the retrieval of an individual VNF package information perform a JSON schema validation of the collected data structure with permitted authorization scope
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
    ...    Reference: Clause 10.4.3.3.2 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual VNF Package with permitted authorization scope
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is   vnfPkgInfo
    Check HTTP Response Body vnfPkgInfo Identifier matches the requested VNF Package
    Check HTTP Response Body of Individual VNF Package content against VNF Descriptor

GET Individual VNF Package with not permitted authorization scope
    [Documentation]    Test ID: 7.3.3.2.14
    ...    Test title: GET Individual VNF Package with not permitted authorization scope
    ...    Test objective: The objective is to test the retrieval of an individual VNF package information perform a JSON schema validation of the collected data structure with not permitted authorization scope
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
    ...    Reference: Clause 10.4.3.3.2 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual VNF Package with not permitted authorization scope
    Check HTTP Response Status Code Is    403
    Check HTTP Response Body Json Schema Is   ProblemDetails
+26 −1
Original line number Diff line number Diff line
@@ -357,3 +357,28 @@ GET Individual OnBoarded VNF Package Artifact - Not Acceptable
    GET Individual OnBoarded VNF Package Artifact with incompatable header
    Check HTTP Response Status Code Is    406
    Check HTTP Response Body Json Schema Is   ProblemDetails

GET Individual VNF Package Artifact with permitted authorization scope
    [Documentation]    Test ID: 7.3.3.5.29
    ...    Test title: GET Individual VNF Package Artifact with permitted authorization scope
    ...    Test objective: The objective is to test the retrieval of an individual VNF package artifact with permitted authorization scope
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
    ...    Reference: Clause 10.4.6.3.2 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual VNF Package Artifact with permitted authorization scope
    Check HTTP Response Status Code Is    200

GET Individual VNF Package Artifact with not permitted authorization scope
    [Documentation]    Test ID: 7.3.3.5.30
    ...    Test title: GET Individual VNF Package Artifact with not permitted authorization scope
    ...    Test objective: The objective is to test the retrieval of an individual VNF package artifact with not permitted authorization scope
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
    ...    Reference: Clause 10.4.6.3.2 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    GET Individual VNF Package Artifact with not permitted authorization scope
    Check HTTP Response Status Code Is    403
    Check HTTP Response Body Json Schema Is   ProblemDetails
+27 −1
Original line number Diff line number Diff line
@@ -206,3 +206,29 @@ DELETE Manifest in Individual OnBoarded VNF Package - Method not implemented
    ...    Post-Conditions: Resource is not deleted by the failed operation
    Send DELETE Request for Manifest in individual OnBoarded VNF Package
    Check HTTP Response Status Code Is    405

Get Manifest in Individual VNF Package with permitted authorization scope 
    [Documentation]    Test ID: 7.3.3.10.17
    ...    Test title: Get Manifest in Individual VNF Package with permitted authorization scope 
    ...    Test objective: The objective is to test that the Get request read the content of manifest within a NVF Package and perform a validation that returned content is in plain text format with permitted authorization scope 
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
    ...    Reference: Clause 10.4.4a.3.2 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Manifest in Individual VNF Package with permitted authorization scope
    Check HTTP Response Status Code Is    200
    Check HTTP Response Header Content-Type Is    text/plain

Get Manifest in Individual VNF Package with not permitted authorization scope 
    [Documentation]    Test ID: 7.3.3.10.18
    ...    Test title: Get Manifest in Individual VNF Package with not permitted authorization scope 
    ...    Test objective: The objective is to test that the Get request read the content of manifest within a NVF Package and perform a validation that returned content is in plain text format with not permitted authorization scope 
    ...    Pre-conditions: One or more VNF packages are onboarded in the NFVO.
    ...    Reference: Clause 10.4.4a.3.2 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    Get Manifest in Individual VNF Package with not permitted authorization scope
    Check HTTP Response Status Code Is    403
    Check HTTP Response Body Json Schema Is   ProblemDetails
+28 −0
Original line number Diff line number Diff line
@@ -198,3 +198,31 @@ Get VNF Package Subscriptions - Unprocessable Content
    Get all VNF Package Subscriptions
    Check HTTP Response Status Code Is    422
    Check HTTP Response Body Json Schema Is   ProblemDetails

Create new VNF Package subscription with permitted authorization scope
    [Documentation]    Test ID: 7.3.3.6.14
    ...    Test title: Create new VNF Package subscription with permitted authorization scope
    ...    Test objective: The objective is to test the creation of a new VNF package subscription and perform a JSON schema and content validation of the returned subscription data structure with permitted authorization scope
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.7.3.1 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The VNF package subscription is successfully set and it matches the issued subscription    
    Send Post Request for VNF Package Subscription with permitted authorization scope
    Check HTTP Response Status Code Is    201
    Check HTTP Response Body Json Schema Is    PkgmSubscription
    Check HTTP Response Body PkgmSubscription Attributes Values Match the Issued Subscription
    Check Postcondition VNF Package Subscription Is Set

Create new VNF Package subscription with not permitted authorization scope
    [Documentation]    Test ID: 7.3.3.6.15
    ...    Test title: Create new VNF Package subscription with not permitted authorization scope
    ...    Test objective: The objective is to test the creation of a new VNF package subscription and perform a JSON schema and content validation of the returned subscription data structure with not permitted authorization scope
    ...    Pre-conditions: none
    ...    Reference: Clause 10.4.7.3.1 - ETSI GS NFV-SOL 003 [1] v4.5.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: The VNF package subscription is successfully set and it matches the issued subscription    
    Send Post Request for VNF Package Subscription with not permitted authorization scope
    Check HTTP Response Status Code Is    403
    Check HTTP Response Body Json Schema Is   ProblemDetails
 No newline at end of file
Loading