blob: bda83a94bf3a193b2bf14a92302b5cd27bc92c58 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
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 Khalasiab480912017-03-20 13:14:51 -070017#xos-vtr-sync tests
18
19- name: Check XOS VTR Synchronizer Process
20 shell: ps -f | grep "python vtr-synchronizer.py -C /opt/xos/synchronizers/vtr/vtr_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 VTR 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 VTR 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'"