1 FROM opnfv/functest-tempest
4 ARG OPENSTACK_TAG=stable/queens
5 ARG REFSTACK_TARGET=2017.09
7 ARG VMTP_TAG=9c016e3f9683ae557e8271ef358d9c1b59126cdf
9 RUN apk --no-cache add --update libxml2 libxslt && \
10 apk --no-cache add --virtual .build-deps --update \
11 python-dev build-base linux-headers libffi-dev \
12 openssl-dev libjpeg-turbo-dev libxml2-dev libxslt-dev && \
13 wget -q -O- https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=$OPENSTACK_TAG | \
14 sed -E s/^tempest==+\(.*\)$/-e\ git+https:\\/\\/github.com\\/openstack\\/tempest@\\1#egg=tempest/ \
15 > upper-constraints.txt && \
16 wget -q -O- https://git.opnfv.org/functest/plain/upper-constraints.txt?h=$BRANCH | \
17 sed -E /#egg=functest/d > upper-constraints.opnfv.txt && \
18 git clone https://github.com/openstack/patrole.git /src/patrole && \
19 (cd /src/patrole && git checkout $PATROLE_TAG) && \
20 update-requirements -s --source /src/openstack-requirements /src/patrole/ && \
21 git clone https://github.com/openstack/vmtp.git /src/vmtp && \
22 (cd /src/vmtp && git fetch origin $VMTP_TAG && git checkout FETCH_HEAD) && \
23 update-requirements -s --source /src/openstack-requirements /src/vmtp/ && \
24 git clone --depth 1 https://github.com/openstack/neutron-tempest-plugin.git /src/neutron-tempest-plugin && \
25 update-requirements -s --source /src/openstack-requirements /src/neutron-tempest-plugin && \
26 git clone --depth 1 https://github.com/openstack/barbican-tempest-plugin.git /src/barbican-tempest-plugin && \
27 update-requirements -s --source /src/openstack-requirements /src/barbican-tempest-plugin/ && \
28 pip install --no-cache-dir --src /src -cupper-constraints.txt -cupper-constraints.opnfv.txt \
29 /src/patrole /src/barbican-tempest-plugin /src/neutron-tempest-plugin /src/vmtp && \
30 virtualenv --system-site-packages /src/tempest/.venv && \
31 rm -r upper-constraints.txt upper-constraints.opnfv.txt \
32 /src/patrole /src/barbican-tempest-plugin /src/neutron-tempest-plugin /src/vmtp && \
33 mkdir -p /home/opnfv/functest/data/refstack && \
34 wget "https://refstack.openstack.org/api/v1/guidelines/${REFSTACK_TARGET}/tests?target=compute&type=required&alias=true&flag=false" \
35 -O /home/opnfv/functest/data/refstack/defcore.txt && \
36 mkdir -p /etc/neutron /etc/glance && \
37 wget -q -O /etc/neutron/policy.json https://raw.githubusercontent.com/openstack/neutron/$OPENSTACK_TAG/etc/policy.json && \
38 wget -q -O /etc/glance/policy.json https://raw.githubusercontent.com/openstack/glance/$OPENSTACK_TAG/etc/policy.json && \
40 COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
41 CMD ["run_tests", "-t", "all"]