Adding xos container sanity tests
- validates xos core and synchronizer processes are started successfully

Change-Id: Id3a678c3ee60bd222b1cf8787f9501e826fb287e
Relates-to: CORD-1035
diff --git a/roles/xos-container-test-ui/tasks/main.yml b/roles/xos-container-test-ui/tasks/main.yml
new file mode 100644
index 0000000..a86c6d6
--- /dev/null
+++ b/roles/xos-container-test-ui/tasks/main.yml
@@ -0,0 +1,24 @@
+#xos-ui tests
+
+- name: Check UI Process
+  shell: ps -f | grep "python /opt/xos/manage.py runserver 0.0.0.0:9000 --insecure --makemigrations"
+  register: result
+  until: result | success
+  retries: 10
+  delay: 5
+  tags:
+    - skip_ansible_lint # running a sub job
+
+- name: Get Volume Mounts on UI Container
+  shell: mount -l | grep xos_services
+  register: volumes
+  tags:
+    - skip_ansible_lint # running a sub job
+
+- name: Validate Volume Mounts on UI Container
+  assert:
+    that: "'/opt/xos_services/{{ item.name }}' in volumes.stdout|lower"
+  with_items: "{{ xos_services }}"
+  when:
+    - "'{{ item.name }}' != 'vnodlocal'"
+    - "'{{ item.name }}' != 'volt'"