Commit 084ceee2 authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

Setup robot script mockserver

parent c75dc334
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ import json
publisher_ops = Publisher()

class RedisEvent():
    def __init__(self, event, information, event_detail_key="invocationLogs") -> None:
    def __init__(self, event, information, event_detail_key) -> None:
        self.redis_event={
            "event": event,
            "key": event_detail_key,
+4 −1
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ ROBOT_DOCKER_FILE_FOLDER=$REPOSITORY_BASE_FOLDER/tools/robot
CAPIF_HOSTNAME=capifcore
CAPIF_HTTP_PORT=8080
CAPIF_HTTPS_PORT=443
MOCK_SERVER_URL=http://mockserver:9090

echo "HOSTNAME = $CAPIF_HOSTNAME"
echo "CAPIF_HTTP_PORT = $CAPIF_HTTP_PORT"
@@ -45,8 +46,10 @@ docker run -ti --rm --network="host" \
    --add-host host.docker.internal:host-gateway \
    --add-host vault:host-gateway \
    --add-host register:host-gateway \
    --add-host mockserver:host-gateway \
    -v $TEST_FOLDER:/opt/robot-tests/tests \
    -v $RESULT_FOLDER:/opt/robot-tests/results ${DOCKER_ROBOT_IMAGE}:${DOCKER_ROBOT_IMAGE_VERSION}  \
    --variable CAPIF_HOSTNAME:$CAPIF_HOSTNAME \
    --variable CAPIF_HTTP_PORT:$CAPIF_HTTP_PORT \
    --variable CAPIF_HTTPS_PORT:$CAPIF_HTTPS_PORT $@
    --variable CAPIF_HTTPS_PORT:$CAPIF_HTTPS_PORT \
    --variable MOCK_SERVER_URL:$MOCK_SERVER_URL $@