Using updated tempest method for neutron.
Change-Id: Ic6966699b9af4f75cb639c504cb64167d4fa8fb9
This commit is contained in:
parent
08e84191e0
commit
40b8d4ac7d
5
.gitignore
vendored
5
.gitignore
vendored
@ -61,9 +61,8 @@ ChangeLog
|
|||||||
releasenotes/build
|
releasenotes/build
|
||||||
|
|
||||||
# Test temp files
|
# Test temp files
|
||||||
tests/plugins
|
tests/common
|
||||||
tests/playbooks
|
tests/*.retry
|
||||||
tests/test.retry
|
|
||||||
|
|
||||||
# Vagrant artifacts
|
# Vagrant artifacts
|
||||||
.vagrant
|
.vagrant
|
||||||
|
@ -13,6 +13,16 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
tempest_run: yes
|
||||||
|
|
||||||
|
tempest_plugins:
|
||||||
|
- name: neutron
|
||||||
|
repo: https://git.openstack.org/openstack/neutron
|
||||||
|
branch: master
|
||||||
|
|
||||||
|
tempest_test_whitelist:
|
||||||
|
- neutron.tests.tempest.api.test_networks*
|
||||||
|
|
||||||
neutron_plugin_type: ml2.calico
|
neutron_plugin_type: ml2.calico
|
||||||
neutron_provider_networks:
|
neutron_provider_networks:
|
||||||
network_types: ''
|
network_types: ''
|
||||||
|
@ -4,5 +4,15 @@ openstack_host_specific_kernel_modules:
|
|||||||
pattern: "CONFIG_OPENVSWITCH="
|
pattern: "CONFIG_OPENVSWITCH="
|
||||||
group: "physical_host"
|
group: "physical_host"
|
||||||
|
|
||||||
|
tempest_run: yes
|
||||||
|
|
||||||
|
tempest_plugins:
|
||||||
|
- name: neutron
|
||||||
|
repo: https://git.openstack.org/openstack/neutron
|
||||||
|
branch: master
|
||||||
|
|
||||||
|
tempest_test_whitelist:
|
||||||
|
- neutron.tests.tempest.api.test_networks*
|
||||||
|
|
||||||
neutron_plugin_type: ml2.ovs
|
neutron_plugin_type: ml2.ovs
|
||||||
neutron_local_ip: "{{ ansible_host }}"
|
neutron_local_ip: "{{ ansible_host }}"
|
||||||
|
@ -13,13 +13,17 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
- name: Ensure Calico services are running
|
- name: Test calico
|
||||||
|
hosts: neutron_all
|
||||||
|
user: root
|
||||||
|
gather_facts: true
|
||||||
|
tasks:
|
||||||
|
- name: Ensure Calico services are running
|
||||||
command: pgrep -a {{ item }}
|
command: pgrep -a {{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
- calico-felix
|
- calico-felix
|
||||||
- calico-dhcp-age
|
- calico-dhcp-age
|
||||||
|
- name: Ensure that the Calico Felix agent is alive
|
||||||
- name: Ensure that the Calico Felix agent is alive
|
|
||||||
shell: |
|
shell: |
|
||||||
. /root/openrc
|
. /root/openrc
|
||||||
neutron agent-list | grep calico-felix
|
neutron agent-list | grep calico-felix
|
||||||
@ -29,3 +33,5 @@
|
|||||||
- groups['neutron_calico_dhcp_agent'] | length > 0
|
- groups['neutron_calico_dhcp_agent'] | length > 0
|
||||||
retries: 5
|
retries: 5
|
||||||
delay: 10
|
delay: 10
|
||||||
|
vars_files:
|
||||||
|
- common/test-vars.yml
|
||||||
|
@ -1,38 +0,0 @@
|
|||||||
---
|
|
||||||
# Copyright 2015, Rackspace US, Inc.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
|
|
||||||
# Packages need to be installed outside
|
|
||||||
# of venv to be usable by Ansible
|
|
||||||
|
|
||||||
- name: Test neutron
|
|
||||||
hosts: neutron_all
|
|
||||||
user: root
|
|
||||||
gather_facts: true
|
|
||||||
tasks:
|
|
||||||
- name: Run tempest
|
|
||||||
shell: |
|
|
||||||
. {{ tempest_venv_bin }}/activate
|
|
||||||
{{ tempest_venv_bin | dirname }}/run_tempest.sh --no-virtual-env --serial tempest.api.network
|
|
||||||
register: run_tempest
|
|
||||||
until: run_tempest|success
|
|
||||||
retries: 3
|
|
||||||
delay: 5
|
|
||||||
|
|
||||||
post_tasks:
|
|
||||||
- include: test-calico-functional.yml
|
|
||||||
when:
|
|
||||||
- "{{ neutron_plugin_type == 'ml2.calico' }}"
|
|
||||||
vars_files:
|
|
||||||
- common/test-vars.yml
|
|
@ -30,8 +30,9 @@
|
|||||||
# Install Neutron
|
# Install Neutron
|
||||||
- include: common/test-install-neutron.yml
|
- include: common/test-install-neutron.yml
|
||||||
|
|
||||||
# Install Tempest
|
# Install and execute tempest
|
||||||
- include: common/test-install-tempest.yml
|
- include: common/test-install-tempest.yml
|
||||||
|
|
||||||
# Run tests
|
- include: test-calico-functional.yml
|
||||||
- include: test-neutron-functional.yml
|
when:
|
||||||
|
- "{{ neutron_plugin_type == 'ml2.calico' }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user