aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dcaegen2-collectors-restconf/testcases/resources/dcae_keywords.robot
diff options
context:
space:
mode:
authorsharath <sharathkumarboyanapally@gmail.com>2019-04-09 19:52:09 +0530
committerSwarup Nayak <swarup.nayak1@huawei.com>2019-04-09 18:31:38 +0000
commitb0c1f134c62deea91b1f4b242d8562842c77dc53 (patch)
tree885250469b5bc3dbea0159d9a760ae96ee12e81f /tests/dcaegen2-collectors-restconf/testcases/resources/dcae_keywords.robot
parentc257e7baca0f1f9d5f50ec82c7421ef780fc8b84 (diff)
RestConfCollector CSIT test cases
Issue-ID: DCAEGEN2-1055 Change-Id: I70dc5d957e49abc4adcaa5a0ecd5e4c0ca7526dd Signed-off-by: sharath <sharathkumarboyanapally@gmail.com>
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}