Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Kailash Khalasi | be96fc5 | 2017-09-29 12:42:30 -0700 | [diff] [blame] | 15 | #xos-core tests |
Kailash Khalasi | ab48091 | 2017-03-20 13:14:51 -0700 | [diff] [blame] | 16 | |
| 17 | - name: Check XOS Core Process |
| 18 | shell: ps -f | grep "bash -c cd coreapi; bash ./start_coreapi.sh" |
| 19 | register: result |
| 20 | until: result | success |
| 21 | retries: 10 |
| 22 | delay: 5 |
| 23 | tags: |
| 24 | - skip_ansible_lint # running a sub job |
| 25 | |
| 26 | - name: Get Volume Mounts on XOS Core Container |
| 27 | shell: mount -l | grep xos_services |
| 28 | register: volumes |
| 29 | tags: |
| 30 | - skip_ansible_lint # running a sub job |
| 31 | |
| 32 | - name: Validate Volume Mounts on XOS CoreContainer |
| 33 | assert: |
| 34 | that: "'/opt/xos_services/{{ item.name }}' in volumes.stdout|lower" |
| 35 | with_items: "{{ xos_services }}" |
| 36 | when: |
| 37 | - "'{{ item.name }}' != 'vnodlocal'" |
| 38 | - "'{{ item.name }}' != 'volt'" |