mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-09-30 17:09:37 +02:00
* restart master first in some edge cases * edge case is when desired is lower than effective * wait after config patch and restart on sync whenever we see pending_restart * convert options to int to check decrease and add unit test * minor update to e2e tests * wait only after restart not every sync * using spilo 14 e2e images
28 lines
1011 B
Docker
28 lines
1011 B
Docker
# An image to run e2e tests.
|
|
# The image does not include the tests; all necessary files are bind-mounted when a container starts.
|
|
FROM ubuntu:20.04
|
|
LABEL maintainer="Team ACID @ Zalando <team-acid@zalando.de>"
|
|
|
|
ENV TERM xterm-256color
|
|
|
|
COPY requirements.txt ./
|
|
COPY scm-source.json ./
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install --no-install-recommends -y \
|
|
python3 \
|
|
python3-setuptools \
|
|
python3-pip \
|
|
curl \
|
|
vim \
|
|
&& pip3 install --no-cache-dir -r requirements.txt \
|
|
&& curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.22.0/bin/linux/amd64/kubectl \
|
|
&& chmod +x ./kubectl \
|
|
&& mv ./kubectl /usr/local/bin/kubectl \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# working line
|
|
# python3 -m unittest discover -v --failfast -k test_e2e.EndToEndTestCase.test_lazy_spilo_upgrade --start-directory tests
|
|
ENTRYPOINT ["python3", "-m", "unittest"]
|
|
CMD ["discover","-v","--failfast","--start-directory","/tests"] |