aboutsummaryrefslogtreecommitdiffstats
path: root/csit/tests/sdnr
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2022-03-23 18:47:22 -0400
committerdemskeq8 <alexander.dehn@highstreet-technologies.com>2022-03-28 18:45:14 +0200
commit7958c38cea5c9402709a330030aa487062673c2d (patch)
tree28ab03ccca3374ff2550e3c1103c9d262d167bc5 /csit/tests/sdnr
parent9a9516fbf6945f5289b9c631d0882643537430fb (diff)
Migrate to phosphorus
Update to phosphorus version of parent poms Issue-ID: SDNC-1681 Signed-off-by: Dan Timoney <dtimoney@att.com> Change-Id: If84bf1b6cf061886d2df303a5614dfcaa9d517c9 Signed-off-by: Michael DÜrre <michael.duerre@highstreet-technologies.com> Signed-off-by: highstreetherbert <herbert.eiselt@highstreet-technologies.com> Signed-off-by: demskeq8 <alexander.dehn@highstreet-technologies.com> Former-commit-id: 6e7661adfeb903ad85f6f02fe57ef3990b55ed7e
Diffstat (limited to 'csit/tests/sdnr')
-rw-r--r--csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot83
1 files changed, 44 insertions, 39 deletions
diff --git a/csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot b/csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot
index dd3364c7..e11fbf03 100644
--- a/csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot
+++ b/csit/tests/sdnr/healthcheck/20_healthcheckSUT.robot
@@ -1,39 +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 ${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
-
+*** 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
+