blob: f310fc29d6a06f91996a6b92416840466ba2012f [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001# 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
15
Kailash Khalasiab480912017-03-20 13:14:51 -070016#xos-vsg-sync tests
17
18- name: Check XOS VSG Synchronizer Process
19 shell: ps -f | grep "python vcpe-synchronizer.py -C /opt/xos/synchronizers/vsg/vsg_synchronizer_config"
20 register: result
21 until: result | success
22 retries: 10
23 delay: 5
24 tags:
25 - skip_ansible_lint # running a sub job
26
27- name: Get Volume Mounts on XOS VSG Synchronizer Container
28 shell: mount -l | grep xos_services
29 register: volumes
30 tags:
31 - skip_ansible_lint # running a sub job
32
33- name: Validate Volume Mounts on XOS VSG Synchronizer Container
34 assert:
35 that: "'/opt/xos_services/{{ item.name }}' in volumes.stdout|lower"
36 with_items: "{{ xos_services }}"
37 when:
38 - "'{{ item.name }}' != 'vnodlocal'"
39 - "'{{ item.name }}' != 'volt'"