diff options
author | 2022-04-28 16:14:09 +0000 | |
---|---|---|
committer | 2022-04-28 16:43:53 +0000 | |
commit | 9d8ae6d68ea8427052ec45326e22f3a2ea7ed081 (patch) | |
tree | aa20199a924275a7b48eb508001bc143385bc7d7 /csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot | |
parent | 427fac36830315046ac811cadde056fabb8c60f9 (diff) |
Refactore SDNC/R robot test suite for K-Release
add improvements SDNC ready state detection
Issue-ID: SDNC-1682
Signed-off-by: Alexander Dehn <alexander.dehn@highstreet-technologies.com>
Change-Id: I6b9829b5187f9c27ff9c2fab6b9a7381ce563b25
Former-commit-id: 83da3b4380d992d5891ed8e35b305358db9af4ff
Diffstat (limited to 'csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot')
-rw-r--r-- | csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot b/csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot index e11fbf03..2d29c9f0 100644 --- a/csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot +++ b/csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot @@ -1,44 +1,44 @@ -*** 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
- should be true ${server_status}
-
-Test Is SDNRDB Available
- ${es_version_info}= Get Sdnrdb 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
-
-Test Is VES Collector available
- # curl -k -u sample1:sample1 https://172.40.0.1:8443
- ${auth}= Create List ${VESCOLLECTOR}[USERNAME] ${VESCOLLECTOR}[PASSWORD]
- ${IPV6_ENABLED}= Get Variable Value ${ENABLE_IPV6} ${False}
- Log To Console ${VESCOLLECTOR}[SCHEME]://[${VESCOLLECTOR}[IP]]:${VESCOLLECTOR}[PORT]
- IF ${IPV6_ENABLED} != ${True}
- RequestsLibrary.Create Session alias=ves url=${VESCOLLECTOR}[SCHEME]://${VESCOLLECTOR}[IP]:${VESCOLLECTOR}[PORT] headers=${headers} auth=${auth}
- ELSE
- RequestsLibrary.Create Session alias=ves url=${VESCOLLECTOR}[SCHEME]://[${VESCOLLECTOR}[IP]]:${VESCOLLECTOR}[PORT] headers=${headers} auth=${auth}
- END
- ${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
-
+*** 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 + should be true ${server_status} + +Test Is SDNRDB Available + ${es_version_info}= Get Sdnrdb 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 + +Test Is VES Collector available + # curl -k -u sample1:sample1 https://172.40.0.1:8443 + ${auth}= Create List ${VESCOLLECTOR}[USERNAME] ${VESCOLLECTOR}[PASSWORD] + ${IPV6_ENABLED}= Get Variable Value ${ENABLE_IPV6} ${False} + Log To Console ${VESCOLLECTOR}[SCHEME]://[${VESCOLLECTOR}[IP]]:${VESCOLLECTOR}[PORT] + IF ${IPV6_ENABLED} != ${True} + RequestsLibrary.Create Session alias=ves url=${VESCOLLECTOR}[SCHEME]://${VESCOLLECTOR}[IP]:${VESCOLLECTOR}[PORT] headers=${headers} auth=${auth} + ELSE + RequestsLibrary.Create Session alias=ves url=${VESCOLLECTOR}[SCHEME]://[${VESCOLLECTOR}[IP]]:${VESCOLLECTOR}[PORT] headers=${headers} auth=${auth} + END + ${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 + |