[DMAAP] Fix dmaap interface endpoints 17/132817/2
authorefiacor <fiachra.corcoran@est.tech>
Wed, 21 Dec 2022 08:56:10 +0000 (08:56 +0000)
committerAndreas Geissler <andreas-geissler@telekom.de>
Tue, 31 Jan 2023 16:25:13 +0000 (16:25 +0000)
Signed-off-by: efiacor <fiachra.corcoran@est.tech>
Change-Id: I6ed81e4eebdeb4825926a3552b5dec2cd50129f2
Issue-ID: DMAAP-1573

robot/resources/dmaap/bc_interface.robot [moved from robot/resources/bc_interface.robot with 81% similarity]
robot/resources/dmaap/dr_interface.robot [moved from robot/resources/dr_interface.robot with 100% similarity]
robot/resources/dmaap/mr_interface.robot [moved from robot/resources/mr_interface.robot with 100% similarity]

similarity index 81%
rename from robot/resources/bc_interface.robot
rename to robot/resources/dmaap/bc_interface.robot
index 7d4c1fb..b57c67d 100644 (file)
@@ -6,7 +6,7 @@ Resource          global_properties.robot
 
 *** Variables ***
 ${BC_HEALTH_CHECK_PATH}        /webapi/dmaap
-${BC_HTTPS_ENDPOINT}     https://${GLOBAL_INJECTED_BC_IP_ADDR}:${GLOBAL_BC_HTTPS_SERVER_PORT}
+${DMAAP_BC_ENDPOINT}     ${GLOBAL_BC_SERVER_PROTOCOL}://${GLOBAL_INJECTED_BC_IP_ADDR}:${GLOBAL_BC_HTTPS_SERVER_PORT}
 
 
 *** Keywords ***
@@ -20,7 +20,7 @@ Return dmaap details with basic auth
      [Documentation]    Runs Bus Controller get details request with basic authentication
      [Arguments]    ${data_path}
      ${auth}=  Create List     ${GLOBAL_BC_USERNAME}   ${GLOBAL_BC_PASSWORD}
-     ${session}=    Create Session      bs      ${BC_HTTPS_ENDPOINT}    auth=${auth}
+     ${session}=    Create Session      bs      ${DMAAP_BC_ENDPOINT}    auth=${auth}
      ${resp}=   Get Request     bs      ${data_path}
      Log    Received response from bus controller ${resp.text}
      [Return]    ${resp}
@@ -29,7 +29,7 @@ Delete MR topic
     [Documentation]    Runs Bus Controller to remove topic
     [Arguments]    ${data_path}
     ${auth}=  Create List     ${GLOBAL_BC_USERNAME}   ${GLOBAL_BC_PASSWORD}
-    ${session}=    Create Session      bs      ${BC_HTTPS_ENDPOINT}    auth=${auth}
+    ${session}=    Create Session      bs      ${DMAAP_BC_ENDPOINT}    auth=${auth}
     ${resp}=   Delete Request     bs      ${data_path}
     Log    Received response from bus controller ${resp.status_code}
     [Return]    ${resp}
\ No newline at end of file