Commit bfd8bdb5 authored by Mudassar Khan's avatar Mudassar Khan Committed by Giacomo Bernini
Browse files

implement POST Create a new vnfinstance for not Enabled stated of vnfd as per Tacker feedback ap 6

parent 4200f153
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -253,3 +253,16 @@ POST Create a new vnfInstance with not permitted authorization scope
    POST Create a new vnfInstance with not permitted authorization scope
    Check HTTP Response Status Code Is    403
    Check HTTP Response Body Json Schema Is    ProblemDetails

POST Create a new vnfInstance - UNPROCESSABLE CONTENT
    [Documentation]    Test ID: 7.3.1.1.19
    ...    Test title: POST Create a new vnfInstance - UNPROCESSABLE CONTENT
    ...    Test objective: The objective is to test that a new VNF instance resource is not created when vnfdId of the referenced VNF package is not in ENABLED state or does not exist.
    ...    Pre-conditions: none
    ...    Reference: Clause 5.4.2.3.1 - ETSI GS NFV-SOL 003 [2] v5.1.1
    ...    Config ID: Config_prod_VE
    ...    Applicability: vnfdId of the referenced VNF package is not in ENABLED state or does not exist.
    ...    Post-Conditions: VNF instance not created
    POST Create a new vnfInstance with Invalid vnfdId
    Check HTTP Response Status Code Is    422
    Check HTTP Response Body Json Schema Is    ProblemDetails    
 No newline at end of file
+13 −1
Original line number Diff line number Diff line
@@ -3071,3 +3071,15 @@ POST instantiate individual vnfInstance - Unauthorized
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances/${vnfInstanceId}/instantiate    ${body}	
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse} 

POST Create a new vnfInstance with Invalid vnfdId   
    Log    Create VNF instance by POST to ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances with invalid vnfdId
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Version": "${API_VERSION}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Set Headers    {"${AUTHORIZATION_HEADER}":"${AUTHORIZATION_TOKEN}"}
    ${template} =    Get File    jsons/createVnfRequest.json
    ${body}=        Format String   ${template}     vnfdId=${invalidVnfdId}
    Post    ${apiRoot}/${apiName}/${apiMajorVersion}/vnf_instances    ${body}
    ${outputResponse}=    Output    response
    Set Global Variable    ${response}    ${outputResponse}    
+1 −0
Original line number Diff line number Diff line
@@ -65,6 +65,7 @@ ${CancelMode} GRACEFUL
${VNFM_DUPLICATION}    0

${invalid_etag}    invalid etag
${invalidVnfdId}    vnfdId-in-DISABLED-state-or-DNE

${SYNC_MODE}    0