X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=tests%2Fso%2Fintegration-cnfm-testing%2Fcnf_package_onboarding_tests.robot;fp=tests%2Fso%2Fintegration-cnfm-testing%2Fcnf_package_onboarding_tests.robot;h=004d2c2e8c2ecfcadcc03faf60a11cd470d2bb75;hb=c638f49099852aa68959846cba1d414d24e404ae;hp=0000000000000000000000000000000000000000;hpb=7aff12430db9c19b931880ab8e14660b3ea8694c;p=integration%2Fcsit.git diff --git a/tests/so/integration-cnfm-testing/cnf_package_onboarding_tests.robot b/tests/so/integration-cnfm-testing/cnf_package_onboarding_tests.robot new file mode 100644 index 00000000..004d2c2e --- /dev/null +++ b/tests/so/integration-cnfm-testing/cnf_package_onboarding_tests.robot @@ -0,0 +1,17 @@ +*** Settings *** +Library Collections +Library RequestsLibrary +Library OperatingSystem + +*** Variables *** +${BASIC_AUTH}= Basic bXNvX2FkbWluOnBhc3N3b3JkMSQ= +${DISTRIBUTE_SERVICE_TEMPLATE}= ${CURDIR}${/}data${/}distributeCnfServiceTemplate.json +${RESOURCE_LOCATION}= /distribution-test-zip/unzipped/ +*** Test Cases *** + +Distribute Service Template Containing ASD + Create Session sdc_controller_session http://${REPO_IP}:8085 + ${data}= Get Binary File ${DISTRIBUTE_SERVICE_TEMPLATE} + &{headers}= Create Dictionary Authorization=${BASIC_AUTH} resource-location=${RESOURCE_LOCATION} Content-Type=application/json Accept=application/json + ${resp}= Post On Session sdc_controller_session /test/treatNotification/v1 data=${data} headers=${headers} + Should Be Equal As Strings '${resp.status_code}' '200'