diff options
Diffstat (limited to 'docker')
-rw-r--r-- | docker/smoke/Dockerfile | 15 | ||||
-rw-r--r-- | docker/smoke/testcases.yaml | 3 |
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' |