Update tests-ui to fix them

This commit is contained in:
Théophile Diot 2023-05-05 09:39:22 -04:00
parent 041b7f71e5
commit 75d2be7db7
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
4 changed files with 12 additions and 27 deletions

View File

@ -13,6 +13,14 @@ RUN GECKODRIVER_VERSION=`curl -i https://github.com/mozilla/geckodriver/releases
WORKDIR /opt/tests_ui
COPY requirements.txt .
RUN pip install --no-cache -r requirements.txt
RUN touch test.txt && \
zip -r test.zip test.txt && \
rm test.txt
RUN echo '{ \
"id": "discord", \
"order": 999, \
@ -29,13 +37,8 @@ RUN echo '{ \
RUN apk del .build-deps && \
rm -rf /var/cache/apk/*
COPY main.py .
ENV PYTHONUNBUFFERED=1
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY main.py .
COPY test.zip .
CMD ["python3", "main.py"]

View File

@ -1,20 +0,0 @@
version: "3.5"
services:
ui-tests:
build:
context: .
dockerfile: Dockerfile
environment:
- PYTHONUNBUFFERED=1
extra_hosts:
- "www.example.com:192.168.0.2"
- "app1.example.com:192.168.0.2"
networks:
bw-services:
ipv4_address: 192.168.0.3
networks:
bw-services:
external:
name: bw-services

View File

@ -909,6 +909,8 @@ try:
False,
)
sleep(2)
print(
"The bad plugin has been rejected, trying to add a good plugin ...",
flush=True,

Binary file not shown.