Commit 700564f3 authored by kzangeli's avatar kzangeli Committed by Ken Zangelin
Browse files

Install the vendored HttpCtrl, not PyPI's 0.3.3

requirements.txt pinned robotframework-httpctrl==0.3.3 from PyPI, so the vendored copy in
libraries/robotframework-httpctrl/ was never installed: the stub matching fixed in !282, !284 and
!311 never ran, and `Get Request Url Params` - called by six distributed-operation test cases - does
not exist in 0.3.3. Now -e ./libraries/robotframework-httpctrl/.

The ITB image copies the vendored library next to requirements.txt and installs from /tmp: pip
resolves the relative path against the working directory.
parent 86364039
Loading
Loading
Loading
Loading
+3 −1
Changes for itb/robot-processing/Dockerfile: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -20,9 +20,11 @@ RUN apt-get update && apt-get install -y \
    && rm -rf /var/lib/apt/lists/*

COPY requirements.txt /tmp/requirements.txt
COPY libraries/robotframework-httpctrl /tmp/libraries/robotframework-httpctrl

# From /tmp: requirements.txt names the vendored HttpCtrl by a path relative to the working directory
RUN python3 -m venv /opt/venv \
    && /opt/venv/bin/pip install -r /tmp/requirements.txt
    && cd /tmp && /opt/venv/bin/pip install -r /tmp/requirements.txt
        
RUN mkdir -p /opt/robot-tests/working-repo /opt/robot-tests/listeners && \
    chown -R 1000:1000 /opt/robot-tests
+4 −1
Changes for requirements.txt: 4 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -5,6 +5,9 @@ robotframework-requests==0.9.7
deepdiff==8.6.1
prettydiff==0.1.0
paho-mqtt==1.6.1
robotframework-httpctrl==0.3.3
# The mock server is the vendored copy in libraries/robotframework-httpctrl/, not PyPI's 0.3.3:
# the stub matching the distributed-operation tests rely on (!282, !284, !311) and the keyword
# `Get Request Url Params` they call exist only there.
-e ./libraries/robotframework-httpctrl/
robotframework-robocop==7.2.0
robotframework-mqttlibrary==0.7.1.post3