Commit d00e0af0 authored by Michele Carignani's avatar Michele Carignani
Browse files

fix partially SOL005 NS LCM NotificationEndpoint

parent 3668ac55
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -17,10 +17,15 @@ NS LCM Operation Occurrence Start Notification
    ...    Config ID: Config_prod_NFVO
    ...    Applicability: none
    ...    Post-Conditions: none 
    # Evaluate    pdb.Pdb(stdout=sys.__stdout__).set_trace()    modules=sys, pdb
    Trigger a NS LCM operation (external action) 
    Log   1
    Check NS LCM Operation Occurrence Start Notification Http POST Request Body Json Schema Is    NsLcmOperationOccurrenceNotification
    Log   2
    Check NS LCM Operation Occurrence Start Notification Http POST Request Body notificationType attribute Is    NsLcmOperationOccurrenceNotification
    Log   3
    Check NS LCM Operation Occurrence Start Notification Http POST Request Body notificationStatus attribute Is    START
    Log   4
    
NS LCM Operation Occurrence Result Notification
    [Documentation]    Test ID: 5.3.2.17.2
@@ -98,7 +103,8 @@ Configure Notification NS LCM Operation Occurrence Start Handler
    ${BODY}=    evaluate    json.dumps(${json})    json
    Log  Creating mock request and response to handle status notification
    &{notification_request}=  Create Mock Request Matcher	POST  ${endpoint}  body_type="JSON"    body=${BODY}
    &{notification_response}=  Create Mock Response	headers="Content-Type: application/json"  status_code=204
    &{headers}=  Create Dictionary  "Content-Type"="application/json"
    &{notification_response}=  Create Mock Response	204     headers=${headers}
    Create Mock Expectation  ${notification_request}  ${notification_response}

Check NS LCM Operation Occurrence Result Notification Http POST Request Body Json Schema Is