Kailash Khalasi | ab48091 | 2017-03-20 13:14:51 -0700 | [diff] [blame] | 1 | #xos-ui tests |
| 2 | |
| 3 | - name: Check UI Process |
| 4 | shell: ps -f | grep "python /opt/xos/manage.py runserver 0.0.0.0:9000 --insecure --makemigrations" |
| 5 | register: result |
| 6 | until: result | success |
| 7 | retries: 10 |
| 8 | delay: 5 |
| 9 | tags: |
| 10 | - skip_ansible_lint # running a sub job |
| 11 | |
| 12 | - name: Get Volume Mounts on UI Container |
| 13 | shell: mount -l | grep xos_services |
| 14 | register: volumes |
| 15 | tags: |
| 16 | - skip_ansible_lint # running a sub job |
| 17 | |
| 18 | - name: Validate Volume Mounts on UI Container |
| 19 | assert: |
| 20 | that: "'/opt/xos_services/{{ item.name }}' in volumes.stdout|lower" |
| 21 | with_items: "{{ xos_services }}" |
| 22 | when: |
| 23 | - "'{{ item.name }}' != 'vnodlocal'" |
| 24 | - "'{{ item.name }}' != 'volt'" |