RestConfCollector CSIT test cases
[integration/csit.git] / tests / dcaegen2-collectors-restconf / testcases / resources / dcae_keywords.robot
1 *** Settings ***
2 Documentation     The main interface for interacting with DCAE. It handles low level stuff like managing the http request library and DCAE required fields
3 Library               RequestsLibrary
4 Library           DcaeLibrary   
5 Library           OperatingSystem
6 Library           Collections
7 Resource          ../resources/dcae_properties.robot
8
9 *** Variables ***
10 ${DCAE_HEALTH_CHECK_BODY}    %{WORKSPACE}/tests/dcae/testcases/assets/json_events/dcae_healthcheck.json
11
12 *** Keywords ***
13 Create rcc sessions
14     [Documentation]  Create all required sessions
15     Create Session    dcae_rcc_url    ${RCC_URL}
16     Set Suite Variable    ${suite_dcae_rcc_url_session}    dcae_rcc_url
17     ${auth}=  Create List  ${RCC_HTTPS_USER}   ${RCC_HTTPS_PD}
18     Create Session    dcae_rcc_url_https    ${RCC_URL_HTTPS}  auth=${auth}  disable_warnings=1
19     Set Suite Variable    ${suite_dcae_rcc_url_https_session}    dcae_rcc_url_https
20
21 Create rcc header
22     ${headers}=    Create Dictionary    Content-Type=application/json
23     Set Suite Variable    ${suite_headers}    ${headers}