From cb75097bcd353161aa91fdbf420ec92d01e31ec1 Mon Sep 17 00:00:00 2001 From: demskeq8 Date: Wed, 2 Jun 2021 15:50:12 +0200 Subject: [SNDC-CSIT] Provide test deployment for SDNC/R Integration tests for wt feature set Issue-ID: SDNC-1562 Signed-off-by: demskeq8 Change-Id: If579b6f23b3e6291dc49b10952b23da2626e45b7 Former-commit-id: c15899f037944cabbcdee16460427b0f813599c3 --- .../tests/sdnr/healthcheck/20_healthcheckSUT.robot | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot (limited to 'csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot') 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 + -- cgit 1.2.3-korg