summaryrefslogtreecommitdiffstats
path: root/docker/patrole
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-03-07 10:26:26 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-03-07 20:31:51 +0100
commit29a384491df24cbace49d822a636c52649264f60 (patch)
tree0e9770dac6982e97757fdc50a2c90f9e3465c21d /docker/patrole
parent0174b1962464c289d777caa88c91ff2c20be910a (diff)
Add neutron and glance policy.json for patrole
It only runs tests about neutron and glance because their policy.json can be still downloaded. Installers could override them via docker volumes if needed. Several tests about provider networks are currently excluded because GRE is selected. Change-Id: Ic4e2274e3f53e66be0174e117993e8c307b96bf9 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker/patrole')
-rw-r--r--docker/patrole/Dockerfile3
-rw-r--r--docker/patrole/testcases.yaml2
2 files changed, 5 insertions, 0 deletions
diff --git a/docker/patrole/Dockerfile b/docker/patrole/Dockerfile
index 6d211e8fe..959e44ff1 100644
--- a/docker/patrole/Dockerfile
+++ b/docker/patrole/Dockerfile
@@ -31,6 +31,9 @@ RUN apk --no-cache add --virtual .build-deps --update \
mkdir -p /etc/rally && \
printf "[database]\nconnection = 'sqlite:////var/lib/rally/database/rally.sqlite'" > /etc/rally/rally.conf && \
mkdir -p /var/lib/rally/database && rally db create && \
+ mkdir -p /etc/neutron /etc/glance && \
+ wget -q -O /etc/neutron/policy.json https://raw.githubusercontent.com/openstack/neutron/$OPENSTACK_TAG/etc/policy.json && \
+ wget -q -O /etc/glance/policy.json https://raw.githubusercontent.com/openstack/glance/$OPENSTACK_TAG/etc/policy.json && \
rm -r upper-constraints.txt /src/os-faults /src/rally && \
apk del .build-deps
COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
diff --git a/docker/patrole/testcases.yaml b/docker/patrole/testcases.yaml
index 10edc4e5d..5615a9055 100644
--- a/docker/patrole/testcases.yaml
+++ b/docker/patrole/testcases.yaml
@@ -20,3 +20,5 @@ tiers:
run:
module: 'functest.opnfv_tests.openstack.patrole.patrole'
class: 'Patrole'
+ args:
+ role: 'admin'