Commit a733b78f authored by Najam UI Hassan's avatar Najam UI Hassan
Browse files

templating, minor fix and new testcases added

parent 9b3f09f9
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -34,7 +34,6 @@ POST Change deployment flavour of a vnfInstance Conflict (Not-Instantiated)
    Check HTTP Response Status Code Is    409
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails
  
  
  
POST Change deployment flavour of a vnfInstance Not Found
POST Change deployment flavour of a vnfInstance Not Found
    # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
    # TODO: Need to create a vnfInstance which's instantiatedVnfInfo.scaleStatus is absent
    [Documentation]    Test ID: 7.3.1.6.3
    [Documentation]    Test ID: 7.3.1.6.3
@@ -49,7 +48,6 @@ POST Change deployment flavour of a vnfInstance Not Found
    Check HTTP Response Status Code Is    404
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails
       
       
    
GET Change deployment flavour VNFInstance - Method not implemented
GET Change deployment flavour VNFInstance - Method not implemented
    [Documentation]    Test ID: 7.3.1.6.4
    [Documentation]    Test ID: 7.3.1.6.4
    ...    Test title: GET Change deployment flavour VNFInstance - Method not implemented
    ...    Test title: GET Change deployment flavour VNFInstance - Method not implemented
+7 −7
Original line number Original line Diff line number Diff line
@@ -16,7 +16,7 @@ POST Heal a vnfInstance
    ...    Reference: Clause 5.4.9.3.1 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Reference: Clause 5.4.9.3.1 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    POST Heal VNF
    POST Heal VNF
    Check HTTP Response Status Code Is    202
    Check HTTP Response Status Code Is    202
    Check Operation Occurrence Id existence
    Check Operation Occurrence Id existence
@@ -30,7 +30,7 @@ POST Heal a vnfInstance Conflict (Not-Instantiated)
    ...    Reference: Clause 5.4.9.3.1 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Reference: Clause 5.4.9.3.1 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    POST Heal VNF
    POST Heal VNF
    Check HTTP Response Status Code Is    409
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is    ProblemDetails 
    Check HTTP Response Body Json Schema Is    ProblemDetails 
@@ -45,7 +45,7 @@ POST Heal a vnfInstance Not Found
    ...    Reference: Clause 5.4.9.3.1 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Reference: Clause 5.4.9.3.1 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    POST Heal VNF
    POST Heal VNF
    Check HTTP Response Status Code Is    404
    Check HTTP Response Status Code Is    404
    Check HTTP Response Body Json Schema Is    ProblemDetails 
    Check HTTP Response Body Json Schema Is    ProblemDetails 
@@ -59,7 +59,7 @@ GET Heal VNFInstance - Method not implemented
    ...    Reference: Clause 5.4.9.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Reference: Clause 5.4.9.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none 
    GET Heal VNF  
    GET Heal VNF  
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


@@ -71,7 +71,7 @@ PUT Heal VNFInstance - Method not implemented
    ...    Reference: Clause 5.4.9.3.3 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Reference: Clause 5.4.9.3.3 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions:
    ...    Post-Conditions: none
    PUT Heal VNF  
    PUT Heal VNF  
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


@@ -83,7 +83,7 @@ PATCH Heal VNFInstance - Method not implemented
    ...    Reference: Clause 5.4.9.3.4 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Reference: Clause 5.4.9.3.4 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions:
    ...    Post-Conditions: none
    PATCH Heal VNF  
    PATCH Heal VNF  
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    
    
@@ -95,7 +95,7 @@ DELETE Heal VNFInstance - Method not implemented
    ...    Reference: Clause 5.4.9.3.5 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Reference: Clause 5.4.9.3.5 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions:
    ...    Post-Conditions: none
    DELETE Heal VNF  
    DELETE Heal VNF  
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405


+12 −0
Original line number Original line Diff line number Diff line
@@ -68,6 +68,18 @@ DELETE an individual subscription
    Delete Individual subscription
    Delete Individual subscription
	Check HTTP Response Status Code Is    405
	Check HTTP Response Status Code Is    405
	
	
GET Individual Subscription - Not Found
    [Documentation]    Test ID: 7.3.1.18.6
    ...    Test title: GET Individual Subscription - Not Found
    ...    Test objective: The objective is to test the retrieval of individual subscription fails when subscription is not present
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.19.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none 
    Get Individual Subscription
    Check HTTP Response Status Code Is    404

*** Keywords ***
*** Keywords ***
Check resource existence
Check resource existence
    Set Headers    {"Accept":"${ACCEPT}"}  
    Set Headers    {"Accept":"${ACCEPT}"}  
+23 −11
Original line number Original line Diff line number Diff line
@@ -20,8 +20,8 @@ Post Individual VNFInstance - Method not implemented
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.3.3.1 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Reference: Clause 5.4.3.3.1 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    POST individual vnfInstance
    POST individual vnfInstance
	Check HTTP Response Status Code Is    405
	Check HTTP Response Status Code Is    405


@@ -32,8 +32,8 @@ Get Information about an individual VNF Instance
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.3.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Reference: Clause 5.4.3.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    GET individual vnfInstance
    GET individual vnfInstance
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    vnfInstance
    Check HTTP Response Body Json Schema Is    vnfInstance
@@ -45,8 +45,8 @@ PUT Individual VNFInstance - Method not implemented
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.3.3.3 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Reference: Clause 5.4.3.3.3 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: 
    ...    Post-Conditions: none
    PUT individual vnfInstance
    PUT individual vnfInstance
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    
    
@@ -57,7 +57,7 @@ PATCH Individual VNFInstance
    ...    Pre-conditions: an existing VNF instance resource
    ...    Pre-conditions: an existing VNF instance resource
    ...    Reference: Clause 5.4.3.3.4 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Reference: Clause 5.4.3.3.4 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: VNFInstance modified
    ...    Post-Conditions: VNFInstance modified
    PATCH individual vnfInstance
    PATCH individual vnfInstance
    Check HTTP Response Status Code Is    202
    Check HTTP Response Status Code Is    202
@@ -70,7 +70,7 @@ PATCH Individual VNFInstance Precondition failed
    ...    Pre-conditions:  ETag mismatch
    ...    Pre-conditions:  ETag mismatch
    ...    Reference: Clause 5.4.3.3.4 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Reference: Clause 5.4.3.3.4 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: VNFInstance not modified
    ...    Post-Conditions: VNFInstance not modified
    PATCH individual vnfInstance
    PATCH individual vnfInstance
    Check HTTP Response Status Code Is    412
    Check HTTP Response Status Code Is    412
@@ -83,7 +83,7 @@ PATCH Individual VNFInstance Conflict
    ...    Pre-conditions: another LCM operation is ongoing
    ...    Pre-conditions: another LCM operation is ongoing
    ...    Reference: Clause 5.4.3.3.4 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Reference: Clause 5.4.3.3.4 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: VNFInstance not modified
    ...    Post-Conditions: VNFInstance not modified
    PATCH individual vnfInstance
    PATCH individual vnfInstance
    Check HTTP Response Status Code Is    409
    Check HTTP Response Status Code Is    409
@@ -96,7 +96,7 @@ DELETE Individual VNFInstance
    ...    Pre-conditions: the VNF instance resource is existing
    ...    Pre-conditions: the VNF instance resource is existing
    ...    Reference: Clause 5.4.3.3.5 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Reference: Clause 5.4.3.3.5 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: VNFInstance deleted
    ...    Post-Conditions: VNFInstance deleted
    DELETE individual vnfInstance
    DELETE individual vnfInstance
    Check HTTP Response Status Code Is    204
    Check HTTP Response Status Code Is    204
@@ -108,13 +108,25 @@ DELETE Individual VNFInstance Conflict
    ...    Pre-conditions: VNF instance resource is in INSTANTIATED state
    ...    Pre-conditions: VNF instance resource is in INSTANTIATED state
    ...    Reference: Clause 5.4.3.3.5 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Reference: Clause 5.4.3.3.5 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: 
    ...    Applicability: none
    ...    Post-Conditions: Resources are not deleted
    ...    Post-Conditions: Resources are not deleted
    DELETE individual vnfInstance
    DELETE individual vnfInstance
    Check HTTP Response Status Code Is    409
    Check HTTP Response Status Code Is    409
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check HTTP Response Body Json Schema Is    ProblemDetails
    Check resource existence
    Check resource existence
    
    
Get Information about an individual VNF Instance - Not Found
     [Documentation]    Test ID: 7.3.1.2.9
    ...    Test title: Get Information about an individual VNF Instance - Not Found
    ...    Test objective: The objective is to test that the retrieval of an individual VNF Instance fails when instance is not present.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.3.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Post-Conditions: none
    GET individual vnfInstance
    Check HTTP Response Status Code Is    404
    
*** Keywords ***
*** Keywords ***
Check resource existence
Check resource existence
    Set Headers    {"Accept":"${ACCEPT}"}  
    Set Headers    {"Accept":"${ACCEPT}"}  
+14 −12
Original line number Original line Diff line number Diff line
@@ -19,16 +19,16 @@ Post Individual VNF LCM Operation occurrences - Method not implemented
    Post Individual VNF LCM Operation occurrences
    Post Individual VNF LCM Operation occurrences
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    
    
Get information about multiple VNF instances 
Get Individual VNF LCM Operation occurrences
    [Documentation]    Test ID: 7.3.1.12.2
    [Documentation]    Test ID: 7.3.1.12.2
    ...    Test title: Get information about multiple VNF instances
    ...    Test title: Get Individual VNF LCM Operation occurrences
    ...    Test objective: The objective is to test that this method retrieve information about a VNF lifecycle management operation occurrence 
    ...    Test objective: The objective is to test that this method retrieve information about a VNF lifecycle management operation occurrence 
    ...    Pre-conditions: none
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.13.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Reference: Clause 5.4.13.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
    ...    Config ID: Config_prod_VNFM
    ...    Config ID: Config_prod_VNFM
    ...    Applicability: none
    ...    Applicability: none
    ...    Post-Conditions: none 
    ...    Post-Conditions: none 
    Get multiple VNF instances
    Get Individual VNF LCM Operation occurrences
    Check HTTP Response Status Code Is    200
    Check HTTP Response Status Code Is    200
    Check HTTP Response Body Json Schema Is    VnfLcmOpOcc 
    Check HTTP Response Body Json Schema Is    VnfLcmOpOcc 


@@ -68,12 +68,14 @@ PATCH Individual VNF LCM Operation occurrences - Method not implemented
    Delete multiple VNF instances
    Delete multiple VNF instances
    Check HTTP Response Status Code Is    405
    Check HTTP Response Status Code Is    405
    
    
*** Keywords ***
Get Individual VNF LCM Operation occurrences - Not Found
Get multiple VNF instances	
    [Documentation]    Test ID: 7.3.1.12.6
    Log    Query status information about multiple VNF lifecycle management operation occurrences.
    ...    Test title: Get Individual VNF LCM Operation occurrences - Not Found
    Set Headers  {"Accept":"${ACCEPT}"}  
    ...    Test objective: The objective is to test that the retrieval of VNF lifecycle management operation occurrence fails when instance is not present. 
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ...    Pre-conditions: none
    Log    Execute Query and validate response
    ...    Reference: Clause 5.4.13.3.2 - ETSI GS NFV-SOL 003 [1] v2.6.1
    Get    ${apiRoot}/${apiName}/${apiVersion}/vnf_lcm_op_occs/${vnfLcmOpOccId}
    ...    Config ID: Config_prod_VNFM
    ${outputResponse}=    Output    response
    ...    Applicability: none
	Set Global Variable    ${response}    ${outputResponse}	
    ...    Post-Conditions: none 
 No newline at end of file
    Get Individual VNF LCM Operation occurrences
    Check HTTP Response Status Code Is    404 
 No newline at end of file
Loading