1941e35700806255d329d677e8f08e92e0dc44c1
[integration/csit.git] / tests / sdc-dcae-d / dcaed / monitoring_configuration_service_test.robot
1 *** Settings ***
2 Resource          sdc_interface.robot
3 Resource          sdc_dcaed_interface.robot
4
5 *** Test Cases ***
6 # This test case implements the steps described in
7 # https://wiki.onap.org/display/DW/How+to+Create+a+Service+with+a+Monitoring+Configuration+using+SDC
8 Create Service With Monitoring Configuration Test
9     [Tags]  sdc-dcae-d
10     [Documentation]   Create a service with a monitoring configuration
11
12     ${unique_postfix}=  sdc_interface.Generate Unique Postfix
13     ${test_vf_name}=   Set Variable   TestVF_${unique_postfix}
14     ${test_cs_name}=   Set Variable   TestService_${unique_postfix}
15     ${test_vfcmt_name}=   Set Variable   TestVFCMT_${unique_postfix}
16     ${test_mc_name}=   Set Variable   TestMC_${unique_postfix}
17
18     ${cert_vf_unique_id}    ${cert_vf_uuid}   sdc_interface.Onboard DCAE Microservice   ${test_vf_name}
19     ${cert_vfcmt_uuid}   sdc_dcaed_interface.Create Monitoring Template   ${test_vfcmt_name}   ${cert_vf_uuid}
20     ${cs_unique_id}   ${cs_uuid}    ${vfi_name}   sdc_interface.Create Monitoring Configuration   ${test_cs_name}   ${cert_vf_unique_id}   ${test_vf_name}
21     sdc_dcaed_interface.Create Monitoring Configuration To DCAE-DS   ${cert_vfcmt_uuid}   ${cs_uuid}    ${vfi_name}    ${test_mc_name}
22     sdc_interface.Certify And Approve SDC Catalog Service    ${cs_unique_id}