Commit fc67dbbd authored by AHMADABB's avatar AHMADABB
Browse files

Individual Subs Virtualised Resources Quota Available Notification Edits

parent e1f9b184
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
/.project
/.project
/.pydevproject
/red.xml
+20 −18
Original line number Original line Diff line number Diff line
@@ -13,60 +13,62 @@ Suite Setup Check Individual Subscription existance
Post Individual Subscription - Method not implemented
Post Individual Subscription - Method not implemented
    [Documentation]    Test ID: 7.3.7.2.1
    [Documentation]    Test ID: 7.3.7.2.1
    ...    Test title: Post Individual Subscription - Method not implemented
    ...    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 individual subscription instance on NFV 
    ...    Test objective: The objective is to test that POST method is not allowed to create a new Virtualised Resources Quota Available Notification individual subscription instance on VNF 
    ...    Pre-conditions: A NFV instance is instantiated
    ...    Pre-conditions: A VNF instance is instantiated
    ...    Reference:  section 11.4.3.3.1 - SOL003 v2.4.1
    ...    Reference:  section 11.4.3.3.1 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    Do Post Individual Subscription
    Send Post request for Virtualised Resources Quota Available Notification Individual Subscription
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


Get Information about an individual subscription
Get Information about an individual subscription
    [Documentation]    Test ID: 7.3.7.2.2
    [Documentation]    Test ID: 7.3.7.2.2
    ...    Test title: Get Information about an individual subscription
    ...    Test title: Get Information about an individual subscription
    ...    Test objective: The objective is to read an individual subscription subscribed by the client
    ...    Test objective: The objective is to read an individual Virtualised Resources Quota Available Notification subscription subscribed by the client and perform a JSON schema and content validation of the returned individual subscription data structure 
    ...    Pre-conditions: The subscription with the given id exists
    ...    Pre-conditions: The subscription with the given id exists
    ...    Reference: section 11.4.3.3.2 - SOL003 v2.4.1
    ...    Reference: section 11.4.3.3.2 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none 
    ...    Applicability: none 
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    Do Get individual subscription
    Get Virtualised Resources Quota Available Notification individual subscription
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    VrQuotaAvailSubscription.schema.json
    Check HTTP Response Body Json Schema Is    VrQuotaAvailSubscription


PUT an individual subscription - Method not implemented
PUT an individual subscription - Method not implemented
    [Documentation]    Test ID: 7.3.7.2.3
    [Documentation]    Test ID: 7.3.7.2.3
    ...    Test title: Put Individual Subscription - Method not implemented
    ...    Test title: PUT an individual subscription - Method not implemented
    ...    Test objective: The objective is to test that PUT method is not allowed to update a existing individual subscription instance on NFV 
    ...    Test objective: The objective is to test that PUT method is not allowed to update a existing Virtualised Resources Quota Available Notification individual subscription instance on VNF 
    ...    Pre-conditions: A NFV instance is instantiated
    ...    Pre-conditions: A VNF instance is instantiated
    ...    Reference:  section 11.4.3.3.3 - SOL003 v2.4.1
    ...    Reference:  section 11.4.3.3.3 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    Do Put Individual Subscription
    Put Virtualised Resources Quota Available Notification individual Subscription
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


PATCH an individual subscription - Method not implemented
PATCH an individual subscription - Method not implemented
    [Documentation]    Test ID: 7.3.7.2.4
    [Documentation]    Test ID: 7.3.7.2.4
    ...    Test title: Patch Individual Subscription - Method not implemented
    ...    Test title: PATCH an individual subscription - Method not implemented
    ...    Test objective: The objective is to test that PATCH method is not allowed to modify a existing individual subscription instance on NFV 
    ...    Test objective: The objective is to test that PATCH method is not allowed to modify a existing Virtualised Resources Quota Available Notification individual subscription instance on VNF 
    ...    Pre-conditions: A NFV instance is instantiated
    ...    Pre-conditions: A VNF instance is instantiated
    ...    Reference:  section 11.4.3.3.4 - SOL003 v2.4.1
    ...    Reference:  section 11.4.3.3.4 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    Do Patch Individual Subscription
    Patch Virtualised Resources Quota Available Notification individual subscription
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    
    
DELETE an individual subscription
DELETE an individual subscription
        [Documentation]    Test ID: 7.3.7.2.5
        [Documentation]    Test ID: 7.3.7.2.5
    ...    Test title: Delete an Individual Subscription
    ...    Test title: DELETE an individual subscription
    ...    Test objective: The objective is to test that Delete method is allowed to remove a existing individual subscription instance on NFV 
    ...    Test objective: The objective is to test that Delete method is allowed to remove a existing Virtualised Resources Quota Available Notification individual subscription instance on VNF  
    ...    Pre-conditions: The subscription with the given id exists
    ...    Pre-conditions: The subscription with the given id exists
    ...    Reference:  section 11.4.3.3.5 - SOL003 v2.4.1
    ...    Reference:  section 11.4.3.3.5 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none
    ...    Post-Conditions: none
    Do Delete an individual subscription 
    Delete Virtualised Resources Quota Available Notification individual subscription
    Check HTTP Response Status Code Is    204
    Check HTTP Response Status Code Is    204
    Check Postcondition VNF Virtualised Resources Quota Available Notification individual Subscriptions is Deleted
    
 No newline at end of file
+14 −9
Original line number Original line Diff line number Diff line
@@ -47,7 +47,12 @@ Check Postcondition VNF Virtualised Resources Quota Available Notification Subsc
    Log    Checking that subscriptions exists
    Log    Checking that subscriptions exists
    GET Virtualised Resources Quota Available Notification Subscriptions
    GET Virtualised Resources Quota Available Notification Subscriptions
      
      
Do Post Individual Subscription
Check Postcondition VNF Virtualised Resources Quota Available Notification individual Subscriptions is Deleted
    Log    Check Postcondition Subscription is deleted
    Get Virtualised Resources Quota Available Notification individual subscription
    Check HTTP Response Status Code Is    404 
    
Send Post request for Virtualised Resources Quota Available Notification Individual Subscription
    log    Trying to perform a POST. This method should not be implemented
    log    Trying to perform a POST. This method should not be implemented
    Set Headers  {"Accept":"${ACCEPT}"}
    Set Headers  {"Accept":"${ACCEPT}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
@@ -55,7 +60,7 @@ Do Post Individual Subscription
    ${outputResponse}=    Output    response 
    ${outputResponse}=    Output    response 
    Set Global Variable    @{response}    ${outputResponse}
    Set Global Variable    @{response}    ${outputResponse}
    
    
Do Put Individual Subscription
Put Virtualised Resources Quota Available Notification individual Subscription
    log    Trying to perform a PUT. This method should not be implemented
    log    Trying to perform a PUT. This method should not be implemented
    Set Headers  {"Accept":"${ACCEPT}"}
    Set Headers  {"Accept":"${ACCEPT}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
@@ -63,7 +68,7 @@ Do Put Individual Subscription
    ${outputResponse}=    Output    response 
    ${outputResponse}=    Output    response 
    Set Global Variable    @{response}    ${outputResponse}
    Set Global Variable    @{response}    ${outputResponse}
    
    
Do Patch Individual Subscription
Patch Virtualised Resources Quota Available Notification individual subscription
    log    Trying to perform a Patch. This method should not be implemented
    log    Trying to perform a Patch. This method should not be implemented
    Set Headers  {"Accept":"${ACCEPT}"}
    Set Headers  {"Accept":"${ACCEPT}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
@@ -71,7 +76,7 @@ Do Patch Individual Subscription
    ${outputResponse}=    Output    response 
    ${outputResponse}=    Output    response 
    Set Global Variable    @{response}    ${outputResponse}
    Set Global Variable    @{response}    ${outputResponse}
    
    
Do Get individual subscription
Get Virtualised Resources Quota Available Notification individual subscription 
    log    Trying to get information about an individual subscription
    log    Trying to get information about an individual subscription
    Set Headers    {"Accept":"${ACCEPT}"}  
    Set Headers    {"Accept":"${ACCEPT}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
@@ -79,7 +84,7 @@ Do Get individual subscription
    ${outputResponse}=    Output    response 
    ${outputResponse}=    Output    response 
    Set Global Variable    @{response}    ${outputResponse}
    Set Global Variable    @{response}    ${outputResponse}
      
      
Do Delete an individual subscription
Delete Virtualised Resources Quota Available Notification individual subscription
    log    Try to delete an individual subscription
    log    Try to delete an individual subscription
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Accept":"${ACCEPT}"}  
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
+1 −1
Original line number Original line Diff line number Diff line
@@ -142,7 +142,7 @@ Check HTTP Response Body Json Schema Is
Check HTTP Response Header ContentType is
Check HTTP Response Header ContentType is
    [Arguments]    ${expected_contentType}
    [Arguments]    ${expected_contentType}
    Log    Validate content type
    Log    Validate content type
    Should Be Equal    ${response[0]['headers']['Content-Type']}    ${expected_contentType}
    Should Be Equal as Strings   ${response[0]['headers']['Content-Type']}    ${expected_contentType}
    Log    Content Type validated 
    Log    Content Type validated 


Do POST New nsInstance
Do POST New nsInstance