Commit afc6032a authored by Frank Bryden's avatar Frank Bryden
Browse files

Introduced new NSLCM test to test the creation


of an NS with a disabled NSD.

Signed-off-by: default avatarFrank Bryden <Frank.Bryden@etsi.org>
parent aacc11c9
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -2,7 +2,7 @@
${NFVO_HOST}    172.21.248.145    # Hostname of the NFVO
${NFVO_HOST}    172.21.248.145    # Hostname of the NFVO
${NFVO_PORT}    9999    # Listening port of the NFVO
${NFVO_PORT}    9999    # Listening port of the NFVO
${NFVO_SCHEMA}    https
${NFVO_SCHEMA}    https
${AUTHORIZATION}    Bearer lTxE0BXRcVPjlIUwHLVH5Dtjl39sZ9qp 
${AUTHORIZATION}    Bearer u5JGp5D3k7m1VUlrCa39k8WX15em149q 
${CONTENT_TYPE_JSON}    application/json
${CONTENT_TYPE_JSON}    application/json
${ACCEPT_JSON}    application/json
${ACCEPT_JSON}    application/json
${apiRoot}        /osm/
${apiRoot}        /osm/
@@ -14,7 +14,7 @@ ${FIELD_USAGE} 1
${NFVO_AUTHENTICATION}    Bearer isDGF7TiifGUgzeNb0Fls9aatfZRy4iX #never referenced
${NFVO_AUTHENTICATION}    Bearer isDGF7TiifGUgzeNb0Fls9aatfZRy4iX #never referenced
${NFVO_AUTH_USAGE}    1 #never refernced
${NFVO_AUTH_USAGE}    1 #never refernced


${MOCK_SERVER_JAR}    ../../bin/mockserver-netty-5.5.0-jar-with-dependencies.jar
${MOCK_SERVER_JAR}    ../../../bin/mockserver-netty-5.5.0-jar-with-dependencies.jar


${callback_port}    9091
${callback_port}    9091
${callback_uri}    http://172.22.1.7:${callback_port}
${callback_uri}    http://172.22.1.7:${callback_port}
+11 −1
Original line number Original line Diff line number Diff line
@@ -24,4 +24,14 @@ NS Instance Creation
    Check HTTP Response Body Json Schema Is    NsIdentifierCreationNotification
    Check HTTP Response Body Json Schema Is    NsIdentifierCreationNotification
    Check resource not_instantiated
    Check resource not_instantiated
    
    
    
NS Instance Creation with DISABLED nsd
 No newline at end of file
    [Documentation]    Test ID: 5.3.2.18.2
    ...    Test title: NS Instance Creation with DISABLED nsd
    ...    Test objective: The objective is to test the workflow for Creating a NS instance with a disabled NSD
    ...    Pre-conditions: One or more Network Service Descriptors are onboarded in the NFVO in disabled operational state.
    ...    Reference: Clauses 6.4.2.3.1 and 5.4.3.3.4 - ETSI GS NFV-SOL 005 [3] v2.6.1
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none
    POST New nsInstance with DISABLED nsd
    Check HTTP Response Status Code Is    409
 No newline at end of file
+11 −0
Original line number Original line Diff line number Diff line
@@ -223,6 +223,17 @@ POST New nsInstance
    ${outputResponse}=    Output    response
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}     
	Set Global Variable    ${response}    ${outputResponse}     


POST New nsInstance with DISABLED nsd
    Log    Create NS instance by POST to ${apiRoot}/${apiName}/${apiVersion}/ns_instances
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Content-Type": "${CONTENT_TYPE}"}
    Run Keyword If    ${AUTH_USAGE} == 1    Set Headers    {"Authorization":"${AUTHORIZATION}"}
    ${template}=    Get File    jsons/CreateNsRequest.json 
    ${body}=        Format String   ${template}     nsdId=${disabledNsdId}   nsInstanceName=${nsInstanceName}   vimAccountId=${vimAccountId}   nsInstanceDescription=${nsInstanceDescription}
    Post    ${apiRoot}/${apiName}/${apiVersion}/ns_instances    ${body}
    ${outputResponse}=    Output    response
	Set Global Variable    ${response}    ${outputResponse}  

GET NsInstances
GET NsInstances
    Log    Query NS The GET method queries information about multiple NS instances.
    Log    Query NS The GET method queries information about multiple NS instances.
    Set Headers  {"Accept":"${ACCEPT}"}  
    Set Headers  {"Accept":"${ACCEPT}"}  
+2 −1
Original line number Original line Diff line number Diff line
@@ -6,7 +6,7 @@ ${NFVO_PORT} 9999 # Listening port of the NFVO
${VNFM_SCHEMA}    https
${VNFM_SCHEMA}    https
${NFVO_SCHEMA}    https
${NFVO_SCHEMA}    https


${AUTHORIZATION}    Bearer    RW6sV6rtFa3TUEdazW4Dyd66muED2kBA
${AUTHORIZATION}    Bearer    v1qDEucqjIZSua6t4R40sraMZafJxEKb
${CONTENT_TYPE}    application/json
${CONTENT_TYPE}    application/json
${CONTENT_TYPE_PATCH}    application/merge-patch+json
${CONTENT_TYPE_PATCH}    application/merge-patch+json
${ACCEPT_JSON}         application/json
${ACCEPT_JSON}         application/json
@@ -17,6 +17,7 @@ ${apiVersion} v1
${AUTH_USAGE}     1
${AUTH_USAGE}     1
${WRONG_AUTHORIZATION}    Bearer    XXXXXWRONGXXXXX
${WRONG_AUTHORIZATION}    Bearer    XXXXXWRONGXXXXX
${nsdId}                9e708376-4f96-4972-89c2-243760626f20
${nsdId}                9e708376-4f96-4972-89c2-243760626f20
${disabledNsdId}        9e708376-4f96-4972-89c2-243760626f20
${nsInstanceId}         bef2ab38-d117-4f29-bb07-0b02508575a9
${nsInstanceId}         bef2ab38-d117-4f29-bb07-0b02508575a9
${ConflictNsInstanceId}    007c111c-e602-4afa-8e13-962fb5a7d81d
${ConflictNsInstanceId}    007c111c-e602-4afa-8e13-962fb5a7d81d
${nsInstanceName}    Test-nsInstance
${nsInstanceName}    Test-nsInstance