Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 1 | |
| 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 | |
| 16 | |
Kailash Khalasi | ab48091 | 2017-03-20 13:14:51 -0700 | [diff] [blame] | 17 | #xos-fabric-sync tests |
| 18 | |
| 19 | - name: Check XOS Fabric Synchronizer Process |
| 20 | shell: ps -f | grep "python fabric-synchronizer.py -C /opt/xos/synchronizers/fabric/fabric_synchronizer_config" |
| 21 | register: result |
| 22 | until: result | success |
| 23 | retries: 10 |
| 24 | delay: 5 |
| 25 | tags: |
| 26 | - skip_ansible_lint # running a sub job |
| 27 | |
| 28 | - name: Get Volume Mounts on XOS Fabric Synchronizer Container |
| 29 | shell: mount -l | grep xos_services |
| 30 | register: volumes |
| 31 | tags: |
| 32 | - skip_ansible_lint # running a sub job |
| 33 | |
| 34 | - name: Validate Volume Mounts on XOS Fabric Synchronizer Container |
| 35 | assert: |
| 36 | that: "'/opt/xos_services/{{ item.name }}' in volumes.stdout|lower" |
| 37 | with_items: "{{ xos_services }}" |
| 38 | when: |
| 39 | - "'{{ item.name }}' != 'vnodlocal'" |
| 40 | - "'{{ item.name }}' != 'volt'" |