aboutsummaryrefslogtreecommitdiffstats
path: root/csit/tests
diff options
context:
space:
mode:
authorHerbert Eiselt <herbert.eiselt@highstreet-technologies.com>2021-07-20 13:53:16 +0000
committerGerrit Code Review <gerrit@onap.org>2021-07-20 13:53:16 +0000
commit0bb4a58d0710eb065e9df2ba1c739990d8932a38 (patch)
treeac25d3e6c9294fc01688efc209af113c98955b11 /csit/tests
parent3f0cf04efd86ee181e2358488390b408a2e1b4d3 (diff)
parentcb75097bcd353161aa91fdbf420ec92d01e31ec1 (diff)
Merge "[SNDC-CSIT] Provide test deployment for SDNC/R"
Former-commit-id: c3ff30e996b138db0cf25789ca734fc189c395b5
Diffstat (limited to 'csit/tests')
-rw-r--r--csit/tests/sdnr/functional/dummy.robot10
-rw-r--r--csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot39
2 files changed, 49 insertions, 0 deletions
diff --git a/csit/tests/sdnr/functional/dummy.robot b/csit/tests/sdnr/functional/dummy.robot
new file mode 100644
index 00000000..13687861
--- /dev/null
+++ b/csit/tests/sdnr/functional/dummy.robot
@@ -0,0 +1,10 @@
+*** Settings ***
+Documentation Dummy test case for debugging purposes
+
+Library BuiltIn
+
+
+*** Test Cases ***
+Dummy Test
+ [Documentation] dummy test case passing by intention
+ Pass Execution Passed dummy Test for setup debugging purposes
diff --git a/csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot b/csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot
new file mode 100644
index 00000000..dd3364c7
--- /dev/null
+++ b/csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot
@@ -0,0 +1,39 @@
+*** Settings ***
+Documentation healthcheck of system under test: sdnc server, sdnrdb are available
+Library ConnectLibrary
+Library SDNCBaseLibrary
+Library Collections
+Library ElasticSearchLibrary
+Library ConnectApp
+Library RequestsLibrary
+
+Suite Setup global suite setup &{GLOBAL_SUITE_SETUP_CONFIG}
+Suite Teardown global suite teardown
+
+*** Variables ***
+&{headers} Content-Type=application/json Authorization=Basic
+
+*** Test Cases ***
+Test Is SDNR Node Available
+ ${server_status}= server is ready ${SDNR_PROTOCOL}${SDNR_HOST} ${SDNR_PORT}
+ should be true ${server_status}
+
+Test Is SDNRDB Available
+ ${es_version_info}= get elastic search version info as dict
+ ${length_of_response}= get length ${es_version_info}
+ should be true ${length_of_response}>${0}
+
+Test Is SDNRDB Initialized
+ ${res}= check aliases
+ Log ${res} level=INFO html=False console=False repr=False
+ Run Keyword If not ${res} Fatal Error
+
+Test Is VES Collector available
+ # curl -k -u sample1:sample1 https://172.40.0.1:8443
+ ${auth}= Create List ${VESCOLLECTOR}[USERNAME] ${VESCOLLECTOR}[PASSWORD]
+ RequestsLibrary.Create Session alias=ves url=${VESCOLLECTOR}[SCHEME]://${VESCOLLECTOR}[IP]:${VESCOLLECTOR}[PORT] headers=${headers} auth=${auth}
+ ${resp}= RequestsLibrary.GET On Session ves /
+ Should Be Equal As Strings ${resp.text} Welcome to VESCollector
+ Should Be Equal As Strings ${resp.status_code} 200
+ RequestsLibrary.Delete All Sessions
+