X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=tests%2Fso%2Fsanity-check%2Fmacroflow.robot;fp=tests%2Fso%2Fsanity-check%2Fmacroflow.robot;h=cd3a5b55a20cd25129fe864c43ba5980b018466c;hb=03a107d9254ca0e1fbbf63f2ab5b7f14f1af63f3;hp=149797a19752e43a94cf0e9f2c8a169de2342d97;hpb=07f0edf35f1ebbbe5642c19ad840fa076d9dff8c;p=integration%2Fcsit.git diff --git a/tests/so/sanity-check/macroflow.robot b/tests/so/sanity-check/macroflow.robot index 149797a1..cd3a5b55 100644 --- a/tests/so/sanity-check/macroflow.robot +++ b/tests/so/sanity-check/macroflow.robot @@ -4,12 +4,26 @@ Library RequestsLibrary Library OperatingSystem Library json +*** Variables *** +${SLEEP_INTERVAL_SEC}= 60 + *** Test Cases *** -Healthcheck - [Documentation] Runs AAI SIMULATOR Health check - Create Session aai_simulator_session https://${REPO_IP}:9993 - &{headers}= Create Dictionary Accept=text/plain - ${resp}= Get Request aai_simulator_session /aai/v19/healthcheck headers=${headers} - log to console Received response from AAI SIMULATOR ${resp.text} +Distribute Service Template + Create Session sdc_controller_session http://${REPO_IP}:8085 + ${data}= Get Binary File ${CURDIR}${/}data${/}serviceBasicVfCnfnotification.json + &{headers}= Create Dictionary Authorization=Basic bXNvX2FkbWluOnBhc3N3b3JkMSQ= resource-location=/distribution-test-zip/unzipped/ Content-Type=application/json Accept=application/json + ${resp}= Post Request sdc_controller_session /test/treatNotification/v1 data=${data} headers=${headers} + Log To Console Received status code: ${resp.status_code} + Run Keyword If '${resp.status_code}' == '200' log to console \nexecuted with expected result Should Be Equal As Strings '${resp.status_code}' '200' - Should Be Equal As Strings '${resp.text}' 'healthy' + + +Macroflow + Create Session api_handler_session http://${REPO_IP}:8080 + ${data}= Get Binary File ${CURDIR}${/}data${/}macroflow.json + &{headers}= Create Dictionary Authorization=Basic SW5mcmFQb3J0YWxDbGllbnQ6cGFzc3dvcmQxJA== Content-Type=application/json Accept=application/json + ${service_instantiation_request}= Post Request api_handler_session /onap/so/infra/serviceInstantiation/v7/serviceInstances data=${data} headers=${headers} + Log To Console Received status code: ${service_instantiation_request.status_code} + Run Keyword If '${service_instantiation_request.status_code}' == '202' log to console \nexecuted with expected result + Should Be Equal As Strings '${service_instantiation_request.status_code}' '202' + SLEEP ${SLEEP_INTERVAL_SEC}s