Commit 832314df authored by Afonso Castanheta's avatar Afonso Castanheta
Browse files

Fix failling tests

parent 54e3b831
Loading
Loading
Loading
Loading
Loading
+32 −8
Original line number Diff line number Diff line
@@ -97,11 +97,11 @@ Update Not Onboarded Network App
    ...    username=${INVOKER_USERNAME}

    # Check Results
    Check Response Variable Type And Values    ${resp}    404    ProblemDetails
    ...    status=404
    ...    title=Not Found
    Check Response Variable Type And Values    ${resp}    401    ProblemDetails
    ...    status=401
    ...    title=Unauthorized
    ...    detail=Please provide an existing Network App ID
    ...    cause=Not exist Network App ID
    ...    cause=Certificate not found for invoker

Offboard Network App
    [Tags]    capif_api_invoker_management-5
@@ -131,11 +131,11 @@ Offboard Not Previously Onboarded Network App
    ...    username=${INVOKER_USERNAME}

    # Check Results
    Check Response Variable Type And Values    ${resp}    404    ProblemDetails
    ...    status=404
    ...    title=Not Found
    Check Response Variable Type And Values    ${resp}    401    ProblemDetails
    ...    status=401
    ...    title=Unauthorized
    ...    detail=Please provide an existing Network App ID
    ...    cause=Not exist Network App ID
    ...    cause=Certificate not found for invoker

Update Onboarded Network App Certificate
    [Tags]    capif_api_invoker_management-7
@@ -183,6 +183,30 @@ Update Onboarded Network App Certificate
    Check Response Variable Type And Values    ${resp}    200    APIInvokerEnrolmentDetails
    ...    notificationDestination=${new_notification_destination}

    #Revert to old invoker username and certificate
    ${csr_request_old}=    Create User Csr    ${INVOKER_USERNAME}    invoker

    ${old_onboarding_notification_body}=    Create Onboarding Notification Body
    ...    http://${CAPIF_CALLBACK_IP}:${CAPIF_CALLBACK_PORT}/netapp_callback
    ...    ${csr_request_old}
    ...    ${INVOKER_USERNAME_NEW}

    Set To Dictionary
    ...    ${request_body}
    ...    onboardingInformation=${old_onboarding_notification_body['onboardingInformation']}

    ${resp}=    Put Request Capif
    ...    ${url.path}
    ...    ${request_body}
    ...    server=${CAPIF_HTTPS_URL}
    ...    verify=ca.crt
    ...    username=${INVOKER_USERNAME_NEW}

    Check Response Variable Type And Values    ${resp}    200    APIInvokerEnrolmentDetails

    Store In File    ${INVOKER_USERNAME}.crt    ${resp.json()['onboardingInformation']['apiInvokerCertificate']}
    

Onboard invoker without supported_features
    [Tags]    capif_api_invoker_management-8
    # Default Invoker Registration and Onboarding