aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dcaegen2-collectors-restconf/testcases/resources/dcae_keywords.robot
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dcaegen2-collectors-restconf/testcases/resources/dcae_keywords.robot')
-rw-r--r--tests/dcaegen2-collectors-restconf/testcases/resources/dcae_keywords.robot23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/dcaegen2-collectors-restconf/testcases/resources/dcae_keywords.robot b/tests/dcaegen2-collectors-restconf/testcases/resources/dcae_keywords.robot
new file mode 100644
index 00000000..172210f6
--- /dev/null
+++ b/tests/dcaegen2-collectors-restconf/testcases/resources/dcae_keywords.robot
@@ -0,0 +1,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}