blob: aa5ae9a5f8297d4e26dda52abe87b3606638cf2c [file] [log] [blame]
Zack Williamsfc6b64b2017-12-22 15:57:50 -07001---
Andy Bavier5ce21eb2017-10-16 16:10:12 -07002# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
Andy Bavier5ce21eb2017-10-16 16:10:12 -070016# test-mcord-base/tasks/main.yml
17# Run tests to check that the base elements of M-CORD are present
18
19- name: Wait for networks to be synchronized
20 shell: bash -c "source /opt/cord_profile/admin-openrc.sh; neutron net-list|grep '{{ item }}' > /dev/null"
21 register: result
22 until: result | success
23 retries: 10
24 delay: 60
Andy Bavier444007e2017-10-24 06:02:36 -070025 with_items: "{{ test_networks }}"
Andy Bavier5ce21eb2017-10-16 16:10:12 -070026 tags:
27 - skip_ansible_lint # running a sub job
28
29- name: Wait for VMs to come up
30 shell: bash -c "source /opt/cord_profile/admin-openrc.sh; nova list --all-tenants|grep '{{ item }}.*ACTIVE' > /dev/null"
31 register: result
32 until: result | success
33 retries: 10
34 delay: 60
Andy Bavier444007e2017-10-24 06:02:36 -070035 with_items: "{{ test_services }}"
36 tags:
37 - skip_ansible_lint # running a sub job
38
39- name: Verify that VMs are properly networked
40 shell: bash -c "source /opt/cord_profile/admin-openrc.sh; nova list --all-tenants|grep '{{ item.vm }}.*ACTIVE.*{{ item.network }}' > /dev/null"
41 with_items: "{{ test_ports }}"
Andy Bavier5ce21eb2017-10-16 16:10:12 -070042 tags:
43 - skip_ansible_lint # running a sub job