aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dcaegen2-collectors-restconf/testcases/resources/dcae_keywords.robot
blob: 172210f6a251511df83bb6646a7f04a5f70c2937 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
*** Settings ***
Documentation     The main interface for interacting with DCAE. It handles low level stuff like managing the http request library and DCAE required fields
Library         RequestsLibrary
Library           DcaeLibrary   
Library           OperatingSystem
Library           Collections
Resource          ../resources/dcae_properties.robot

*** Variables ***
${DCAE_HEALTH_CHECK_BODY}    %{WORKSPACE}/tests/dcae/testcases/assets/json_events/dcae_healthcheck.json

*** Keywords ***
Create rcc sessions
    [Documentation]  Create all required sessions
    Create Session    dcae_rcc_url    ${RCC_URL}
    Set Suite Variable    ${suite_dcae_rcc_url_session}    dcae_rcc_url
    ${auth}=  Create List  ${RCC_HTTPS_USER}   ${RCC_HTTPS_PD}
    Create Session    dcae_rcc_url_https    ${RCC_URL_HTTPS}  auth=${auth}  disable_warnings=1
    Set Suite Variable    ${suite_dcae_rcc_url_https_session}    dcae_rcc_url_https

Create rcc header
    ${headers}=    Create Dictionary    Content-Type=application/json
    Set Suite Variable    ${suite_headers}    ${headers}