aboutsummaryrefslogtreecommitdiffstats
path: root/docker/smoke
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-12-19 23:22:58 +0100
committerCédric Ollivier <cedric.ollivier@orange.com>2018-12-20 15:17:05 +0100
commit83c1afa080f261d732be2842f8913208d20e411e (patch)
tree45aa12474a9db2d21472860445cf1baeb328de8a /docker/smoke
parentdd9eb03be634eaa46a89b85cd0c640ec99533b77 (diff)
Generate Neutron policy.json (Patrole)
Keystone policy.json et al will be managed in other changes to allow cherry-picking. It blacklists two subtests which requires policy actions not found in policy files. Change-Id: I5365fb1b24f7f07563037634d00cb9898fbde0fc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'docker/smoke')
-rw-r--r--docker/smoke/Dockerfile15
-rw-r--r--docker/smoke/testcases.yaml3
2 files changed, 10 insertions, 8 deletions
diff --git a/docker/smoke/Dockerfile b/docker/smoke/Dockerfile
index 47c6a208e..19bea3acd 100644
--- a/docker/smoke/Dockerfile
+++ b/docker/smoke/Dockerfile
@@ -6,7 +6,6 @@ ARG REFSTACK_TARGET=2018.02
ARG PATROLE_TAG=master
ARG NEUTRON_TAG=master
ARG BARBICAN_TAG=master
-ARG NEUTRON_RALLY_TAG=master
RUN apk --no-cache add --virtual .build-deps --update \
python-dev build-base linux-headers libffi-dev \
@@ -34,20 +33,20 @@ RUN apk --no-cache add --virtual .build-deps --update \
pip install --no-cache-dir --src /src -cupper-constraints.txt -cupper-constraints.opnfv.txt \
/src/patrole /src/barbican-tempest-plugin /src/neutron-tempest-plugin \
networking-bgpvpn networking-sfc && \
- rm -r upper-constraints.txt upper-constraints.opnfv.txt \
- /src/patrole /src/barbican-tempest-plugin /src/neutron-tempest-plugin && \
mkdir -p /home/opnfv/functest/data/refstack && \
wget "https://refstack.openstack.org/api/v1/guidelines/${REFSTACK_TARGET}/tests?target=compute&type=required&alias=true&flag=false" \
-O /home/opnfv/functest/data/refstack/defcore.txt && \
mkdir -p /etc/neutron /etc/glance && \
wget -q -O /etc/glance/policy.json https://git.openstack.org/cgit/openstack/glance/plain/etc/policy.json?h=$OPENSTACK_TAG && \
- git init /src/neutron && \
- (cd /src/neutron && \
- git fetch --tags https://git.openstack.org/openstack/neutron.git $NEUTRON_RALLY_TAG && \
- git checkout FETCH_HEAD) && \
+ virtualenv oslo && . oslo/bin/activate && \
+ pip install --no-cache-dir --src /src -cupper-constraints.txt -cupper-constraints.opnfv.txt \
+ oslo.policy -e git+https://git.openstack.org/openstack/neutron.git@$OPENSTACK_TAG#egg=neutron && \
+ oslopolicy-sample-generator --format json --output-file /etc/neutron/policy.json --namespace neutron && \
+ deactivate && \
mkdir -p /home/opnfv/functest/data/rally/neutron && \
cp -r /src/neutron/rally-jobs /home/opnfv/functest/data/rally/neutron/rally-jobs && \
- rm -r /src/neutron && \
+ rm -r oslo upper-constraints.txt upper-constraints.opnfv.txt \
+ /src/neutron /src/patrole /src/barbican-tempest-plugin /src/neutron-tempest-plugin && \
apk del .build-deps
COPY testcases.yaml /usr/lib/python2.7/site-packages/xtesting/ci/testcases.yaml
CMD ["run_tests", "-t", "all"]
diff --git a/docker/smoke/testcases.yaml b/docker/smoke/testcases.yaml
index c7f110a70..6322f1257 100644
--- a/docker/smoke/testcases.yaml
+++ b/docker/smoke/testcases.yaml
@@ -90,7 +90,10 @@ tiers:
role: 'admin'
includes:
- 'image'
+ - 'network'
excludes:
+ - 'network.test_flavors_rbac'
+ - 'network.test_network_ip_availability_rbac'
- 'test_networks_multiprovider_rbac'
- 'test_auto_allocated_topology_rbac'