aboutsummaryrefslogtreecommitdiffstats
path: root/tests/so/integration-cnfm-testing/cnf_package_onboarding_tests.robot
diff options
context:
space:
mode:
Diffstat (limited to 'tests/so/integration-cnfm-testing/cnf_package_onboarding_tests.robot')
-rw-r--r--tests/so/integration-cnfm-testing/cnf_package_onboarding_tests.robot17
1 files changed, 17 insertions, 0 deletions
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'