diff options
author | kaihlavi <l.kaihlavirt@partner.samsung.com> | 2019-08-21 17:42:11 +0300 |
---|---|---|
committer | kaihlavi <l.kaihlavirt@partner.samsung.com> | 2019-08-21 17:42:11 +0300 |
commit | f7f3bf3b67f8c32291ea57f7a083dfd1436d0ee7 (patch) | |
tree | 44a7ee023a7ddf2a0a11b8bf3175c4d52b3dc8fb /tests/sdc-dcae-d/dcaed/dcaed_interface.robot | |
parent | b7045fd2144322b419c899275b2feeafff3f9f65 (diff) |
Adjust SDC-DCAE-DS to integration test changes
Backport improvements made to corresponding integration
test in https://gerrit.onap.org/r/#/c/testsuite/+/92864/ to CSIT
Change-Id: Iadc7463b81a9860f1b625abdaff66a125b4a9c46
Issue-ID: SDC-2480
Signed-off-by: kaihlavi <l.kaihlavirt@partner.samsung.com>
Diffstat (limited to 'tests/sdc-dcae-d/dcaed/dcaed_interface.robot')
-rw-r--r-- | tests/sdc-dcae-d/dcaed/dcaed_interface.robot | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/tests/sdc-dcae-d/dcaed/dcaed_interface.robot b/tests/sdc-dcae-d/dcaed/dcaed_interface.robot deleted file mode 100644 index 481210d1..00000000 --- a/tests/sdc-dcae-d/dcaed/dcaed_interface.robot +++ /dev/null @@ -1,56 +0,0 @@ -*** Settings *** -Library json -Library ONAPLibrary.Utilities -Library ONAPLibrary.SDC WITH NAME SDC -Library ONAPLibrary.Templating WITH NAME Templating -Resource common.robot - -*** Variables *** -${DCAE_PATH} /dcae -${DCAE_CREATE_BLUEPRINT_PATH} /SERVICE/createBluePrint -${DCAE_VFCMT_TEMPLATE} create_vfcmt.jinja -${DCAE_COMPOSITION_TEMPLATE} dcae_composition.jinja -${DCAE_MONITORING_CONFIGURATION_TEMPLATE} dcae_monitoring_configuration.jinja -${DCAE_BE_ENDPOINT} http://localhost:8082 - -*** Keywords *** - -Add VFCMT To DCAE-DS - [Documentation] Create VFCMT with the given name and return its uuid - [Arguments] ${vfcmt_name} - ${map}= Create Dictionary vfcmtName=${vfcmt_name} description=VFCMT created by robot - Create Environment create_vfcmt ${ASSETS_DIR} - ${data}= Apply Template create_vfcmt ${DCAE_VFCMT_TEMPLATE} ${map} - ${resp}= SDC.Run Post Request ${DCAE_BE_ENDPOINT} ${DCAE_PATH}/createVFCMT ${data} ${ASDC_DESIGNER_USER_ID} - Should Be Equal As Strings ${resp.status_code} 200 - [Return] ${resp.json()['uuid']} - -Save Composition - [Arguments] ${vfcmt_uuid} ${vf_uuid} - ${map}= Create Dictionary cid=${vfcmt_uuid} vf_id=${vf_uuid} - Create Environment dcae_composition ${ASSETS_DIR} - ${data}= Apply Template dcae_composition ${DCAE_COMPOSITION_TEMPLATE} ${map} - ${resp}= SDC.Run Post Request ${DCAE_BE_ENDPOINT} ${DCAE_PATH}/saveComposition/${vfcmt_uuid} ${data} ${ASDC_DESIGNER_USER_ID} - Should Be Equal As Strings ${resp.status_code} 200 - -Certify VFCMT - [Arguments] ${vfcmt_uuid} - ${resp}= SDC.Run Put Request ${DCAE_BE_ENDPOINT} ${DCAE_PATH}/certify/vfcmt/${vfcmt_uuid} ${None} ${ASDC_DESIGNER_USER_ID} - Should Be Equal As Strings ${resp.status_code} 200 - [Return] ${resp.json()['uuid']} - -Add Monitoring Configuration To DCAE-DS - [Arguments] ${vfcmt_uuid} ${cs_uuid} ${vfi_name} ${mc_name} - ${map}= Create Dictionary template_uuid=${vfcmt_uuid} service_uuid=${cs_uuid} vfi_name=${vfi_name} name=${mc_name} - Create Environment dcae_monitoring_configuration ${ASSETS_DIR} - ${data}= Apply Template dcae_monitoring_configuration ${DCAE_MONITORING_CONFIGURATION_TEMPLATE} ${map} - ${resp}= SDC.Run Post Request ${DCAE_BE_ENDPOINT} ${DCAE_PATH}/importMC ${data} ${ASDC_DESIGNER_USER_ID} - Should Be Equal As Strings ${resp.status_code} 200 - [Return] ${resp.json()['vfcmt']['uuid']} - -Submit Monitoring Configuration To DCAE-DS - [Arguments] ${mc_uuid} ${cs_uuid} ${vfi_name} - ${url_vfi_name} url_encode_string ${vfi_name} - ${resp}= SDC.Run Post Request ${DCAE_BE_ENDPOINT} ${DCAE_PATH}${DCAE_CREATE_BLUEPRINT_PATH}/${mc_uuid}/${cs_uuid}/${url_vfi_name} ${None} ${ASDC_DESIGNER_USER_ID} - Should Be Equal As Strings ${resp.status_code} 200 - |