Zack Williams | fc6b64b | 2017-12-22 15:57:50 -0700 | [diff] [blame] | 1 | --- |
Andy Bavier | 5ce21eb | 2017-10-16 16:10:12 -0700 | [diff] [blame] | 2 | # 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 Bavier | 5ce21eb | 2017-10-16 16:10:12 -0700 | [diff] [blame] | 16 | # 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 Bavier | 444007e | 2017-10-24 06:02:36 -0700 | [diff] [blame] | 25 | with_items: "{{ test_networks }}" |
Andy Bavier | 5ce21eb | 2017-10-16 16:10:12 -0700 | [diff] [blame] | 26 | 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 Bavier | 444007e | 2017-10-24 06:02:36 -0700 | [diff] [blame] | 35 | 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 Bavier | 5ce21eb | 2017-10-16 16:10:12 -0700 | [diff] [blame] | 42 | tags: |
| 43 | - skip_ansible_lint # running a sub job |