Commit f5bfed6c authored by Giacomo Bernini's avatar Giacomo Bernini
Browse files

upd lcm workflows

parent 3a5608ff
Loading
Loading
Loading
Loading
+12 −12
Original line number Original line Diff line number Diff line
@@ -16,24 +16,25 @@ Suite Teardown Terminate All Processes kill=true




*** Test Cases ***
*** Test Cases ***
Scale out a VNF Instance
Change VNF Flavour
    [Documentation]    Test ID: 5.x.y.x
    [Documentation]    Test ID: 5.4.7.1
    ...    Test title: Change VNF Flavour Operation
    ...    Test title: Change VNF Flavour Workflow
    ...    Test objective: The objective is to test a change flavour operation of an existing VNF instance
    ...    Test objective: The objective is to test the workflow for a change flavour of an existing VNF instance
    ...    Pre-conditions: VNF instance in INSTANTIATED state (Test ID: 5.a.b.c)
    ...    Pre-conditions: VNF instance in INSTANTIATED state (Test ID: 5.4.4.1). NFVO is subscribed to VNF LCM Operation Occurrence notifications (Test ID: 5.4.20.1)
    ...    Reference: section 5.3.3 - SOL003 v2.4.1
    ...    Reference: section 5.4.7 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: change flavour operation is supported for the VNF (as capability in the VNFD)
    ...    Applicability: Multiple flavours are supported for the VNF (as capability in the VNFD). NFVO is able to receive notifications from VNFM
    ...    Post-Conditions: VNF instance still in INSTANTIATED state and the flavour is changed
    ...    Post-Conditions: VNF instance still in INSTANTIATED state and the flavour is changed
    Send VNF Scale Out Request
    Send Change VNF Flavour Request
    Check HTTP Response Status Code Is    202
    Check HTTP Response Status Code Is    202
    Check HTTP Response Header Contains    Location 
    Check HTTP Response Header Contains    Location 
    Check Operation Occurrence Id
    Check Operation Occurrence Id
    Check Operation Notification For Change Flavour    STARTING
    Check Operation Notification For Change Flavour    STARTING
    Create a new Grant - Sync - CHANGE_FLAVOUR
    Check Operation Notification For Change Flavour    PROCESSING
    Check Operation Notification For Change Flavour    PROCESSING
    Check Operation Notification For Change Flavour    COMPLETED
    Check Operation Notification For Change Flavour    COMPLETED
    Check Postcondition VNF    CHANGE_FLAVOUR
    Check Postcondition VNF Flavor Changed
    
#Create a new Grant Sync - CHANGE_FLAVOU Scale REMOVED


*** Keywords ***
*** Keywords ***


@@ -48,8 +49,7 @@ Precondition Checks
    ${LccnSubscriptions}=    Check subscriptions about one VNFInstance and operation type    ${vnfInstanceId}    VnfLcmOperationOccurrenceNotification    operationType=SCALE
    ${LccnSubscriptions}=    Check subscriptions about one VNFInstance and operation type    ${vnfInstanceId}    VnfLcmOperationOccurrenceNotification    operationType=SCALE
    ${scaleInfo}=    Get Vnf Scale Info        ${vnfInstanceId}
    ${scaleInfo}=    Get Vnf Scale Info        ${vnfInstanceId}


Check Postcondition VNF
Check Postcondition VNF Flavor Changed
    [Arguments]    ${operation}
    Check resource instantiated
    Check resource instantiated
    ${newFlavour}=    Get Vnf Flavour Info    ${vnfInstanceId}
    ${newFlavour}=    Get Vnf Flavour Info    ${vnfInstanceId}
    Should be Equal    ${requestedFlavour}    ${newFlavour}
    Should be Equal    ${requestedFlavour}    ${newFlavour}
+17 −20
Original line number Original line Diff line number Diff line
@@ -16,35 +16,32 @@ Suite Teardown Terminate All Processes kill=true




*** Test Cases ***
*** Test Cases ***
Create a VNF Instance
Create VNF Instance Resource
    [Documentation]    Test ID: 5.x.y.x
    [Documentation]    Test ID: 5.3.1.1
    ...    Test title: Create a VNF instance procedure
    ...    Test title: Create VNF Instance workflow
    ...    Test objective: The objective is to test the procedure for the creation of a VNF instance resource.
    ...    Test objective: The objective is to test the workflow for the creation of a new VNF instance resource.
    ...    Pre-conditions: 
    ...    Pre-conditions: NFVO is subscribed to VNF Identifier Creation notifications (Test ID: 5.4.20.2)
    ...    Reference: section 5.3.1 - SOL003 v2.4.1; section
    ...    Reference: section 5.4.2 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: NFVO is able to receive notifications from VNFM
    ...    NFVO is not subscribed for
    ...    Post-Conditions: The VNF instance resource has been created in "NOT_INSTANTIATED" state.
    ...    Post-Conditions: upon successful completion, the VNF instance resource has been created in "NOT_INSTANTIATED" state.
    Send VNF Instance Resource create Request
    Send VNF create Request
    Check HTTP Response Status Code Is    201
    Check HTTP Response Status Code Is    201
    Check HTTP Response Header Contains    Location 
    Check HTTP Response Header Contains    Location 
    Check Operation Notification For Create   VnfIdentifierCreationNotification
    Check Operation Notification For VNF Instance Creation
    Check Postcondition VNF    CREATE
    Check Postcondition VNF Instance Created  NOT_INSTANTIATED


*** Keywords ***
*** Keywords ***


Initialize System
Initialize System
    Create Sessions
    Create Sessions


Check Postcondition VNF
Check Postcondition VNF Instance Created
    [Arguments]    ${operation}
    [Arguments]    ${status}
    Check VNF Instance    ${vnfInstanceId}
    Check VNF Instance    ${vnfInstanceId}
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check VNF Status    ${response.body.instantiationState}    NOT_INSTANTIATED
    Check VNF Status    ${response.body.instantiationState}  ${status}  
     
     
Check Operation Notification For Create
Check Operation Notification For VNF Instance Creation
    [Arguments]    ${element}
    Check VNF Instance Operation Notification    VnfIdentifierCreationNotification   ${vnfInstanceId}
    ${json}=	Get File	schemas/${element}.schema.json
    Configure Notification Handler    ${notification_ep}       
    
    
 No newline at end of file
+14 −18
Original line number Original line Diff line number Diff line
@@ -16,32 +16,28 @@ Suite Teardown Terminate All Processes kill=true




*** Test Cases ***
*** Test Cases ***
Create a VNF Instance
Delete VNF Instance Resource
    [Documentation]    Test ID: 5.x.y.x
    [Documentation]    Test ID: 5.3.2.1
    ...    Test title: Delete a VNF instance procedure
    ...    Test title: Delete VNF Instance workflow
    ...    Test objective: The objective is to test the procedure for the deletion of a VNF instance resource.
    ...    Test objective: The objective is to test the workflow for the deleteion of an existing VNF instance resource
    ...    Pre-conditions: The resource representing the VNF instance to be deleted needs to be in NOT_INSTANTIATED state
    ...    Pre-conditions: The VNF Instance resource is in NOT_INSTANTIATED state. NFVO is subscribed to VNF Identifier Creation notifications (Test ID: 5.4.20.2)
    ...    Reference: section 5.3.2 - SOL003 v2.4.1
    ...    Reference: section 5.3.2 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: NFVO is able to receive notifications from VNFM
    ...    Post-Conditions: The resource representing the VNF instance has been removed from the list of VNF instance resources
    ...    Post-Conditions: The VNF instance resource is deleted on the VNFM.
    Send VNF delete Request
    Send VNF Instance Resource delete Request
    Check HTTP Response Status Code Is    204 
    Check HTTP Response Status Code Is    204 
    Check Operation Notification For Create   VnfIdentifierDeletionNotification
    Check Operation Notification For VNF Instance Deletion 
    Check Postcondition VNF    DELETE
    Check Postcondition VNF Instance Deleted


*** Keywords ***
*** Keywords ***


Initialize System
Initialize System
    Create Sessions
    Create Sessions


Check Postcondition VNF
Check Postcondition VNF Instance Deleted
    [Arguments]    ${operation}
    Check VNF Instance    ${vnfInstanceId}
    Check VNF Instance    ${vnfInstanceId}
    Check HTTP Response Status Code Is    404
    Check HTTP Response Status Code Is    404


Check Operation Notification For Create
Check Operation Notification For VNF Instance Deletion
    [Arguments]    ${element}
    Check VNF Instance Operation Notification    VnfIdentifierDeletionNotification   ${vnfInstanceId}
    ${json}=	Get File	schemas/${element}.schema.json
 No newline at end of file
    Configure Notification Handler    ${notification_ep}       
    
 No newline at end of file
+6 −6
Original line number Original line Diff line number Diff line
@@ -18,13 +18,13 @@ Library REST ${VNFM_SCHEMA}://${VNFM_HOST}:${VNFM_PORT}


*** Test Cases ***
*** Test Cases ***
VNF Instantiation
VNF Instantiation
    [Documentation]    Test ID: 5.x.y.x
    [Documentation]    Test ID: 5.4.4.1
    ...    Test title: VNF Instantiation
    ...    Test title: VNF Instantiation worflow
    ...    Test objective: The objective is to test the instantiation of a VNF instance
    ...    Test objective: The objective is to test the workflow for the instantiation of a VNF instance
    ...    Pre-conditions: VNF instance resources is created (Test ID: 5.a.b.c)
    ...    Pre-conditions: VNF instance resources is already created (Test ID: 5.4.2.1). NFVO is subscribed to VNF LCM Operation Occurrence notifications (Test ID: 5.4.20.1)
    ...    Reference: section 5.x.y - SOL003 v2.4.1
    ...    Reference: section 5.4.4 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: VNFM is in direct mode
    ...    Applicability:  NFVO is able to receive notifications from VNFM
    ...    Post-Conditions: VNF instance in INSTANTIATED state
    ...    Post-Conditions: VNF instance in INSTANTIATED state
    Send VNF Instantiation Request
    Send VNF Instantiation Request
    Check HTTP Response Status Code Is    202
    Check HTTP Response Status Code Is    202
+12 −12
Original line number Original line Diff line number Diff line
@@ -16,25 +16,25 @@ Suite Teardown Terminate All Processes kill=true




*** Test Cases ***
*** Test Cases ***
Scale out a VNF Instance
VNF Instance Scale To Level
    [Documentation]    Test ID: 5.x.y.x
   [Documentation]    Test ID: 5.4.6.1
    ...    Test title: Scale out VNF operation
    ...    Test title: VNF Instance Scale To Level worflow
    ...    Test objective: The objective is to test a scale out of an existing VNF instance
    ...    Test objective: The objective is to test the workflow for the scale to level of a VNF instance
    ...    Pre-conditions: VNF instance in INSTANTIATED state (Test ID: 5.a.b.c)
    ...    Pre-conditions: VNF instance in INSTANTIATED state (Test ID: 5.4.4.1). NFVO is subscribed to VNF LCM Operation Occurrence notifications (Test ID: 5.4.20.1)
    ...    Reference: section 5.4.5 - SOL003 v2.4.1
    ...    Reference: section 5.4.6 - SOL003 v2.4.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: Scale operation is supported for the VNF (as capability in the VNFD)
    ...    Applicability:  NFVO is able to receive notifications from VNFM. Scale operation is supported for the VNF (as capability in the VNFD)
    ...    NFVO is not subscribed for
    ...    Post-Conditions: VNF instance still in INSTANTIATED state and VNF is scaled to the new level
    ...    Post-Conditions: VNF instance still in INSTANTIATED state and VNF was scaled
    Send VNF Scale To Level Request
    Send VNF Scale To Level Request
    Check HTTP Response Status Code Is    202
    Check HTTP Response Status Code Is    202
    Check HTTP Response Header Contains    Location 
    Check HTTP Response Header Contains    Location 
    Check Operation Occurrence Id
    Check Operation Occurrence Id
    Check Operation Notification For Scale   STARTING
    Check Operation Notification For Scale   STARTING
    Create a new Grant - Sync - ScaleToLevel
    Check Operation Notification For Scale    PROCESSING
    Check Operation Notification For Scale    PROCESSING
    Check Operation Notification For Scale    COMPLETED
    Check Operation Notification For Scale    COMPLETED
    Check Postcondition VNF    
    Check Postcondition VNF Scaled To New Level  

#Create a new Grant - Sync - Scale REMOVED


*** Keywords ***
*** Keywords ***


@@ -45,7 +45,7 @@ Initialize System
    ${instantiationLevelId}=    Get Value From Json    ${scaleVnfToLevelRequest}    $..instantiationLevelId    #How to use this info to get the instantiation scale level?
    ${instantiationLevelId}=    Get Value From Json    ${scaleVnfToLevelRequest}    $..instantiationLevelId    #How to use this info to get the instantiation scale level?
    ${scaleInfo}=    Get Value From Json    ${scaleVnfToLevelRequest}    $..scaleInfo
    ${scaleInfo}=    Get Value From Json    ${scaleVnfToLevelRequest}    $..scaleInfo


Check Postcondition VNF
Check Postcondition VNF Scaled To New Level
    Check resource instantiated
    Check resource instantiated
    ${newScaleInfo}=    Get Vnf Scale Info    ${vnfInstanceId}
    ${newScaleInfo}=    Get Vnf Scale Info    ${vnfInstanceId}
    Compare ScaleInfos    ${scaleInfo}    ${newScaleInfo}  
    Compare ScaleInfos    ${scaleInfo}    ${newScaleInfo}  
Loading