blob: 56312e79086fb74c58c582557b3574084bc99843 [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
Kailash Khalasibe96fc52017-09-29 12:42:30 -070015#xos-core tests
Kailash Khalasiab480912017-03-20 13:14:51 -070016
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'"